From cc3be0e2232ada60b5729e34e9d39b9256012d06 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sat, 21 Jan 2023 01:16:50 +0100 Subject: [PATCH] Fix `v.replace(" ", "")` (#531) --- ultralytics/yolo/configs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: