Skip to content

Commit

Permalink
Fixed import COCO dataset categories id
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks authored Feb 22, 2019
1 parent c290422 commit 9cfb516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/util/task_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def import_coco_func(task, socket, dataset, coco_json):
new_category.save()

category_model = new_category
dataset.categories.append(new_category)
dataset.categories.append(new_category.id)

task.info(f"{category_name} category found")
# map category ids
Expand Down

0 comments on commit 9cfb516

Please sign in to comment.