c24a418b1e40dab347dcdcacb4f0755f905e9f79,codes/models/SR_model.py,SRModel,test,#SRModel#,75
Before Change
def test(self):
self.netG.eval()
for k, v in self.netG.named_parameters():
v.requires_grad = False
self.fake_H = self.netG(self.var_L)
for k, v in self.netG.named_parameters():
v.requires_grad = True
self.netG.train()
def test_x8(self):
// from https://github.com/thstkdgus35/EDSR-PyTorch
After Change
def test(self):
self.netG.eval()
with torch.no_grad():
self.fake_H = self.netG(self.var_L)
self.netG.train()
def test_x8(self):
// from https://github.com/thstkdgus35/EDSR-PyTorch
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 14
Instances
Project Name: xinntao/BasicSR
Commit Name: c24a418b1e40dab347dcdcacb4f0755f905e9f79
Time: 2018-10-06
Author: wxt1994@126.com
File Name: codes/models/SR_model.py
Class Name: SRModel
Method Name: test
Project Name: xinntao/BasicSR
Commit Name: 4d039f737c752188e16539a80ca77f7dc238b659
Time: 2019-06-09
Author: wxt1994@126.com
File Name: codes/models/SR_model.py
Class Name: SRModel
Method Name: test_x8
Project Name: xinntao/BasicSR
Commit Name: c24a418b1e40dab347dcdcacb4f0755f905e9f79
Time: 2018-10-06
Author: wxt1994@126.com
File Name: codes/models/SFTGAN_ACD_model.py
Class Name: SFTGAN_ACD_Model
Method Name: test
Project Name: xinntao/BasicSR
Commit Name: c24a418b1e40dab347dcdcacb4f0755f905e9f79
Time: 2018-10-06
Author: wxt1994@126.com
File Name: codes/models/SRGAN_model.py
Class Name: SRGANModel
Method Name: test
Project Name: xinntao/BasicSR
Commit Name: c24a418b1e40dab347dcdcacb4f0755f905e9f79
Time: 2018-10-06
Author: wxt1994@126.com
File Name: codes/models/SRRaGAN_model.py
Class Name: SRRaGANModel
Method Name: test
Project Name: xinntao/BasicSR
Commit Name: c24a418b1e40dab347dcdcacb4f0755f905e9f79
Time: 2018-10-06
Author: wxt1994@126.com
File Name: codes/models/SR_model.py
Class Name: SRModel
Method Name: test