Closed mjkvaak closed 4 years ago
The code uses cv2 which to my understanding processes data in (height, width, channels) format. In before returning the batches, the generator should swap the axes order to (channels, height, width) if data_format = 'channels_first'.
cv2
(height, width, channels)
(channels, height, width)
data_format = 'channels_first'
Fixed
The code uses
cv2
which to my understanding processes data in(height, width, channels)
format. In before returning the batches, the generator should swap the axes order to(channels, height, width)
ifdata_format = 'channels_first'
.