ultralytics 8.1.36 improve train stop robustness epoch + 1 >= self.epochs (#9384)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
3aeb058e82
commit
ed2250cf1c
3 changed files with 4 additions and 3 deletions
|
|
@ -140,7 +140,8 @@ class AutoBackend(nn.Module):
|
|||
# In-memory PyTorch model
|
||||
if nn_module:
|
||||
model = weights.to(device)
|
||||
model = model.fuse(verbose=verbose) if fuse else model
|
||||
if fuse:
|
||||
model = model.fuse(verbose=verbose)
|
||||
if hasattr(model, "kpt_shape"):
|
||||
kpt_shape = model.kpt_shape # pose-only
|
||||
stride = max(int(model.stride.max()), 32) # model stride
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue