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

convert.py Unsupported section header type: 'reorg_0' and 'region_0' #151

Open
juanmanuelrq opened this issue Apr 1, 2020 · 2 comments
Open

Comments

@juanmanuelrq
Copy link

Hi

When I use:
python convert.py yolo-obj.cfg yolo-obj_final.weights model_data/yolo.h5

I have this error:
Traceback (most recent call last): File "convert.py", line 266, in <module> _main(parser.parse_args()) File "convert.py", line 239, in _main 'Unsupported section header type: {}'.format(section)) ValueError: Unsupported section header type: reorg_0

and I add these lines

        elif section.startswith('reorg_0'):
            pass
        elif section.startswith('region_0'):
            pass

but the result was

Saved Keras model to model_data/yolo_sdm.h5
Read 48850214 of 50619686.0 from Darknet weights.
Warning: 1769472.0 unused weights

@ZERO-SPACE-X
Copy link

I have the same error. Could you share your solution?

@rsek147
Copy link

rsek147 commented Jun 12, 2020

You should use yolov3.cfg and yolov3.weights instead of yolo-obj.cfg

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