jerryli27 / TwinGAN

Twin-GAN -- Unpaired Cross-Domain Image Translation with Weight-Sharing GANs
Apache License 2.0
719 stars 98 forks source link

ModuleNotFoundError: No module named 'util_io' #10

Closed bakirillov closed 6 years ago

bakirillov commented 6 years ago

Thank you very much for this project. Unfortunately, I am unable to reproduce the results. I'm running the script in the following way: python image_translation_infer.py --model_path="/Documents/weights/256" --image_hw=256 --input_tensor_name="sources_ph" --output_tensor_name="custom_generated_t_style_source:0" --input_image_path="/Documents/art/photo.png" --output_image_path="/Documents/art/" and get the following error: Traceback (most recent call last): File "image_translation_infer.py", line 35, in import util_io ModuleNotFoundError: No module named 'util_io' Could you please look into that? Python 3.6.4. Anaconda, tensorflow 1.10, keras 2.2.2

jerryli27 commented 6 years ago

I believe this issue is similar to #3 where system PYTHONPATH is not set correctly. The path is added as sys.path.append('./') so you'll need to run the infer script from the TwinGAN directory.

If you do the following it should work. Let me know if it doesn't. Thanks!

# Assume you're in TwinGAN/inference/
cd ..  # Go to the TwinGAN directory.
python inference/image_translation_infer.py --YOUR FLAGS...
bakirillov commented 6 years ago

It does run now but I got another issue.