pytorch-yolo-v3 icon indicating copy to clipboard operation
pytorch-yolo-v3 copied to clipboard

Darknet issue trying to run slimyolov3

Open cartovarc opened this issue 6 years ago • 8 comments

I dowload this weights and cfg: https://github.com/PengyiZhang/SlimYOLOv3

original tensor size: torch.Size([1, 3, 608, 608])

I got this error:

with map1 and map2 with sizes in darknet.py file: torch.Size([1, 12, 2, 2]) torch.Size([1, 12, 3, 3])

File "/home/aras/Desktop/rosas/savia/monitor/yolo/darknet.py", line 341, in forward x = torch.cat((map1, map2), 1) RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 3 and 2 in dimension 2

cartovarc avatar Sep 04 '19 01:09 cartovarc

Screenshot from 2019-09-03 20-45-02

cartovarc avatar Sep 04 '19 01:09 cartovarc

@cartovarc have you solved it now?

H-YunHui avatar Sep 07 '19 01:09 H-YunHui

No, I have to use another YOLO implemention and it works. This is the repo https://github.com/ultralytics/yolov3

cartovarc avatar Sep 07 '19 01:09 cartovarc

@cartovarc thank you, I got it

H-YunHui avatar Sep 07 '19 02:09 H-YunHui

@cartovarc I have a question about how to display each processed image for video stream processing?

H-YunHui avatar Sep 07 '19 03:09 H-YunHui

Do you want stream to a browser ?

cartovarc avatar Sep 07 '19 06:09 cartovarc

@cartovarc no, I just want to show it and save it, like the issue: https://github.com/ultralytics/yolov3/issues/486

H-YunHui avatar Sep 07 '19 09:09 H-YunHui

@cartovarc hi, I have a question would like to ask you, when you train the repo: https://github.com/ultralytics/yolov3 have you ever had this kind of problem like this issue: https://github.com/ultralytics/yolov3/issues/479

H-YunHui avatar Sep 14 '19 01:09 H-YunHui