ce0e5b587e7993a377029272d0e27ca970772172,implementations/cyclegan/cyclegan.py,,sample_images,#,140

Before Change


    fake_B = G_AB(real_A)
    real_B = Variable(imgs["B"].type(Tensor))
    fake_A = G_BA(real_B)
    img_sample = torch.cat((real_A.data, fake_B.data, real_B.data, fake_A.data), 0)
    save_image(img_sample, "images/%s/%s.png" % (opt.dataset_name, batches_done), nrow=5, normalize=True)

After Change


    Saves a generated sample from the test set
    imgs = next(iter(val_dataloader))
    G_AB.eval()
    G_BA.eval()
    real_A = Variable(imgs["A"].type(Tensor))
    fake_B = G_AB(real_A)
    real_B = Variable(imgs["B"].type(Tensor))
    fake_A = G_BA(real_B)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: ce0e5b587e7993a377029272d0e27ca970772172
Time: 2019-03-31
Author: eriklindernoren@live.se
File Name: implementations/cyclegan/cyclegan.py
Class Name:
Method Name: sample_images


Project Name: astroML/astroML
Commit Name: 9997c504c74bc973564e76fb9f4f4e129ccfe542
Time: 2018-11-30
Author: bsipocz@gmail.com
File Name: astroML/density_estimation/tests/test_density.py
Class Name:
Method Name: test_1D_density


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: fc9e5824ad7bd3094f5012dc6fc3d2348481a2f4
Time: 2019-04-02
Author: eriklindernoren@live.se
File Name: implementations/bicyclegan/bicyclegan.py
Class Name:
Method Name: sample_images