def deprocess_image(img):#, rescale=False):
    """Undo preprocessing on an image and convert back to uint8."""
    #img = (img * SQUEEZENET_STD + SQUEEZENET_MEAN)
    img = (img + 1) * 0.5
    # if rescale:
    #     vmin, vmax = img.min(), img.max()
    #     img = (img - vmin) / (vmax - vmin)
    return img