334eb980803b654441f21675a2441dce94b66f96,pytorch/pytorchcv/models/resnet.py,,get_resnet,#Any#Any#Any#Any#Any#Any#Any#,375
Before Change
raise ValueError("Parameter `model_name` should be properly initialized for loading pretrained model.")
import torch
from .model_store import get_model_file
net.load_state_dict(torch.load(get_model_file(
model_name=model_name,
local_model_store_dir_path=root)))
return net
After Change
if (model_name is None) or (not model_name):
raise ValueError("Parameter `model_name` should be properly initialized for loading pretrained model.")
from .model_store import download_model
download_model(
net=net,
model_name=model_name,
local_model_store_dir_path=root)
return net
In pattern: SUPERPATTERN
Frequency: 16
Non-data size: 5
Instances
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/resnet.py
Class Name:
Method Name: get_resnet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/densenet.py
Class Name:
Method Name: get_densenet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/shufflenetv2.py
Class Name:
Method Name: get_shufflenetv2
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/mobilenetv2.py
Class Name:
Method Name: get_mobilenetv2
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/senet.py
Class Name:
Method Name: get_senet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/squeezenext.py
Class Name:
Method Name: get_squeezenext
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/menet.py
Class Name:
Method Name: get_menet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/condensenet.py
Class Name:
Method Name: get_condensenet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/preresnet.py
Class Name:
Method Name: get_preresnet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/dpn.py
Class Name:
Method Name: get_dpn
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/darknet.py
Class Name:
Method Name: get_darknet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/resnext.py
Class Name:
Method Name: get_resnext
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/squeezenet.py
Class Name:
Method Name: get_squeezenet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/nasnet.py
Class Name:
Method Name: get_nasnet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/shufflenet.py
Class Name:
Method Name: get_shufflenet
Project Name: osmr/imgclsmob
Commit Name: 334eb980803b654441f21675a2441dce94b66f96
Time: 2018-09-25
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/mobilenet.py
Class Name:
Method Name: get_mobilenet