LS4GAN / uvcgan2

UVCGAN v2: An Improved Cycle-Consistent GAN for Unpaired Image-to-Image Translation
https://arxiv.org/abs/2303.16280
Other
124 stars 19 forks source link

How to apply a pre-trained model to a single image? #39

Open rc-eddy opened 2 weeks ago

rc-eddy commented 2 weeks ago

Image Translation using scripts/translate_images.py is overly complicated - it works on image batches and requires files to be placed in specific folders. What would be the simplest way to load a pre-trained model and apply it to a single image?

rc-eddy commented 2 weeks ago

Download **** password: changeme In the installer menu, select "gcc."

^ that's a virus

usert5432 commented 2 weeks ago

Hi @rc-eddy,

Thank you for your feedback. You are correct that the current implementation of image translation with scripts/translate_images.py is overly complex for a single image processing.

Unfortunately, at this moment we do not have capacity to provide a better alternative for single images. If this functionality is necessary, I could suggest taking a look at one of the examples that was contributed to our repository. This example illustrates a more manual way to process images and can be used as a starting point of implementing an efficient single image translation.