ultralytics 8.1.33 fix HUB model checks (#9153)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
fc6c66a4a4
commit
ec1d110689
7 changed files with 20 additions and 18 deletions
|
|
@ -603,7 +603,7 @@ class AutoBackend(nn.Module):
|
|||
from ultralytics.engine.exporter import export_formats
|
||||
|
||||
sf = list(export_formats().Suffix) # export suffixes
|
||||
if not is_url(p, check=False) and not isinstance(p, str):
|
||||
if not is_url(p) and not isinstance(p, str):
|
||||
check_suffix(p, sf) # checks
|
||||
name = Path(p).name
|
||||
types = [s in name for s in sf]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue