mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
[Fix] Fix UnicodeDecodeError in md2yml.py (#1555)
This commit is contained in:
parent
090c91b7dc
commit
740b545770
@ -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 = ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user