Skip to content

Commit

Permalink
Update utils.py (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachasamama authored Oct 21, 2021
1 parent 30ee564 commit 435331f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion darwin/torch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def detectron2_register_dataset(
catalog_name = f"darwin_{dataset_path.name}"
if partition:
catalog_name += f"_{partition}"
classes = get_classes(dataset_path, annotation_type="polygon")

classes = get_classes(dataset_path=dataset_path, release_name=release_name, annotation_type="polygon")

DatasetCatalog.register(
catalog_name,
lambda partition=partition: list(
Expand Down

0 comments on commit 435331f

Please sign in to comment.