13287043443135f6f3f8ed787d3978866c390d81,test.py,,,#,71
Before Change
input = data["input"]
if not args.cpu:
input = input.cuda()
output = model(input, args.scale).cpu() + data["bicubic"]
sr_img = tensor2im(output, mean, stddev)
toc = time.time()
if "target" in data:
After Change
data_chunks = DataChunks({"input":data["input"]},
args.max_dimension,
args.padding,args.scale)
for chunk in data_chunks.iter():
input = chunk["input"]
if not args.cpu:
input = input.cuda()
output = model.predict(input,{},args.scale)
data_chunks.gather(output)
output = data_chunks.concatenate() + data["bicubic"]
else:
input = data["input"]
if not args.cpu:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: fperazzi/proSR
Commit Name: 13287043443135f6f3f8ed787d3978866c390d81
Time: 2019-03-27
Author: fperazzi@adobe.com
File Name: test.py
Class Name:
Method Name:
Project Name: naoto0804/pytorch-AdaIN
Commit Name: 4a5eef64d2a0ab5e1737ffbb345d9e72d2f1adc9
Time: 2018-05-16
Author: inoue@hal.t.u-tokyo.ac.jp
File Name: train.py
Class Name:
Method Name:
Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: 6b672ac6a0c6bbc41f89d3e4bc528b937363e032
Time: 2019-06-02
Author: zdzheng12@gmail.com
File Name: test.py
Class Name:
Method Name: extract_feature