I am trying to run inference (testing) in a Google Colab (T4 GPU) environment.
I looked original download links for the test dataset (Dropbox) is dead, which seems to be a common problem (like in Issue #100).
I found a workaround by downloading the pre-trained models from Kaggle (gen.pth, mtviton.pth). I am now trying to test the model with my own custom images.
The Problem:
No matter what order I put in test_pairs.txt, I get a FileNotFoundError.
If I use person.jpeg cloth.png, the error is:
FileNotFoundError: ... No such file or directory: './data/test/cloth/person.jpeg'
(It's looking for the person in the cloth folder)
If I use cloth.png person.jpeg, the error is:
FileNotFoundError: ... No such file or directory: './data/test/image/cloth.png'
(It's looking for the cloth in the person folder)
It seems the script is not reading the two columns correctly. Could you please provide a clear, working example for how to run test_generator.py with custom images?
What is the correct format and location for the test_pairs.txt file?
Thank you!
I am trying to run inference (testing) in a Google Colab (T4 GPU) environment.
I looked original download links for the test dataset (Dropbox) is dead, which seems to be a common problem (like in Issue #100).
I found a workaround by downloading the pre-trained models from Kaggle (
gen.pth,mtviton.pth). I am now trying to test the model with my own custom images.The Problem:
No matter what order I put in
test_pairs.txt, I get aFileNotFoundError.If I use
person.jpeg cloth.png, the error is:FileNotFoundError: ... No such file or directory: './data/test/cloth/person.jpeg'(It's looking for the person in the cloth folder)
If I use
cloth.png person.jpeg, the error is:FileNotFoundError: ... No such file or directory: './data/test/image/cloth.png'(It's looking for the cloth in the person folder)
It seems the script is not reading the two columns correctly. Could you please provide a clear, working example for how to run
test_generator.pywith custom images?What is the correct format and location for the
test_pairs.txtfile?Thank you!