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

models #25

Open
aprillysea opened this issue Sep 4, 2023 · 1 comment
Open

models #25

aprillysea opened this issue Sep 4, 2023 · 1 comment

Comments

@aprillysea
Copy link

Traceback (most recent call last):
File "visualize/generate.py", line 26, in
from models.ce import make_model
ModuleNotFoundError: No module named 'models'

@niuniulla
Copy link

This is because when you call 'generate.py' in the directory 'visualize', the path 'models/' is not exposed in the python path. So either add models in your python path either in the code directly using 'sys' or by modifying your environment variable manually (eg. 'PYTHONPATH="$PWD" python visualize/generate.py ....' if you are in the project parent directory).

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