Skip to content

Commit 6c3b8ac

Browse files
author
shuichi
committed
change tags convert logic
1 parent 73ee6a5 commit 6c3b8ac

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/visual_inspection_ai.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def parse_segmentation_json(
156156
width = json["width"]
157157
height = json["height"]
158158
# TODO 配列と文字で型の互換がないが問題ないか確認
159-
label = json["tags"]
159+
label = ", ".join(json["tags"])
160160
image_gcs_uri = json["name"]
161161
for annotation in json["annotations"]:
162162
annotationId = annotation["id"]
@@ -182,10 +182,6 @@ def parse_segmentation_json(
182182
return result
183183

184184
def __make_jsonl(self) -> list:
185-
# TODO 削除
186-
# print(self.figures)
187-
# print(self.figures[0].make_jsonl())
188-
# print(list(map(lambda it: it.make_jsonl(), self.figures)))
189185
return list(map(lambda it: it.make_jsonl(), self.figures))
190186

191187
def as_jsonl(self):

0 commit comments

Comments
 (0)