Fix device count check (#6290)
* Fix device count check() * Update torch_utils.py * Update torch_utils.py * Update hubconf.py
This commit is contained in:
1 parent
af001349e4
commit
e7bf38277f
2 files changed
+4
-3
No files matched your search
+1
-1
@@ -61,7 +61,7 @@ def _create(name, pretrained=True, channels=3, classes=80, autoshape=True, verbo
|
||||
|
||||
except Exception as e:
|
||||
help_url = 'https://github.com/ultralytics/yolov5/issues/36'
|
||||
s = 'Cache may be out of date, try `force_reload=True`. See %s for help.' % help_url
|
||||
s = f'{e}. Cache may be out of date, try `force_reload=True` or see {help_url} for help.'
|
||||
raise Exception(s) from e
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user