squeezedet-keras icon indicating copy to clipboard operation
squeezedet-keras copied to clipboard

Module not found

Open madiltalay opened this issue 6 years ago • 4 comments

I am trying to run the following training part: python ../../scripts/train.py --init ../../main/model/imagenet.h5

But it is neither detecting the 'main', nor the 'tensorflow', giving: ModuleNotFoundError: no module named main ModuleNotFoundError: no module named tensorflow

Can you please help?

Thank you!

madiltalay avatar Jan 31 '19 10:01 madiltalay

pip install tensorflow

dgtlmoon avatar Mar 01 '19 14:03 dgtlmoon

That problem solved, now I face another problem running the same command:

python scripts/train.py --init main/model/imagenet.h5 Traceback (most recent call last): File "scripts/train.py", line 9, in from main.model.squeezeDet import SqueezeDet ImportError: No module named main.model.squeezeDet

madiltalay avatar Mar 06 '19 18:03 madiltalay

That problem solved, now I face another problem running the same command:

python scripts/train.py --init main/model/imagenet.h5 Traceback (most recent call last): File "scripts/train.py", line 9, in from main.model.squeezeDet import SqueezeDet ImportError: No module named main.model.squeezeDet

Hi, did you solve this problem?

Aaronreb avatar Jul 08 '19 07:07 Aaronreb

You have to set path correctly.

See: export PYTHONPATH=path/to/squeezedet in setup guide

mpaluy avatar Sep 08 '19 07:09 mpaluy