Update TryExcept(msg='...')` (#9261)
This commit is contained in:
1 parent
5d4787baab
commit
15e82d2967
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ def check_anchor_order(m):
|
||||
m.anchors[:] = m.anchors.flip(0)
|
||||
|
||||
|
||||
@TryExcept(f'{PREFIX}ERROR:')
|
||||
@TryExcept(f'{PREFIX}ERROR: ')
|
||||
def check_anchors(dataset, model, thr=4.0, imgsz=640):
|
||||
# Check anchor fit to data, recompute if necessary
|
||||
m = model.module.model[-1] if hasattr(model, 'module') else model.model[-1] # Detect()
|
||||
|
||||
Reference in new issue
Block a user