Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'util_io' #10

Closed
bakirillov opened this issue Sep 6, 2018 · 2 comments
Closed

ModuleNotFoundError: No module named 'util_io' #10

bakirillov opened this issue Sep 6, 2018 · 2 comments

Comments

@bakirillov
Copy link

bakirillov commented Sep 6, 2018

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
Copy link
Owner

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
Copy link
Author

It does run now but I got another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants