2b38855e22530bab3e66dda77c4fc653c141c1d1,codes/models/modules/sft_arch.py,,,#,95

Before Change


    sft_net = sft_net.cuda()
    seg = torch.load("../../../data/samples_segprob/OST_013_bic.pth")
    seg = seg.cuda()
    shared_cond = cond_net(Variable(seg, volatile=True))

    img = cv2.imread("../../../data/samples/OST_013.png", cv2.IMREAD_UNCHANGED)
    img = img * 1.0 / 255
    img = torch.from_numpy(np.transpose(img[:, :, [2, 1, 0]], (2, 0, 1))).float()

After Change


    img_LR = img_LR.cuda()

    seg = torch.load("/mnt/SSD/xtwang/BasicSR_datasets/OST/test/bicseg/OST300/OST_013.pth")
    seg = seg.unsqueeze(0).cuda()

    output = sft_net((Variable(img_LR, volatile=True), Variable(seg))).data.float().cpu()
    output.squeeze_()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: xinntao/BasicSR
Commit Name: 2b38855e22530bab3e66dda77c4fc653c141c1d1
Time: 2018-06-11
Author: wxt1994@126.com
File Name: codes/models/modules/sft_arch.py
Class Name:
Method Name:


Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 0b0eabbfd972c9e3f6323bff9d39ac5fc3ba9cc7
Time: 2018-08-23
Author: yhhuang@nlg.csie.ntu.edu.tw
File Name: transformer/Translator.py
Class Name: Translator
Method Name: translate_batch


Project Name: r9y9/wavenet_vocoder
Commit Name: 827978583ed23cdbd98422e39fb3f50e961eb9d9
Time: 2018-01-10
Author: zryuichi@gmail.com
File Name: synthesis.py
Class Name:
Method Name: wavegen