models icon indicating copy to clipboard operation
models copied to clipboard

ImportError: No module named utils When running the tutorial notebook

Open canozcivelek opened this issue 7 years ago • 7 comments

Hi!

Just installed tensorflow and dependencies etc. Now I'm trying to just run the tutorial notebook via Google Colab. However, even though I have installed "utils" package, it gives me the "ImportError: No module named utils" what am I missing here?

Thanks!

canozcivelek avatar Dec 02 '18 18:12 canozcivelek

Hi,

Are you running it from the object_detection folder?

Regards, Dieter

MaesIT avatar Dec 02 '18 22:12 MaesIT

Hi,

The way I did it was:

  • Navigate to the folder containing object_detection_tutorial.ipynb which is "C:\TensorFlow\models\research\object_detection"
  • Open Google Colab on Chrome
  • Select "Upload" then drag the file to Colab
  • When I run it, it can't seem to find the Utils as well as Tensorflow modules.

Is the object_detection_tutorial.ipynb a Python 2.x notebook? I'm currently using Python 3.6, is it a version issue?

Thanks!

canozcivelek avatar Dec 03 '18 06:12 canozcivelek

Using the Colab would require additional setup to bring the object_detection libraries into the cloud environment. Looking at the documentation, there doesn't seem to be a way to add arbitrary Python source but maybe using the Docker route would help.

derekjchow avatar Dec 03 '18 17:12 derekjchow

Thanks for the reply. So I also run the notebook from Jupyter as well. I navigate to the object_detection folder again, I activate my environment, then run jupyter notebook command on Anaconda prompt, it opens up the notebook in my browser (Chrome), I receive the same error.

canozcivelek avatar Dec 03 '18 19:12 canozcivelek

Hi There, We are checking to see if you still need help on this, as this seems to be considerably old issue. Please update this issue with the latest information, code snippet to reproduce your issue and error you are seeing. If we don't hear from you in the next 7 days, this issue will be closed automatically. If you don't need help on this issue any more, please consider closing this.

tensorflowbutler avatar Jan 29 '20 22:01 tensorflowbutler

I am also having the same issue as "canozcivelek ". I am also followed the same steps. Please help me to solve this issue.

MelaniGit avatar Feb 11 '20 15:02 MelaniGit

!pip3 install utils import utils

utpal150894 avatar Jun 01 '20 16:06 utpal150894