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

[conversion issue] Convert tiny-yolov3 from darknet format to Caffe format #251

Open
Rahn80643 opened this issue Apr 8, 2020 · 3 comments

Comments

@Rahn80643
Copy link

Rahn80643 commented Apr 8, 2020

Hi,
I'm trying to convert a tiny-yolov3 model from .weight to .Caffemodel, and the models are from the author's website: https://pjreddie.com/darknet/yolo/

I followed the tutorial in https://github.com/eric612/MobileNet-YOLO/tree/master/models/darknet_yolov3, and darknet53 YOLOv3 can be converted succefully. But tiny-yolov3 cannot be converted, and I got the following error message:

Check failed: top_shape[j] == bottom[i]->shape(j) (24 vs. 26) All inputs must have the same shape, except at concat_axis.
20200408_tiny-yolo_failed

I've also tested the model in darknet53 project, and tiny-yolov3 model can be execute succesfully. Should the settings in darknet2caffe.py be modified ?

@Rahn80643 Rahn80643 changed the title ] [conversion issue] Convert tiny-yolov3 from darknet format to Caffe format Apr 8, 2020
@pra-dan
Copy link

pra-dan commented Apr 16, 2020

Hey @Rahn80643 Did you get past this problem ? Also, have you tried it on v2-tiny models ?

@Rahn80643
Copy link
Author

@PrashantDandriyal,
sorry I have not solved the problem yet, and I only tried to convert v3-tiny model

@troyliu0105
Copy link

This is problem of downsampling or stride in conv. Did you check the maxpooling roundmode or conv stride?

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

3 participants