Spaces:
Sleeping
Sleeping
Commit
·
49221d6
1
Parent(s):
c38e7cf
Update model.py
Browse files
model.py
CHANGED
@@ -85,7 +85,7 @@ class Model(LabelStudioMLBase):
|
|
85 |
'width': x2-x,
|
86 |
'height': y2-y,
|
87 |
'rotation': 0,
|
88 |
-
'labels': [self.id2label[label]]
|
89 |
}
|
90 |
})
|
91 |
|
|
|
85 |
'width': x2-x,
|
86 |
'height': y2-y,
|
87 |
'rotation': 0,
|
88 |
+
'labels': [self.id2label[label.item()]]
|
89 |
}
|
90 |
})
|
91 |
|