ultralytics 8.1.4 RTDETR TensorBoard graph visualization fix (#7725)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
6535bcde2b
commit
7a0c27c7d7
8 changed files with 65 additions and 26 deletions
|
|
@ -427,7 +427,9 @@ class Model(nn.Module):
|
|||
@property
|
||||
def names(self):
|
||||
"""Returns class names of the loaded model."""
|
||||
return self.model.names if hasattr(self.model, "names") else None
|
||||
from ultralytics.nn.autobackend import check_class_names
|
||||
|
||||
return check_class_names(self.model.names) if hasattr(self.model, "names") else None
|
||||
|
||||
@property
|
||||
def device(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue