Simplify usage, remove YOLO.new() and YOLO.load()
This commit is contained in:
parent
7b21a87da3
commit
d76d7af566
5 changed files with 33 additions and 42 deletions
|
|
@ -4,7 +4,7 @@ from ultralytics.yolo.utils import ROOT
|
|||
if __name__ == "__main__":
|
||||
for m in list((ROOT / 'yolo/v8/models').rglob('*.yaml')):
|
||||
try:
|
||||
YOLO.new(m.name, verbose=True)
|
||||
YOLO(m.name, verbose=True)
|
||||
except Exception as e:
|
||||
print(f'ERROR for {m}: {e}')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue