Skip to content

Commit 740b545

Browse files
authored
[Fix] Fix UnicodeDecodeError in md2yml.py (open-mmlab#1555)
1 parent 090c91b commit 740b545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.dev/md2yml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def parse_md(md_file):
8888
# should be set with head or neck of this config file.
8989
is_backbone = None
9090

91-
with open(md_file, 'r') as md:
91+
with open(md_file, 'r', encoding='UTF-8') as md:
9292
lines = md.readlines()
9393
i = 0
9494
current_dataset = ''

0 commit comments

Comments
 (0)