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:
Glenn Jocher authored and GitHub committed 2022-01-13 21:23:03 -10:00
1 parent af001349e4
commit e7bf38277f
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -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