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

tensorflow.python.framework.errors_impl.NotFoundError: path/to/image.jpg #14

Open
monoharmayumrohitsharma opened this issue Feb 20, 2019 · 2 comments

Comments

@monoharmayumrohitsharma

i think the path im giving is not proper and im new with using docker how can i resolve this?, training went fine but im not able to find out the path in the command line so please help me with these......
the problem is with the classify.py
screenshot from 2019-02-20 13-11-50

@saltysoup
Copy link

saltysoup commented Mar 25, 2019

@monoharmayumrohitsharma quick work around is to copy the files to the expected file name

eg. cp logs/trained_labels.txt logs/output_labels.txt
eg. cp logs/trained_graph.pb logs/output_graph.pb

You might want to verify if you've opted to use a different file path and name in the main readme training instructions for the --output_graph and --output_labels params

python3 train.py \
  --bottleneck_dir=logs/bottlenecks \
  --how_many_training_steps=2000 \
  --model_dir=inception \
  --summaries_dir=logs/training_summaries/basic \
  --output_graph=logs/trained_graph.pb \
  --output_labels=logs/trained_labels.txt \
  --image_dir=./dataset

or alternatively don't pass any params for them as a default path value is given in the classify.py script

    parser.add_argument(
        '--output_graph',
        type=str,
        default='logs/output_graph.pb',
        help='Where to save the trained graph.'
        )
    parser.add_argument(
        '--output_labels',
        type=str,
        default='logs/output_labels.txt',
        help='Where to save the trained graph\'s labels.'
        )

@NitishHegde
Copy link

Hi , even I am facing the above issue. How can I resolve it?
I was unable to follow the above solution given

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

3 participants