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 TypeError: a bytes-like object is required, not 'str' #8

Closed
JackDeSomeTrades opened this issue May 25, 2018 · 1 comment
Closed

Comments

@JackDeSomeTrades
Copy link

Hi,
I'm unable to convert the Darknet model to a Keras model. I'm getting the following error:

Using TensorFlow backend.
Loading weights.
Weights Header: 0 2 0 [32013312]
Parsing Darknet config.
Traceback (most recent call last):
File "convert.py", line 241, in <module>
_main(parser.parse_args())
File "convert.py", line 78, in _main
unique_config_file = unique_config_sections(config_path)
File "convert.py", line 48, in unique_config_sections
output_stream.write(line)
TypeError: a bytes-like object is required, not 'str'

Any idea on how to solve this? Thanks.

@Qidian213
Copy link
Owner

#3

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