Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyu2172 committed Jul 4, 2018
1 parent 33d8d9e commit 6e31126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chainercv/datasets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
from chainercv.datasets.cub.cub_utils import cub_label_names # NOQA
from chainercv.datasets.directory_parsing_label_dataset import directory_parsing_label_names # NOQA
from chainercv.datasets.directory_parsing_label_dataset import DirectoryParsingLabelDataset # NOQA
from chainercv.datasets.imagenet.imagenet_det_bbox_dataset import ImagenetDetBboxDataset # NOQA
from chainercv.datasets.imagenet.imagenet_utils import imagenet_det_bbox_label_names # NOQA
from chainercv.datasets.imagenet.imagenet_utils import imagenet_det_synset_ids # NOQA
from chainercv.datasets.imagenet.imagenet_det_bbox_dataset import ImagenetDetBboxDataset # NOQA
from chainercv.datasets.mixup_soft_label_dataset import MixUpSoftLabelDataset # NOQA
from chainercv.datasets.online_products.online_products_dataset import online_products_super_label_names # NOQA
from chainercv.datasets.online_products.online_products_dataset import OnlineProductsDataset # NOQA
Expand Down
5 changes: 3 additions & 2 deletions chainercv/datasets/imagenet/imagenet_det_bbox_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from chainer.dataset import download

from chainercv.chainer_experimental.datasets.sliceable import GetterDataset
from chainercv.datasets.voc.voc_utils import parse_voc_bbox_annotation
from chainercv.datasets.imagenet.imagenet_utils import imagenet_det_synset_ids
from chainercv.datasets.voc.voc_utils import parse_voc_bbox_annotation
from chainercv.utils import read_image


Expand Down Expand Up @@ -104,7 +104,8 @@ def __init__(self, data_dir='auto', split='train', return_img_label=False):
self.add_getter('img', self._get_image)
self.add_getter(('bbox', 'label'), self._get_inst_anno)
if return_img_label:
self.add_getter(('img_label', 'img_label_type'), self._get_img_label)
self.add_getter(
('img_label', 'img_label_type'), self._get_img_label)

def __len__(self):
return len(self.ids)
Expand Down

0 comments on commit 6e31126

Please sign in to comment.