Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: operands could not be broadcast together with shapes (520,1200,4) (3,) #44

Open
BilalSaeedLM10 opened this issue Nov 3, 2019 · 0 comments

Comments

@BilalSaeedLM10
Copy link

BilalSaeedLM10 commented Nov 3, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant