UC-Merced-Pretrained-CNN
UC-Merced-Pretrained-CNN copied to clipboard
ZeroDivisionError: integer division or modulo by zero
Generating "train" bottleneck predictions Found 0 images belonging to 21 classes.
FileNotFoundError Traceback (most recent call last)
FileNotFoundError: [Errno 2] No such file or directory: 'data/bn_train_X.npy'
During handling of the above exception, another exception occurred:
ZeroDivisionError Traceback (most recent call last)
~/anaconda2/envs/py36/lib/python3.6/site-packages/keras_preprocessing/image.py in next(self, *args, **kwargs) 1524 1525 def next(self, *args, **kwargs): -> 1526 return self.next(*args, **kwargs) 1527 1528 def _get_batches_of_transformed_samples(self, index_array):
~/anaconda2/envs/py36/lib/python3.6/site-packages/keras_preprocessing/image.py in next(self) 1965 """ 1966 with self.lock: -> 1967 index_array = next(self.index_generator) 1968 # The transformation of images is not under thread lock 1969 # so it can be done in parallel
~/anaconda2/envs/py36/lib/python3.6/site-packages/keras_preprocessing/image.py in _flow_index(self) 1509 self._set_index_array() 1510 -> 1511 current_index = (self.batch_index * self.batch_size) % self.n 1512 if self.n > current_index + self.batch_size: 1513 self.batch_index += 1
ZeroDivisionError: integer division or modulo by zero
images have not been copied inside train test validate folders. why this is happening can anyone please help
Keep your unzip file out of the data folder because the images are copied from the unzip folder