Hey Mark! Thank you for your tutorials on YOLO! But I am getting this error when I am going to train my own model and the error is:
cfg/tiny-yolo-voc-1c.cfg parsing new_model_dir/annotations
Parsing for ['gun']
[====================>]100% 000188.xml
Statistics:
gun: 235
Dataset size: 158
Dataset of 158 instance(s)
libpng warning: iCCP: known incorrect sRGB profile
Traceback (most recent call last):
File "flow", line 6, in
cliHandler(sys.argv)
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/cli.py", line 33, in cliHandler
print('Enter training ...'); tfnet.train()
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/net/flow.py", line 39, in train
for i, (x_batch, datum) in enumerate(batches):
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/net/yolo/data.py", line 114, in shuffle
inp, new_feed = self._batch(train_instance)
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/net/yolov2/data.py", line 27, in _batch
img = self.preprocess(path, allobj)
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/net/yolo/predict.py", line 71, in preprocess
im = imcv2_recolor(im)
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/utils/im_transform.py", line 11, in imcv2_recolor
im = im * (1 + t * a)
ValueError: operands could not be broadcast together with shapes (520,1200,4) (3,)
Any idea how to get rid of it please?
Hey Mark! Thank you for your tutorials on YOLO! But I am getting this error when I am going to train my own model and the error is:
cfg/tiny-yolo-voc-1c.cfg parsing new_model_dir/annotations
Parsing for ['gun']
[====================>]100% 000188.xml
Statistics:
gun: 235
Dataset size: 158
Dataset of 158 instance(s)
libpng warning: iCCP: known incorrect sRGB profile
Traceback (most recent call last):
File "flow", line 6, in
cliHandler(sys.argv)
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/cli.py", line 33, in cliHandler
print('Enter training ...'); tfnet.train()
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/net/flow.py", line 39, in train
for i, (x_batch, datum) in enumerate(batches):
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/net/yolo/data.py", line 114, in shuffle
inp, new_feed = self._batch(train_instance)
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/net/yolov2/data.py", line 27, in _batch
img = self.preprocess(path, allobj)
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/net/yolo/predict.py", line 71, in preprocess
im = imcv2_recolor(im)
File "/content/drive/My Drive/WHAT THE/darkflow/darkflow/utils/im_transform.py", line 11, in imcv2_recolor
im = im * (1 + t * a)
ValueError: operands could not be broadcast together with shapes (520,1200,4) (3,)
Any idea how to get rid of it please?