ec23dc7d3e64f5413ef061fb8f4fe1ae556bb434,chainercv/datasets/cub/cub_keypoint_dataset.py,CUBKeypointDataset,__init__,#CUBKeypointDataset#Any#Any#Any#Any#,67

Before Change


    def __init__(self, data_dir="auto", return_bb=False,
                 prob_map_dir="auto", return_prob_map=False):
        super(CUBKeypointDataset, self).__init__(data_dir, prob_map_dir)
        self.data_names = ("img", "keypoint", "kp_mask")
        if return_bb:
            self.data_names += ("bb",)
        if return_prob_map:
            self.data_names += ("prob_map",)
        self.add_getter(("keypoint", "kp_mask"), self.get_kp)

        // load keypoint
        parts_loc_file = os.path.join(self.data_dir, "parts", "part_locs.txt")

After Change



        self.add_getter(("keypoint", "kp_mask"), self.get_kp)

        keys = ["img", "keypoint", "kp_mask"]
        if return_bb:
            keys.append("bb")
        if return_prob_map:
            keys.append("prob_map")
        self.keys = keys

    def get_kp(self, i):
        Returns the keypoints and their mask of the i-th example.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: chainer/chainercv
Commit Name: ec23dc7d3e64f5413ef061fb8f4fe1ae556bb434
Time: 2018-04-17
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/datasets/cub/cub_keypoint_dataset.py
Class Name: CUBKeypointDataset
Method Name: __init__


Project Name: dmlc/gluon-cv
Commit Name: ee602b6f68f0bdd19f449a86955697f8f0a2d54c
Time: 2019-09-21
Author: yizhu59@gmail.com
File Name: gluoncv/data/transforms/video.py
Class Name: VideoMultiScaleCrop
Method Name: forward


Project Name: dmlc/gluon-cv
Commit Name: ee602b6f68f0bdd19f449a86955697f8f0a2d54c
Time: 2019-09-21
Author: yizhu59@gmail.com
File Name: gluoncv/data/transforms/video.py
Class Name: VideoCenterCrop
Method Name: forward