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

ModuleNotFoundError: No module named 'tensorflow.models' #2

Open
rs1990 opened this issue Jul 28, 2017 · 6 comments
Open

ModuleNotFoundError: No module named 'tensorflow.models' #2

rs1990 opened this issue Jul 28, 2017 · 6 comments

Comments

@rs1990
Copy link

rs1990 commented Jul 28, 2017

Hi,

I’m new to Tensorflow and am trying to test this package. but i keep getting this error.

File "image_recognition.py", line 9, in
from tensorflow.models.image.imagenet import classify_image
ModuleNotFoundError: No module named 'tensorflow.models'

Id appreciate any help.
thanks

RS

@OTL
Copy link
Owner

OTL commented Jul 28, 2017

Hi, thank you for feedback!

What is the version of ternsorflow?
This is created for v0.9, i guess that it is too old.

If you can install v0.9, how about trying it first?

If you can fix the library path for newest tensorflow, PR is welcome!

@rs1990
Copy link
Author

rs1990 commented Jul 28, 2017

im using version 1.2.1.

I tried fixing that but i get this issue now :

raghavendra_sriram@mav:~/indigo_ws/src/rostensorflow$ python image_recognition.py image:=/cv_camera/image_raw
Traceback (most recent call last):
  File "image_recognition.py", line 54, in <module>
    tensor = RosTensorFlow()
  File "image_recognition.py", line 19, in __init__
    classify_image.maybe_download_and_extract()
  File "/home/raghavendra_sriram/indigo_ws/src/models/tutorials/image/imagenet/classify_image.py", line 172, in maybe_download_and_extract
    dest_directory = FLAGS.model_dir
AttributeError: 'NoneType' object has no attribute 'model_dir'

@rs1990
Copy link
Author

rs1990 commented Jul 28, 2017

Are there any other necessary requirements to run this package ?

@OTL
Copy link
Owner

OTL commented Aug 3, 2017

Hi, newest classify_image.py seems that it needs some modification. So I copied it in my repo, and
modified to use from my program.

And I push the new version, which supports kinetic and latest tensorflow for you!!!
Please update, and try it again!

@rs1990
Copy link
Author

rs1990 commented Aug 8, 2017

Hello,
Thanks a lot. Sorry i couldnt get back to you earlier. I managed to get the previous version working with tensorflow 0.9. Il try this with tensorflow 1.0 and get back.

Cheers.

@OTL
Copy link
Owner

OTL commented Aug 8, 2017 via email

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