taesungp / contrastive-unpaired-translation

Contrastive unpaired image-to-image translation, faster and lighter training than cyclegan (ECCV 2020, in PyTorch)

Home Page:https://taesung.me/ContrastiveUnpairedTranslation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

test.py alters file names of translated images

StrohmayerJ opened this issue · comments

Why does the test.py script alter the names of images saved to the /results directory?

My images in /datasets/datasetName/trainA are called:
img_0.png
img_1.png
img_2.png
img_3.png
img_4.png
img_5.png
img_5.png
...

When I run the test.py script, the corresponding translated images in the /results/ModelName/epoch/images/fake_B directory are renamed to something like:
img_0.png
img_1.png
img_10.png
img_100.png
img_1000.png
img_1001.png
img_1002.png
...

How can I preserve the original file names?

Nvm, it works as expected, the images are just loaded in random order