Open nsknsl opened 7 years ago
https://github.com/leetenki/YOLOv2/blob/master/YOLOv2_execute.md
Just follow this. Download pre-trained darknet weights file, then convert it to chainer's weights file.
Anyone has this problem when using yolov2_darknet_parser.py ?
@aliceyayunji
I got the same error too.
This seems to be caused by the difference between the num of parameters given and the num of parameters required.
The shape of dat is like this. (the num of parameters given)
(50983561,)
And it is the num of the parameters in yolo.weights
.
But the num of the parameters required is 67465609
.
(It can be calculated as offset
so I got it by comment out all of exec()
.)
I don't know what to do though...
https://pjreddie.com/darknet/yolo/
It says the file size is 258MB, however the file I downloaded by the link is only 203.9MB. The given parameters can be insufficient.
@leetenki I got the same problem. If anyone can solve, pls tell.
loading yolo.weights
loading initial model...
1 992
2 19680
3 93920
4 102368
5 176608
6 472544
7 505824
8 801760
9 1983456
10 2115552
11 3297248
12 3429344
13 4611040
14 9333728
15 9860064
16 14582752
17 15109088
18 19831776
19 29273056
20 38714336
Traceback (most recent call last):
File "yolov2_darknet_parser.py", line 86, in <module>
exec(txt)
File "<string>", line 1, in <module>
ValueError: cannot reshape array of size 12265129 into shape (1024,3072,3,3)
Solved Download yolo.weights (258MB) from here and use it https://drive.google.com/drive/folders/0B1tW_VtY7onidEwyQ2FtQVplWEU
@yoshi4417 I have went to https://drive.google.com/drive/folders/0B1tW_VtY7onidEwyQ2FtQVplWEU,,,but I saw the yolo.weights is 194MB,can it solve the problem?
@godspysonyou It looks it has been re-updated... I uploaded old version of yolo.weights https://drive.google.com/open?id=0B4kMaWAXZNSWcUJCVW1aOHV0MkU Please use it :)
I have the problem.
Traceback (most recent call last):
File "yolov2_darknet_predict.py", line 86, in
anyone please tell me how to fix it
me too >>> ValueError: cannot reshape array of size 4943738 into shape (1024,1024,3,3)
I downloaded the following weights file:
https://pjreddie.com/media/files/tiny-yolo.weights
what does the 'file' refer to and what it should be? thank you.