Hi, I'm trying to run this project with webcam streams and got this error message:
Traceback (most recent call last):
File "detect.py", line 186, in <module>
detect()
File "detect.py", line 85, in detect
pred = model(img, augment=opt.augment)[0]
File "/home/xiesiyang/anaconda3/envs/yolor/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/xiesiyang/workspace/yolor/models/models.py", line 543, in forward
return self.forward_once(x)
File "/home/xiesiyang/workspace/yolor/models/models.py", line 594, in forward_once
x = module(x, out) # WeightedFeatureFusion(), FeatureConcat()
File "/home/xiesiyang/anaconda3/envs/yolor/lib/python3.6/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/xiesiyang/workspace/yolor/utils/layers.py", line 69, in forward
return torch.cat([outputs[i] for i in self.layers], 1) if self.multiple else outputs[self.layers[0]]
RuntimeError: Sizes of tensors must match except in dimension 2. Got 24 and 23 (The offending index is 0)
terminate called without an active exception
Aborted (core dumped)
Hi, I'm trying to run this project with webcam streams and got this error message: