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

./guess.sh does not output anything into the terminal #1

Open
ProGamerGov opened this issue Sep 16, 2016 · 9 comments
Open

./guess.sh does not output anything into the terminal #1

ProGamerGov opened this issue Sep 16, 2016 · 9 comments

Comments

@ProGamerGov
Copy link

ubuntu@ubuntu-VirtualBox:~/tensorflow_image_classifier$ sudo ./guess.sh /home/ubuntu/tensorflow_image_classifier/my_own_classifier /home/ubuntu/tensorflow_image_classifier/prisma/prisma-stpauls.jpg
ubuntu@ubuntu-VirtualBox:~/tensorflow_image_classifier$ 
@rahuldeo2047
Copy link

try removing "2> /dev/null" from guess.sh to check.

@ProGamerGov
Copy link
Author

I removed the "2> /dev/null" from guess.sh, and now receive a visible error message.

ubuntu@ubuntu-VirtualBox:~/tensorflow_image_classifier$ ./guess.sh /home/ubuntu/tensorflow_image_classifier/my_own_classifier /home/ubuntu/tensorflow_image_classifier/thumb_img86798_ac828794883f3bb9.jpg
./guess.sh: 2: cd: can't cd to /tf_files
Traceback (most recent call last):
  File "label_image.py", line 1, in <module>
    import tensorflow as tf
  File "/tensorflow/tensorflow/__init__.py", line 23, in <module>
    from tensorflow.python import *
  File "/tensorflow/tensorflow/python/__init__.py", line 48, in <module>
    from tensorflow.python import pywrap_tensorflow
ImportError: cannot import name pywrap_tensorflow
ubuntu@ubuntu-VirtualBox:~/tensorflow_image_classifier$ 

@arthurgrevin
Copy link

I have the same error trace. Did you find a way to solve this ?

@AntonEryomin
Copy link

Hi!

I've deleted this: "2> /dev/null"
But I have a different error message:

➜ my_own_classifier ./guess.sh ~/Documents/CNN/5minutes/my_own_classifier/ ~/Documents/CNN/5minutes/my_own_classifier/testImage.jpg
: not foundess.sh

How can I analyse what does this script do?

@AntonEryomin
Copy link

I've found solution, just be careful about the path and don't forget that you use scripts through docker container, find out more information about how is it work.

@ProGamerGov
Copy link
Author

To solve the issue, I made a new Ubuntu VM in Virutalbox where I installed tensorflow using pip. I then ran the script label_image.py directly.

@abramjs
Copy link

abramjs commented Jan 6, 2017

@odino4ka I've the same issue,
: not foundess.sh
could you please better explain how you solved it?

@flappyshabeer
Copy link

Try to install tensorflow and change the directory from root to the folder where the program has place the classifier
Then open terminal and enter : sudo python label_image.py mydirectory/img.jpeg

@achirand
Copy link

achirand commented Dec 3, 2017

Try this way can solve this problem.
First, open label_image.py, change "/tf_files/retrained_labels.txt" to "/home/liuliu/python/liuliu_classifier/retrained_labels.txt"
and "/tf_files/retrained_graph.pb" to "/home/liuliu/python/liuliu_classifier/retrained_graph.pb"
then enter this command in terminal: sudo python ./src/label_image.py /home/liuliu/python/test/test11.jpg

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

7 participants