Skip to content

Commit eeaba33

Browse files
Dmitry SidnevWovchena
andauthored
Minor fix
Co-authored-by: Zlobin Vladimir <[email protected]>
1 parent 1ac656d commit eeaba33

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

demos/common/python/openvino/model_zoo/model_api/models/instance_segmentation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ class YolactModel(ImageModel):
160160
def __init__(self, model_adapter, configuration):
161161
super().__init__(model_adapter, configuration)
162162
self._check_io_number(1, 4)
163-
if isinstance(self.labels, (list, tuple)):
164-
self.labels = self.labels
165-
else:
163+
if not isinstance(self.labels, (list, tuple)):
166164
self.labels = load_labels(self.labels) if self.labels else None
167165

168166
self.output_blob_name = self._get_outputs()

0 commit comments

Comments
 (0)