6fc77d75bdb46feffa39ad2c389def87643bdcf3,test.py,,,#,49
Before Change
args = parse_args()
checkpoint = torch.load(args.checkpoint)
cls_model = getattr(prosr.models, checkpoint["class_name"])
model = cls_model(**checkpoint["params"]["G"])
model.load_state_dict(checkpoint["state_dict"])
After Change
fn = osp.join(args.output_dir, osp.basename(data["input_fn"][0]))
io.imsave(fn,sr_img)
if iid+1 == len(data_loader):
info("Saved image in: {}".format(fn),bold=True)
if len(args.target):
psnr_mean /= len(dataset)
ssim_mean /= len(dataset)
print_evaluation("average", psnr_mean, ssim_mean)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: fperazzi/proSR
Commit Name: 6fc77d75bdb46feffa39ad2c389def87643bdcf3
Time: 2018-08-08
Author: fperazzi@adobe.com
File Name: test.py
Class Name:
Method Name:
Project Name: facebookresearch/Horizon
Commit Name: 96e395a252997685b472e01bc9c1f0c7ef21d7ae
Time: 2019-03-13
Author: roh@fb.com
File Name: ml/rl/models/fully_connected_network.py
Class Name: FullyConnectedNetwork
Method Name: forward
Project Name: hyperspy/hyperspy
Commit Name: 889e5b729676b7dd8fdc7f75db3189ef85759add
Time: 2020-11-08
Author: eric.prestat@gmail.com
File Name: hyperspy/_components/expression.py
Class Name: Expression
Method Name: compile_function