shekkizh/Colorization.tensorflow

TypeError: 'NoneType' object is not iterable

mashuk06 opened this issue · 1 comments

Cann't figure out why this error occurs.

File "image_colorization.py", line 191, in
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "image_colorization.py", line 142, in main
batch_reader = dataset.BatchDatset(train_images, image_options)
File "/home/pinky/Desktop/color/BatchDatsetReader.py", line 30, in init
self._read_images()
File "/home/pinky/Desktop/color/BatchDatsetReader.py", line 33, in _read_images
self.images = np.array([self._transform(filename) for filename in self.files])
TypeError: 'NoneType' object is not iterable

Looking forward to your reply.Thanks in advance :)

Maybe the dataset is not downloaded completely.
Try delete the Data_Zoo folder and run it again. :)