1
0
mirror of https://github.com/open-mmlab/mmsegmentation.git synced 2025-06-03 22:03:48 +08:00

[Fix] Fix UnicodeDecodeError in md2yml.py ()

This commit is contained in:
MengzhangLI 2022-05-11 23:41:22 +08:00 committed by GitHub
parent 090c91b7dc
commit 740b545770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,7 @@ def parse_md(md_file):
# should be set with head or neck of this config file.
is_backbone = None
with open(md_file, 'r') as md:
with open(md_file, 'r', encoding='UTF-8') as md:
lines = md.readlines()
i = 0
current_dataset = ''