Skip to content

Commit

Permalink
Merge pull request #70 from opendatalab/fix-issue-69
Browse files Browse the repository at this point in the history
Update converter.py
  • Loading branch information
gary-Shen authored Dec 7, 2023
2 parents 3a8d3c2 + 364fb2b commit 48537ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labelu/internal/common/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def convert_to_coco(
category_id += 1
tools_category = config.get("tools", [])
for tool in tools_category:
for attr in tool.get("config", {}).get("attributeList", []):
for attr in tool.get("config", {}).get("attributes", []):
category = {
"id": category_id,
"name": attr.get("value", ""),
Expand Down

0 comments on commit 48537ac

Please sign in to comment.