Skip to content

Commit

Permalink
Changed name of camera trap dataset class to be consistent with others
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel-Simon committed Mar 18, 2019
1 parent 9b8bc06 commit 23c33a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FasterRCNNDetection/data/coco_camera_traps_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def load_taxonomy(ann_data, tax_levels, classes):
return taxonomy, classes_taxonomic


class CocoCameraTrapsBBoxDataset:
class CocoCameraTrapsBboxDataset:
"""Bounding box dataset
The index corresponds to each image.
Expand Down
4 changes: 2 additions & 2 deletions FasterRCNNDetection/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
################

import torch as t
from .coco_camera_traps_dataset import CocoCameraTrapsBBoxDataset
from .coco_camera_traps_dataset import CocoCameraTrapsBboxDataset
from .voc_dataset import VOCBboxDataset
from .vott_dataset import VottBboxDataset
from .iwildcam_dataset import IWildCamBboxDataset
Expand Down Expand Up @@ -170,7 +170,7 @@ def __init__(self, opt, class_names = [], use_difficult=True):
if opt.dataset == 'voc':
self.db = VOCBboxDataset(opt.voc_data_dir, split='test', use_difficult=use_difficult)
elif opt.dataset in ['multiclass', 'oneclass']:
self.db = CocoCameraTrapsBboxDatasetBboxDataset(opt.image_root, opt.val_annotation)
self.db = CocoCameraTrapsBboxDataset(opt.image_root, opt.val_annotation)
elif opt.dataset == 'vott':
self.db = VottBboxDataset(opt.val_image_dir, class_names)
elif opt.dataset == 'seals':
Expand Down

0 comments on commit 23c33a4

Please sign in to comment.