You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried to run the model but I get the following error
Epoch 1/100
Traceback (most recent call last):
File "/home/user/.local/lib/python3.5/site-packages/keras/utils/data_utils.py", line 578, in get
inputs = self.queue.get(block=True).get()
File "/usr/lib/python3.5/multiprocessing/pool.py", line 608, in get
raise self._value
File "/usr/lib/python3.5/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/user/.local/lib/python3.5/site-packages/keras/utils/data_utils.py", line 401, in get_index
return _SHARED_SEQUENCES[uid][i]
File "/home/user/Desktop/Keras-ICNet/utils.py", line 95, in getitem
self.Y1[n] = to_categorical(cv2.resize(label, (label.shape[1]//4, label.shape[0]//4)), self.n_classes).reshape((label.shape[0]//4, label.shape[1]//4, -1))
File "/home/user/.local/lib/python3.5/site-packages/keras/utils/np_utils.py", line 31, in to_categorical
categorical[np.arange(n), y] = 1
IndexError: index 117 is out of bounds for axis 1 with size 66
The above exception was the direct cause of the following exception:
Traceback`(most recent call last):
File "train", line 63, in
use_multiprocessing=False, shuffle=True, max_queue_size=10, initial_epoch=opt.epoch)
File "/home/user/.local/lib/python3.5/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/home/user/.local/lib/python3.5/site-packages/keras/engine/training.py", line 2192, in fit_generator
generator_output = next(output_generator)
File "/home/user/.local/lib/python3.5/site-packages/keras/utils/data_utils.py", line 584, in get
six.raise_from(StopIteration(e), e)
File "", line 3, in raise_from
StopIteration: index 117 is out of bounds for axis 1 with size 66
Any ideas ?
Many thanks
The text was updated successfully, but these errors were encountered:
The samples are not in the same format as the full dataset, you should request for the whole dataset on the website https://www.mapillary.com/dataset/vistas
I personally set classes for my labelled images myself
Hi,
I tried to run the model but I get the following error
Any ideas ?
Many thanks
The text was updated successfully, but these errors were encountered: