Fix yaml.safe_load() ignore emoji errors (#5060)

This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-10-05 13:41:52 -07:00
1 parent 5afc9c25ef
commit 070af88108
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -21,7 +21,7 @@ for last in path.rglob('*/**/last.pt'):
continue
# Load opt.yaml
with open(last.parent.parent / 'opt.yaml') as f:
with open(last.parent.parent / 'opt.yaml', errors='ignore') as f:
opt = yaml.safe_load(f)
# Get device count