tg-bomze / Face-Depixelizer

Face Depixelizer based on "PULSE: Self-Supervised Photo Upsampling via Latent Space Exploration of Generative Models" repository.
2.01k stars 250 forks source link

When input cannot be processed, it just displays last output #19

Open michael-myers opened 4 years ago

michael-myers commented 4 years ago

E.g., Could not find a face that downscales correctly within epsilon shouldn't show the side-by-side of the new input and the last successful output. It should just show no output.

Run 1: Messages Image(729462575)

Run 2: Messages Image(2417983977)

Run 3: image

Hectoris919 commented 4 years ago

I have found this to be the same when the file you upload has the same name as the previously uploaded file. Say you have already uploaded a file called 'face.png', and decide to make some changes to it and then reupload it. As the file is being processed, it says that it is saved to a new file named 'face (2).png'. Now this normally wouldn't be such a problem, but the program tries to process the file that has the name 'face.png' instead of the automatically renamed file 'face (2).png'. If @tg-bomze sees this, I recommend making a small change to the code by changing it to use the name of the newly renamed file instead of the name of the uploaded file as the file to open.