d8ca380c2d56fdbb21ec2a2440a7ca74689596b7,test.py,,,#,77
Before Change
lr_img = tensor2im(data["input"], mean, stddev)
if args.eval:
hr_img = tensor2im(
data.get("target", data["raw_input"]), mean, stddev)
print_evaluation(
osp.basename(data["input_fn"][0]),
*eval_psnr_and_ssim(sr_img, hr_img, args.upscale_factor))
After Change
model = cls_model(**checkpoint["params"]["G"])
model.load_state_dict(checkpoint["state_dict"])
info("Phase: {}".format(config.phase.TEST))
info("Checkpoint: {}".format(osp.basename(args.checkpoint)))
model.eval()
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 2
Instances
Project Name: fperazzi/proSR
Commit Name: d8ca380c2d56fdbb21ec2a2440a7ca74689596b7
Time: 2018-07-26
Author: fperazzi@adobe.com
File Name: test.py
Class Name:
Method Name:
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: pytorch/ignite
Commit Name: 90a753c9d419597530ae36aebc10653e4ea15f1d
Time: 2021-02-11
Author: vfdev.5@gmail.com
File Name: examples/contrib/cifar10_qat/main.py
Class Name:
Method Name: log_basic_info
Project Name: mne-tools/mne-python
Commit Name: f5080a8f6a2c0c3ffc1d2d36bebf34c630a6a5c7
Time: 2020-09-14
Author: larson.eric.d@gmail.com
File Name: mne/io/proj.py
Class Name:
Method Name: _read_proj
Project Name: GoogleCloudPlatform/healthcare
Commit Name: 77c70bcb7c01ed1f320badba4e0001c88edb0bec
Time: 2019-07-19
Author: umairidris@google.com
File Name: deploy/create_project.py
Class Name:
Method Name: setup_project