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 6c3b8ac commit a0b7695Copy full SHA for a0b7695
examples/visual_inspection_ai.py
@@ -80,13 +80,16 @@ def make_jsonl(self) -> dict:
80
if self.project_type == "bbox"
81
else self.__make_segmentation_vi_annotations_jsonl()
82
)
83
+ dataItemResourceLabels = {
84
+ "goog_vi_ml_use": self.goog_vi_ml_use,
85
+ }
86
+
87
+ if self.project_type == "segmentation":
88
+ dataItemResourceLabels["label"] = self.label
89
return {
90
"image_gcs_uri": self.image_gcs_uri,
91
"vi_annotations": vi_annotations,
- "dataItemResourceLabels": {
- "label": self.label,
- "goog_vi_ml_use": self.goog_vi_ml_use,
- },
92
+ "dataItemResourceLabels": dataItemResourceLabels,
93
}
94
95
def __make_bbox_vi_annotations_jsonl(self) -> dict:
0 commit comments