3b2437d297a567ba16877ab7b6a9b0ff4ddd4914,chainercv/datasets/cub/cub_keypoint_dataset.py,CUBKeypointDataset,get_example,#CUBKeypointDataset#Any#,84
Before Change
keypoint = np.array(self.kp_dict[i], dtype=np.float32)
kp_mask = np.array(self.kp_mask_dict[i], dtype=np.bool)
if self.crop_bbox:
// (y_min, x_min, y_max, x_max)
bbox = self.bboxes[i].astype(np.int32)
img = img[:, bbox[0]: bbox[2], bbox[1]: bbox[3]]
keypoint[:, :2] = keypoint[:, :2] - bbox[:2]
if not self.return_mask:
return img, keypoint, kp_mask
path, _ = os.path.splitext(self.paths[i])
After Change
os.path.join(self.mask_dir, path + ".png"),
dtype=np.uint8,
color=False)
if self.return_bb:
return img, keypoint, kp_mask, self.bbs[i], mask
else:
return img, keypoint, kp_mask, mask
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: chainer/chainercv
Commit Name: 3b2437d297a567ba16877ab7b6a9b0ff4ddd4914
Time: 2017-09-19
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/cub/cub_keypoint_dataset.py
Class Name: CUBKeypointDataset
Method Name: get_example
Project Name: chainer/chainercv
Commit Name: f57def37d83e86ec79b9ba16eb2f1977827d0eed
Time: 2017-05-03
Author: Hakuyume@users.noreply.github.com
File Name: tests/visualizations_tests/test_vis_bbox.py
Class Name: TestVisBbox
Method Name: test_vis_bbox
Project Name: chainer/chainercv
Commit Name: 3b2437d297a567ba16877ab7b6a9b0ff4ddd4914
Time: 2017-09-19
Author: yuyuniitani@gmail.com
File Name: chainercv/datasets/cub/cub_label_dataset.py
Class Name: CUBLabelDataset
Method Name: get_example