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

Can't convert my own trained model (Yolov4-csp) #34

Open
P-Cano opened this issue Mar 18, 2021 · 1 comment
Open

Can't convert my own trained model (Yolov4-csp) #34

P-Cano opened this issue Mar 18, 2021 · 1 comment

Comments

@P-Cano
Copy link

P-Cano commented Mar 18, 2021

Hi
I have a problem when converting my model to a .h5 file using the convert file. I had no problems converting from a model trained with yolov4 so I'm guessing there's some value that i need to change in order to be able to convert my file. I'm using the corresponding .txt and weights files for each model so I'm sure that's not the issue. BTW I'm getting this error with the csp model:
.
.
.

Converting 104
Traceback (most recent call last):
File "convert.py", line 171, 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))
TypeError: buffer is too small for requested array

Thanks and regards!

@thundo
Copy link

thundo commented Aug 11, 2021

This should be the fix #12 (comment)

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

2 participants