Skip to content

Commit

Permalink
fix(opendataset): correct wrong catalog paths for two VOC2012 datasets
Browse files Browse the repository at this point in the history
correct the catalog paths for VOC2012Detection and VOC2012ActionClassification

PR Closed: #857
  • Loading branch information
marshallmallows committed Jul 27, 2021
1 parent 0cb35ba commit 7d7b3bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def VOC2012ActionClassification(path: str) -> Dataset:
action_path = os.path.join(path, "ImageSets", "Action")

dataset = Dataset(DATASET_NAME)
dataset.load_catalog("catalog.json")
dataset.load_catalog(os.path.join(os.path.dirname(__file__), "catalog.json"))

for segment_name in _SEGMENT_NAMES:
segment = dataset.create_segment(segment_name)
Expand Down
2 changes: 1 addition & 1 deletion tensorbay/opendataset/VOC2012Detection/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def VOC2012Detection(path: str) -> Dataset:
main_path = os.path.join(path, "ImageSets", "Main")

dataset = Dataset(DATASET_NAME)
dataset.load_catalog("catalog.json")
dataset.load_catalog(os.path.join(os.path.dirname(__file__), "catalog.json"))

for segment_name in _SEGMENT_NAMES:
segment = dataset.create_segment(segment_name)
Expand Down

0 comments on commit 7d7b3bd

Please sign in to comment.