mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 21:44:22 +08:00
Fix v.replace(" ", "")
(#531)
This commit is contained in:
parent
e0e2f83a47
commit
cc3be0e223
@ -164,7 +164,7 @@ def entrypoint(debug=False):
|
||||
try:
|
||||
if k == 'device': # special DDP handling, i.e. device='0,1,2,3'
|
||||
v = v.replace('[', '').replace(']', '') # handle device=[0,1,2,3]
|
||||
v = v.replace(" ", "").replace('') # handle device=[0, 1, 2, 3]
|
||||
v = v.replace(" ", "") # handle device=[0, 1, 2, 3]
|
||||
v = v.replace('\\', '') # handle device=\'0,1,2,3\'
|
||||
overrides[k] = v
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user