04143b146fe6280266ad72865522dd5396583d73,chainercv/datasets/sbd/sbd_utils.py,,get_sbd,#,31
Before Change
def get_sbd():
data_root = download.get_dataset_directory(root)
base_path = os.path.join(data_root, "benchmark_RELEASE/dataset")
train_voc2012_file = os.path.join(base_path, "train_voc2012.txt")
if os.path.exists(train_voc2012_file):
// skip downloading
return base_path
download_file_path = utils.cached_download(url)
ext = os.path.splitext(url)[1]
utils.extractall(download_file_path, data_root, ext)
six.moves.urllib.request.urlretrieve(train_voc2012_url, train_voc2012_file)
_generate_voc2012_txt(base_path)
After Change
def get_sbd():
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, "benchmark_RELEASE/dataset")
train_voc2012_file = os.path.join(base_path, "train_voc2012.txt")
if os.path.exists(train_voc2012_file):
// skip downloading
return base_path
download_file_path = utils.cached_download(url)
ext = os.path.splitext(url)[1]
utils.extractall(download_file_path, data_root, ext)
six.moves.urllib.request.urlretrieve(
train_voc2012_url, train_voc2012_file)
_generate_voc2012_txt(base_path)
return base_path
sbd_instance_segmentation_label_names = voc_instance_segmentation_label_names
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/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/cub/cub_utils.py
Class Name:
Method Name: get_cub_prob_map
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/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