Skip to content

convert.py error: TypeError: unicode argument expected, got 'str' #26

@naitfox

Description

@naitfox

I am getting this error while trying to convert the yolov3 model.

$ python convert.py model_data/yolov3.cfg model_data/yolov3.weights model_data/yolo_weights.h5
Using TensorFlow backend.
Loading weights.
('Weights Header: ', 0, 2, 0, array([32013312]))
Parsing Darknet config.
Traceback (most recent call last):
File "convert.py", line 263, in
_main(parser.parse_args())
File "convert.py", line 84, in _main
unique_config_file = unique_config_sections(config_path)
File "convert.py", line 54, in unique_config_sections
output_stream.write(line)
TypeError: unicode argument expected, got 'str'

I am using
Keras 2.2.4
Tensorflow 1.15.0

Also, which version of python do you suggest to use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions