willylulu / celeba-hq-modified

Modified h5tool.py make user getting celeba-HQ easier
MIT License
121 stars 22 forks source link

Noise on generated high-resolution images #10

Open bluestyle97 opened 4 years ago

bluestyle97 commented 4 years ago

Hi, I have utilized your code to generate images successfully. But I notice that there are some noisy points on the generated images, as the following images shows. Is this phenomenon normal? image

leoliu37 commented 3 years ago

I also meet the same problem.

asheroin commented 2 years ago

Checkout https://github.com/tkarras/progressive_growing_of_gans/blob/original-theano-version/h5tool.py#L508, the jpeg lib used by Pillow should be jpeg8d ( libjpeg.so.8.4.0 ) while the highest version support by ubuntu's apt official source( 18.04 LTS for me ) seems to be 8.1.2, which would cause tiny difference for jpeg decoding.

You should build the libarary from source code and link it to somewhere like /usr/lib/x86_64-linux-gnu/libjpeg.so which your Pillow linked to.