Closed bakirillov closed 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...
It does run now but I got another issue.
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