Reputation: 51
Im using imagenet train script (https://github.com/tensorflow/models/blob/master/inception/inception/imagenet_train.py) to train my own image data set to classify in tensorflow (in Oracle VM Virtual box) and im getting an error as below
shri@shri-VirtualBox:~/Desktop/Test/inception_test/models/inception/inception$ python imagenet_train.py Traceback (most recent call last): File "imagenet_train.py", line 25, in from inception import inception_train ImportError: No module named inception
Could someone please help understand the problem and how do i fix it?
Regards, Shri
Upvotes: 0
Views: 5215
Reputation: 126194
This sounds like a Python module search path issue. The import
statements in the particular script imagenet_train.py
and other scripts in that directory assume that they can find the other scripts in a submodule called inception
, but when you run the script from the same directory, Python can't find that submodule.
The easiest way to fix this is to change to the parent directory (cd ~/Desktop/Test/inception_test/models/inception
) and run the script as follows:
$ python inception/inception_train.py
Upvotes: 1