DEFT icon indicating copy to clipboard operation
DEFT copied to clipboard

No module named 'opts'

Open jka-zed opened this issue 3 years ago • 1 comments

When i try to run scripts (train.py, train_prediction.py, test.py) i get this error:

Traceback (most recent call last): File "train.py", line 13, in from opts import opts ModuleNotFoundError: No module named 'opts'

Do you know how to fix that error?

jka-zed avatar Mar 18 '21 11:03 jka-zed

the opts.py is not in the same folder as train.py. the opts.py is here. Try importing that directory using sys.path.append(os.path.abspath('lib/')) before importing opts and see if that works.

raja1196 avatar Mar 23 '21 03:03 raja1196