shaoanlu / fewshot-face-translation-GAN

Generative adversarial networks integrating modules from FUNIT and SPADE for face-swapping.
793 stars 132 forks source link

output image resolution doesn't match input #6

Open skunkwerk opened 5 years ago

skunkwerk commented 5 years ago

It seems like the output image that's inferred is sometimes of lower resolution than the input. For example, my input was 1280x720, but the output is 768x432.

It looks like the resizing is happening in utils.py/post_process_result, but I'm not sure why it's resizing - is it to keep the output face from being upscaled too much?

thank you!

shaoanlu commented 5 years ago

Auto image scaling is used to prevent OOM error for face detection and alignment.