04143b146fe6280266ad72865522dd5396583d73,chainercv/datasets/voc/voc_utils.py,,get_voc,#Any#Any#,20

Before Change


        key = "2007_test"

    data_root = download.get_dataset_directory(root)
    base_path = os.path.join(data_root, "VOCdevkit/VOC{}".format(year))
    split_file = os.path.join(base_path, "ImageSets/Main/{}.txt".format(split))
    if os.path.exists(split_file):
        // skip downloading
        return base_path

    download_file_path = utils.cached_download(urls[key])
    ext = os.path.splitext(urls[key])[1]
    utils.extractall(download_file_path, data_root, ext)
    return base_path


def image_wise_to_instance_wise(label_img, inst_img):

After Change



    data_root = download.get_dataset_directory(root)
    // To support ChainerMN, the target directory should be locked.
    with filelock.FileLock(os.path.join(data_root, "lock")):
        base_path = os.path.join(data_root, "VOCdevkit/VOC{}".format(year))
        split_file = os.path.join(
            base_path, "ImageSets/Main/{}.txt".format(split))
        if os.path.exists(split_file):
            // skip downloading
            return base_path

        download_file_path = utils.cached_download(urls[key])
        ext = os.path.splitext(urls[key])[1]
        utils.extractall(download_file_path, data_root, ext)
    return base_path


def image_wise_to_instance_wise(label_img, inst_img):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 15

Instances


Project Name: chainer/chainercv
Commit Name: 04143b146fe6280266ad72865522dd5396583d73
Time: 2019-02-14
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/datasets/voc/voc_utils.py
Class Name:
Method Name: get_voc


Project Name: chainer/chainercv
Commit Name: 04143b146fe6280266ad72865522dd5396583d73
Time: 2019-02-14
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/datasets/cub/cub_utils.py
Class Name:
Method Name: get_cub


Project Name: chainer/chainercv
Commit Name: 04143b146fe6280266ad72865522dd5396583d73
Time: 2019-02-14
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/datasets/sbd/sbd_utils.py
Class Name:
Method Name: get_sbd


Project Name: chainer/chainercv
Commit Name: 04143b146fe6280266ad72865522dd5396583d73
Time: 2019-02-14
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/datasets/online_products/online_products_dataset.py
Class Name:
Method Name: _get_online_products


Project Name: chainer/chainercv
Commit Name: 04143b146fe6280266ad72865522dd5396583d73
Time: 2019-02-14
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/datasets/cub/cub_utils.py
Class Name:
Method Name: get_cub_prob_map