d5ca4b4b83a4d759ba81737e0bb12cdd591932d3,codes/test_seg.py,,,#,17

Before Change


    // prob
    torch.save(output, os.path.join(save_prob_path, base+"_bic.pth"))  // 1x8xHxW
    // byte img
    output = output.squeeze()
    _, argmax = torch.max(output, 0)
    argmax = argmax.squeeze().byte()
    cv2.imwrite(os.path.join(save_byteimg_path, base+".png"), argmax.numpy())
    // color img

After Change


])).float()
lookup_table /= 255

print("seg testing...")

idx = 0
for path in glob.glob(test_img_folder + "/*"):
    idx += 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: xinntao/BasicSR
Commit Name: d5ca4b4b83a4d759ba81737e0bb12cdd591932d3
Time: 2018-06-15
Author: wxt1994@126.com
File Name: codes/test_seg.py
Class Name:
Method Name:


Project Name: HyperGAN/HyperGAN
Commit Name: 4a2034819c3d1259859a99c71744483e76b02694
Time: 2017-06-03
Author: martyn@255bits.com
File Name: hypergan/discriminators/pyramid_discriminator.py
Class Name: PyramidDiscriminator
Method Name: combine_filter


Project Name: pyprob/pyprob
Commit Name: 992401f82501726c593ef635b2d124f45ee20707
Time: 2018-04-09
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/distributions.py
Class Name: Poisson
Method Name: log_prob