loicmarie / sign-language-alphabet-recognizer

Simple sign language alphabet recognizer using Python, openCV and tensorflow for training Inception model (CNN classifier).
MIT License
288 stars 146 forks source link

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

Open monoharmayumrohitsharma opened 5 years ago

monoharmayumrohitsharma commented 5 years ago

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 commented 5 years ago

@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 commented 2 years ago

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