Initialize model_name attribute (#19224)
This commit is contained in:
parent
316f6574ca
commit
f4114b0319
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue