Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. $ python shallownet_animals.py --dataset ../datasets/animals/
  2. Using TensorFlow backend.
  3. [INFO] loading images...
  4. Traceback (most recent call last):
  5. File "shallownet_animals.py", line 35, in <module>
  6. (data, labels) = sdl.load(imagePaths, verbose=500)
  7. File "/home/swartz/dev/dl4cv/SB_Code/chapter12-first_cnn/pyimagesearch/datasets/simpledatasetloader.py", line 34, in load
  8. image = p.preprocess(image)
  9. File "/home/swartz/dev/dl4cv/SB_Code/chapter12-first_cnn/pyimagesearch/preprocessing/imagetoarraypreprocessor.py", line 12, in preprocess
  10. return img_to_array(image, data_format=self.dataFormat)
  11. File "/usr/lib/python2.7/dist-packages/keras_preprocessing/image/utils.py", line 278, in img_to_array
  12. raise ValueError('Unknown data_format: %s' % data_format)
  13. ValueError: Unknown data_format: None
  14.  
  15. class ImageToArrayPreprocessor:
  16. def __init__(self, dataFormat=None):
  17. # store the image data format
  18. self.dataFormat = dataFormat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement