434c28ab6118b32e0166085b0b348121bc750298,chainercv/links/model/faster_rcnn/faster_rcnn_vgg.py,FasterRCNNVGG16,__init__,#FasterRCNNVGG16#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,90
Before Change
if pretrained_model in self._models:
data_root = get_dataset_directory("pfnet/chainercv/models")
url = self._models[pretrained_model]["url"]
fn = os.path.basename(url)
dest_fn = os.path.join(data_root, fn)
if not os.path.exists(dest_fn):
download_file = download.cached_download(url)
os.rename(download_file, dest_fn)
chainer.serializers.load_npz(dest_fn, self)
elif pretrained_model == "imagenet":
self._copy_imagenet_pretrained_vgg16()
elif pretrained_model:
chainer.serializers.load_npz(pretrained_model, self)
After Change
)
if pretrained_model in self._models:
path = download_model(self._models[pretrained_model]["url"])
chainer.serializers.load_npz(path, self)
elif pretrained_model == "imagenet":
self._copy_imagenet_pretrained_vgg16()
elif pretrained_model:
chainer.serializers.load_npz(pretrained_model, self)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: chainer/chainercv
Commit Name: 434c28ab6118b32e0166085b0b348121bc750298
Time: 2017-06-09
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/faster_rcnn/faster_rcnn_vgg.py
Class Name: FasterRCNNVGG16
Method Name: __init__
Project Name: tsurumeso/waifu2x-chainer
Commit Name: 4630c3c7d27df63d3ebc9e1a527476abbbf598df
Time: 2018-02-26
Author: tsurumeso@gmail.com
File Name: waifu2x.py
Class Name:
Method Name: load_models
Project Name: chainer/chainercv
Commit Name: 434c28ab6118b32e0166085b0b348121bc750298
Time: 2017-06-09
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/segnet/segnet_basic.py
Class Name: SegNetBasic
Method Name: __init__
Project Name: tsurumeso/waifu2x-chainer
Commit Name: 06b445853071e0c4003ab4d9e2255686f4b53bcc
Time: 2018-10-21
Author: tsurumeso@gmail.com
File Name: appendix/benchmark.py
Class Name:
Method Name: load_models