b0e42547fb9d10146e0aea48ac6c48504c19529d,test_single.py,,,#,10
Before Change
IMAGE_NAME = opt.image_name
MODEL_NAME = opt.model_name
model = Generator(UPSCALE_FACTOR)
if torch.cuda.is_available():
model = model.cuda()
model.load_state_dict(torch.load("epochs/" + MODEL_NAME))
After Change
IMAGE_NAME = opt.image_name
MODEL_NAME = opt.model_name
model = Generator(UPSCALE_FACTOR).eval()
if torch.cuda.is_available():
model = model.cuda()
model.load_state_dict(torch.load("epochs/" + MODEL_NAME))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: leftthomas/SRGAN
Commit Name: b0e42547fb9d10146e0aea48ac6c48504c19529d
Time: 2017-12-03
Author: leftthomas@qq.com
File Name: test_single.py
Class Name:
Method Name:
Project Name: leftthomas/SRGAN
Commit Name: eae64f18644eef641a84571a2e57118299842ac8
Time: 2017-12-04
Author: leftthomas@qq.com
File Name: test_single.py
Class Name:
Method Name:
Project Name: leftthomas/SRGAN
Commit Name: 75f3b745990aacd4f6fb8c27c7acc2d2ac8185b2
Time: 2017-12-03
Author: leftthomas@qq.com
File Name: test_single.py
Class Name:
Method Name: