How to remove noise pixels in the generated image?

2019-02-20%2022-48-26%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE

Hi! I’m doing image Super-resolution with Celeba dataset, but I always got theses images with noise pixels which are very unnatural in face images.

No matter how many epoch trained, I still can not get rid of these noise pixels !

I use Pillow to read images then convert them to RGB form, and normalize them in this way:
self.transforms_HR = transforms.Compose([
transforms.Resize((64, 64)),
transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5),
(0.5, 0.5, 0.5))])

As I use the Visdom to navigate the training process, I transform the tensor in this way:
image_numpy = (np.transpose(image_numpy, (1, 2, 0)) + 1) / 2.0 * 255.0

BTW the image_numpy is a image grid with shape of (3, H, W) output by a function in torchvision

So I wonder if there is a way to get rid of these noise pixel?