a263992a8595227f4cb94a6cfe4c89c7d8854db9,chainercv/datasets/online_products/online_products_dataset.py,OnlineProductsDataset,__init__,#OnlineProductsDataset#Any#Any#,75
Before Change
utils.read_image(self.paths[i], color=True))
self.add_getter("label", lambda i:
np.array(self.class_ids[i], np.int32))
self.add_getter("super_label", lambda i:
np.array(self.super_class_ids[i], np.int32))
def __len__(self):
return len(self.paths)
After Change
self.paths += [os.path.join(data_dir, id_[3]) for id_ in ids_tmp]
self.add_getter("img", self._get_label)
self.add_getter("label", self._get_label)
self.add_getter("super_label", self._get_super_label)
def __len__(self):
return len(self.paths)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: chainer/chainercv
Commit Name: a263992a8595227f4cb94a6cfe4c89c7d8854db9
Time: 2018-06-20
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/online_products/online_products_dataset.py
Class Name: OnlineProductsDataset
Method Name: __init__
Project Name: chainer/chainercv
Commit Name: a263992a8595227f4cb94a6cfe4c89c7d8854db9
Time: 2018-06-20
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/online_products/online_products_dataset.py
Class Name: OnlineProductsDataset
Method Name: __init__
Project Name: chainer/chainercv
Commit Name: a263992a8595227f4cb94a6cfe4c89c7d8854db9
Time: 2018-06-20
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/ade20k/ade20k_semantic_segmentation_dataset.py
Class Name: ADE20KSemanticSegmentationDataset
Method Name: __init__
Project Name: chainer/chainercv
Commit Name: a2a558fc6c1e4b4308e130c77c31816564de7c3a
Time: 2018-06-20
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/online_products/online_products_dataset.py
Class Name: OnlineProductsDataset
Method Name: __init__
Project Name: chainer/chainercv
Commit Name: a2a558fc6c1e4b4308e130c77c31816564de7c3a
Time: 2018-06-20
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/ade20k/ade20k_semantic_segmentation_dataset.py
Class Name: ADE20KSemanticSegmentationDataset
Method Name: __init__