-
Notifications
You must be signed in to change notification settings - Fork 175
TypeError: buffer is too small for requested array #21
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
Comments
I meet the problem too.I search in Google,somebody say that it maybe your keras model isn't match yolov4.weights.So I try to figure out. |
I solve the problem,but I use my code.Here is link.Besides, my keras model is mismatch the AlexeyAB-version.So I just load csp-darknet. |
Got the same issue when I tried to convert my tiny-yolov4, trained with AlexeyAB darknet version |
I've got this error as well. Did anyone manage to solve it? |
any updates? |
@Amokstakov I've retrained my data by setting image size to (608,608) in yolov4-custom config file and it works. |
@JoshieLim I am struggling converting the downloaded yolo_4.weights file to the yolo4.h5 file using the conver.py |
@Amokstakov Hmm that's odd. I'm able to convert to .h5 on my end. Did you set the anchors path to a yolo4_anchors? It should look something like this for yolov4 anchors 12, 16, 19, 36, 40, 28, 36, 75, 76, 55, 72, 146, 142, 110, 192, 243, 459, 401. |
Still no luck here. like from GitClone... what are the next steps into running the detect then test.py code? |
Any update? |
@Amokstakov Can you try to convert this yolov4.weights from this link. See if it works. #get yolov4 pre-trained weights |
@ybloch Hi, Have you managed to convert tiny_yolov4.weights to .h5? It's pre-trained tiny_yolov4, not custom tiny_yolov4 model. |
@MuhammadAsadJaved Hi,
You will find in this project an example of using the converted model |
@ybloch OK. Thanks for sharing dear. Actually I need keras model for some other project (tiny_yolov4+deep_sort). It's a project for detection and then applying tracker on detections. |
did anyone manage to convert the model? If yes, please help |
Same problem here. Tried all possible mirrors for yolov4 weights. |
Thank @Runist for you comment I have converted yolov4.weights file to .h5 file using Runist YOLOV4 Repository " |
@maazullah96 this shows 404 |
Having same issue. |
Traceback (most recent call last):
File "convert.py", line 173, in
yolo4_model = Yolo4(score, iou, anchors_path, classes_path, model_path, weights_path)
File "convert.py", line 157, in init
self.load_yolo()
File "convert.py", line 130, in load_yolo
buffer=weights_file.read(weights_size * 4))
The text was updated successfully, but these errors were encountered: