We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7efd520 commit eac3c03Copy full SHA for eac3c03
1 file changed
hubconf.py
@@ -43,7 +43,7 @@ def _create(name, pretrained=True, channels=3, classes=80, autoshape=True, verbo
43
device = select_device(('0' if torch.cuda.is_available() else 'cpu') if device is None else device)
44
45
if pretrained and channels == 3 and classes == 80:
46
- model = DetectMultiBackend(path, device='cpu') # download/load FP32 model
+ model = DetectMultiBackend(path, device=device) # download/load FP32 model
47
else:
48
cfg = list((Path(__file__).parent / 'models').rglob(f'{path.name}.yaml'))[0] # model.yaml path
49
model = Model(cfg, channels, classes) # create model
0 commit comments