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

No module named 'utils.mvtec3d_util' #19

Open
henrychou1233 opened this issue Nov 17, 2024 · 1 comment
Open

No module named 'utils.mvtec3d_util' #19

henrychou1233 opened this issue Nov 17, 2024 · 1 comment

Comments

@henrychou1233
Copy link

(base) anywhere3090l@3090l:~/Desktop/Shape-Guided$ python tools/preprocessing.py /home/anywhere3090l/Desktop/Shape-Guided/mvtec3d
Traceback (most recent call last):
File "/home/anywhere3090l/Desktop/Shape-Guided/tools/preprocessing.py", line 8, in
import utils.mvtec3d_util as mvt_util
ModuleNotFoundError: No module named 'utils.mvtec3d_util'

@Guangyun-Xu
Copy link

At the beginning of the tools/preprocessing.py file, manually add the project's root directory to sys.path:

import sys  
import os  

project_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))  
sys.path.append(project_root)  

import utils.mvtec3d_util as mvt_util

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