We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ac656d commit eeaba33Copy full SHA for eeaba33
demos/common/python/openvino/model_zoo/model_api/models/instance_segmentation.py
@@ -160,9 +160,7 @@ class YolactModel(ImageModel):
160
def __init__(self, model_adapter, configuration):
161
super().__init__(model_adapter, configuration)
162
self._check_io_number(1, 4)
163
- if isinstance(self.labels, (list, tuple)):
164
- self.labels = self.labels
165
- else:
+ if not isinstance(self.labels, (list, tuple)):
166
self.labels = load_labels(self.labels) if self.labels else None
167
168
self.output_blob_name = self._get_outputs()
0 commit comments