db06f8e1ea800f8dd98665542e238f9e47597488,scripts/datasets/ade20k.py,,,#,95

Before Change


if __name__ == "__main__":
    args = parse_args()
    path = os.path.expanduser(args.path)
    if not os.path.isdir(os.path.join(path, "ADEChallengeData2016")):
        if not args.download:
            raise ValueError(("{} is not a valid directory, make sure it is present."
                              " Or you can try "--download" to grab it".format(path)))

After Change


if __name__ == "__main__":
    args = parse_args()
    makedirs(os.path.expanduser("~/.mxnet/datasets"))
    if args.download_dir is not None:
        if os.path.isdir(_TARGET_DIR):
            os.remove(_TARGET_DIR)
        // make symlink
        os.symlink(args.download_dir, _TARGET_DIR)
    else:
        download_ade(_TARGET_DIR, overwrite=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dmlc/gluon-cv
Commit Name: db06f8e1ea800f8dd98665542e238f9e47597488
Time: 2018-04-17
Author: 8041160+zhanghang1989@users.noreply.github.com
File Name: scripts/datasets/ade20k.py
Class Name:
Method Name:


Project Name: PetrochukM/PyTorch-NLP
Commit Name: def0dfbfbc6f840484a10cc4e963cfa8686ded69
Time: 2018-04-01
Author: petrochukm@gmail.com
File Name: torchnlp/utils.py
Class Name:
Method Name: download_urls


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 94dcb52a87e10b29abe73615fabe50942ed08b3f
Time: 2017-08-22
Author: akshayubhat@gmail.com
File Name: dvalib/detector.py
Class Name:
Method Name: