Fix yaml.safe_load() ignore emoji errors (#5060)
This commit is contained in:
1 parent
5afc9c25ef
commit
070af88108
3 files changed
+5
-5
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user