mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Raise error on suffix-less model path (#8561)
Raise error on invalid model
This commit is contained in:
parent
574ceedfc5
commit
f8722b4429
@ -441,6 +441,8 @@ class DetectMultiBackend(nn.Module):
|
|||||||
output_details = interpreter.get_output_details() # outputs
|
output_details = interpreter.get_output_details() # outputs
|
||||||
elif tfjs:
|
elif tfjs:
|
||||||
raise Exception('ERROR: YOLOv5 TF.js inference is not supported')
|
raise Exception('ERROR: YOLOv5 TF.js inference is not supported')
|
||||||
|
else:
|
||||||
|
raise Exception(f'ERROR: {w} is not a supported format')
|
||||||
self.__dict__.update(locals()) # assign all variables to self
|
self.__dict__.update(locals()) # assign all variables to self
|
||||||
|
|
||||||
def forward(self, im, augment=False, visualize=False, val=False):
|
def forward(self, im, augment=False, visualize=False, val=False):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user