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
{{ message }}
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/ssd_kerass-master/SSD_training01.py", line 270, in
nb_worker=1)
File "D:\anaconda\envs\tensorflow\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "D:\anaconda\envs\tensorflow\lib\site-packages\keras\engine\training.py", line 2194, in fit_generator
generator_output = next(output_generator)
File "D:\anaconda\envs\tensorflow\lib\site-packages\keras\utils\data_utils.py", line 793, in get
six.reraise(value.class, value, value.traceback)
File "D:\anaconda\envs\tensorflow\lib\site-packages\six.py", line 693, in reraise
raise value
File "D:\anaconda\envs\tensorflow\lib\site-packages\keras\utils\data_utils.py", line 658, in _data_generator_task
generator_output = next(self._generator)
File "C:/Users/Administrator/Desktop/ssd_kerass-master/SSD_training01.py", line 206, in generate
y = self.bbox_util.assign_boxes(y)
File "C:\Users\Administrator\Desktop\ssd_kerass-master\ssd_utils.py", line 149, in assign_boxes
assignment[:, 5:-8][best_iou_mask] = boxes[best_iou_idx, 4:]
ValueError: shape mismatch: value array of shape (45,20) could not be broadcast to indexing result of shape (45,3)
The text was updated successfully, but these errors were encountered:
Thank you @ttzhub ,
You comment helped me to setup the number of classes. However, I will translate you comment in order to help others that do not know mandarim.
When training your own data, pay attention to the number of categories already marked in the dataset. The number of categories in get_data_from_XML.py is the same as the number of labels. In SSD_training.py, the number of categories = number of labels +1 will not be reported.
Thank you very much.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Traceback (most recent call last):
File "C:/Users/Administrator/Desktop/ssd_kerass-master/SSD_training01.py", line 270, in
nb_worker=1)
File "D:\anaconda\envs\tensorflow\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "D:\anaconda\envs\tensorflow\lib\site-packages\keras\engine\training.py", line 2194, in fit_generator
generator_output = next(output_generator)
File "D:\anaconda\envs\tensorflow\lib\site-packages\keras\utils\data_utils.py", line 793, in get
six.reraise(value.class, value, value.traceback)
File "D:\anaconda\envs\tensorflow\lib\site-packages\six.py", line 693, in reraise
raise value
File "D:\anaconda\envs\tensorflow\lib\site-packages\keras\utils\data_utils.py", line 658, in _data_generator_task
generator_output = next(self._generator)
File "C:/Users/Administrator/Desktop/ssd_kerass-master/SSD_training01.py", line 206, in generate
y = self.bbox_util.assign_boxes(y)
File "C:\Users\Administrator\Desktop\ssd_kerass-master\ssd_utils.py", line 149, in assign_boxes
assignment[:, 5:-8][best_iou_mask] = boxes[best_iou_idx, 4:]
ValueError: shape mismatch: value array of shape (45,20) could not be broadcast to indexing result of shape (45,3)
The text was updated successfully, but these errors were encountered: