Skip to content

AttributeError: 'NoneType' object has no attribute 'keys' #13

Description

@iklobato

SO: Ubuntu 16.04
Docker: 2.5.0
Python3: 3.5.2
Python2 : 2.7.12
Tensorflow: 1.3.0 (intalled at both Python)

Made commands as root

./build.sh
./train.sh /<images/path>/tensorflow_image_classifier-master/pictures/training

Folders structure:

  • tensorflow_image_classifier-master
    • src
    • pictures
      • test
      • training
        • cats
        • dogs

I honestly dont know why im getting this error

root@mw:~<path>/tensorflow_image_classifier-master# ./train.sh /<path>/tensorflow_image_classifier-master/pictures/training
Image directory '/tf_files/data' not found.
Traceback (most recent call last):
  File "tensorflow/examples/image_retraining/retrain.py", line 824, in <module>
    tf.app.run()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 30, in run
    sys.exit(main(sys.argv))
  File "tensorflow/examples/image_retraining/retrain.py", line 721, in main
    class_count = len(image_lists.keys())
AttributeError: 'NoneType' object has no attribute 'keys'

EDIT: It was without the data folder

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions