4fe443104940890fabe2ff7b4876584093464337,implementations/dualgan/dualgan.py,,,#,126

Before Change


            n_samples = 10
            // Concatenate samples by column
            real_A = torch.cat(imgs_A.data[:n_samples], -1)
            real_B = torch.cat(imgs_B.data[:n_samples], -1)
            fake_A = torch.cat(fake_A.data[:n_samples], -1)
            fake_B = torch.cat(fake_B.data[:n_samples], -1)
            recov_A = torch.cat(recov_A.data[:n_samples], -1)
            recov_B = torch.cat(recov_B.data[:n_samples], -1)

After Change


        BAB = torch.cat((imgs_B.data, fake_A.data, recov_B.data), -2)
        sample = torch.cat((ABA, BAB), -2)
        image_samples.append(sample)
        if len(image_samples) > 5:
            image_samples.pop(0)

        // Check sample interval => save sample if there
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: 4fe443104940890fabe2ff7b4876584093464337
Time: 2018-04-24
Author: eriklindernoren@gmail.com
File Name: implementations/dualgan/dualgan.py
Class Name:
Method Name:


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: a4697d7e45e66a3264eb56dcf489d67d4df40d23
Time: 2018-04-23
Author: eriklindernoren@gmail.com
File Name: implementations/discogan/utils.py
Class Name: Logger
Method Name: log


Project Name: rusty1s/pytorch_geometric
Commit Name: 66cc1f180558685930f93c612ce7ee1616cda73c
Time: 2017-11-20
Author: matthias.fey@tu-dortmund.de
File Name: examples/mnist_grid.py
Class Name:
Method Name: test


Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: e9d5373461b0a037716722a461cb12416aa5d1bc
Time: 2018-01-01
Author: zzheng@joo-ml1-dev.j.cinglevue.com
File Name: evaluate.py
Class Name:
Method Name: