ArunMichaelDsouza / tensorflow-image-detection

A generic image detection program that uses Google's Machine Learning library, Tensorflow and a pre-trained Deep Learning Convolutional Neural Network model called Inception.
MIT License
328 stars 88 forks source link

Attribute error: 'nonetype' object has no attribute 'keys' #11

Closed PrakharPrashantSingh closed 5 years ago

PrakharPrashantSingh commented 5 years ago

this error is coming after downloading inception package at command Retrain.py

ArunMichaelDsouza commented 5 years ago

Can you please tell me which version of Python and Tensorflow you are running?

PrakharPrashantSingh commented 5 years ago

I resolved this issue, my python verson 3.6 and tensorflow is latest version, sorry forgot to query, the error occured due to path error

PrakharPrashantSingh commented 5 years ago

The program was not behaving in the right way as it is supposed to be, it didn't create a folder named tf_"data" or something, inspite of that in the temp directory, .pb model and attribute text file were changed after retaining, so i changed path in the final .py executable file and it ran, took around 2-3 hrs extra but worked!!! Thanks for making this simple code!!

ArunMichaelDsouza commented 5 years ago

Sure, not a problem! Great that you were able to make it work.

PrakharPrashantSingh commented 5 years ago

if this error again occur, try this: python F:\Tensorflow\retrain.py --image_dir C:\training_data --how_many_training_steps 500 --model_dir F:\Tensorflow\inception --output_graph=F:\Tensorflow\retrained_graph.pb --output_labels=F:\Tensorflow\retrained_labels.txt