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 'cm' #52

Open
michaeltan53 opened this issue Nov 16, 2023 · 3 comments
Open

ModuleNotFoundError: No module named 'cm' #52

michaeltan53 opened this issue Nov 16, 2023 · 3 comments

Comments

@michaeltan53
Copy link

ModuleNotFoundError: No module named 'cm'

How to solve this problem when importing classes from cm package? Does it mean that the project have to be built first?

@levisocool
Copy link

The 'cm' module is already in the directory of 'consistency_models-main'. If your current directory where you run *.py (or other program) is not the same path as ‘cm’, then your "ModuleNotFoundError: No module named 'cm'" will occour.

@Ontheroad123
Copy link

The 'cm' module is already in the directory of 'consistency_models-main'. If your current directory where you run *.py (or other program) is not the same path as ‘cm’, then your "ModuleNotFoundError: No module named 'cm'" will occour.
图片
i run ./scripts/cm_train.py,but still meet same error.

@Ontheroad123
Copy link

The 'cm' module is already in the directory of 'consistency_models-main'. If your current directory where you run *.py (or other program) is not the same path as ‘cm’, then your "ModuleNotFoundError: No module named 'cm'" will occour.
图片
i run ./scripts/cm_train.py,but still meet same error.

I haver solve this problem, run 'python cm_train.py' and add 'sys.path.append('../')' in cm_train.py

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

3 participants