Initialize `model_name` attribute (#19224)

pull/18949/merge
Love and hope 4 weeks ago committed by GitHub
parent 316f6574ca
commit f4114b0319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      ultralytics/engine/model.py

@ -122,6 +122,7 @@ class Model(torch.nn.Module):
self.metrics = None # validation/training metrics
self.session = None # HUB session
self.task = task # task type
self.model_name = None # model name
model = str(model).strip()
# Check if Ultralytics HUB model from https://hub.ultralytics.com

Loading…
Cancel
Save