diff --git a/ultralytics/yolo/configs/__init__.py b/ultralytics/yolo/configs/__init__.py index 2c0c373..c1aff56 100644 --- a/ultralytics/yolo/configs/__init__.py +++ b/ultralytics/yolo/configs/__init__.py @@ -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: