682f3e02a81db714d17e258ce0519787e8891295,samples/latent_space_interpolation.py,,main,#Any#,75

Before Change


        img = get_image(generator, latent, args.out_depth, 1)

        // save the image:
        plt.imsave(os.path.join(args.out_dir, str(global_frame_counter) + ".png"), img)

        // increment the counter:
        global_frame_counter += 1

After Change


        latent = th.unsqueeze(latent, dim=0)

        // generate the image for this point:
        img = get_image(generator, latent, args.out_depth, 1) * 255

        if not args.video_only:
            cv2.imwrite(os.path.join(
                args.out_dir, "{:05d}.png".format(global_frame_counter)), img)

        // Make an image of unsigned 8-bit integers for OpenCV
        if(args.video_name):
            img_int = img.astype(np.uint8)
            video_out.write(img_int)

        // Increment the counter
        global_frame_counter += 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: akanimax/pro_gan_pytorch
Commit Name: 682f3e02a81db714d17e258ce0519787e8891295
Time: 2020-01-27
Author: essexton@protonmail.com
File Name: samples/latent_space_interpolation.py
Class Name:
Method Name: main


Project Name: HyperGAN/HyperGAN
Commit Name: ab28fee3d799fee588692c3d5ef3f4c8f868e63b
Time: 2017-05-26
Author: emikulic@gmail.com
File Name: hypergan/samplers/common.py
Class Name:
Method Name: plot


Project Name: HyperGAN/HyperGAN
Commit Name: fb6cfa1cdcb7aecf89dcc9f13c5e88c82d7beb1d
Time: 2017-05-26
Author: emikulic@gmail.com
File Name: hypergan/samplers/common.py
Class Name:
Method Name: plot


Project Name: konstantint/PassportEye
Commit Name: 929c186c4dfa80a1ac975b5f2b95002ca12889d0
Time: 2020-11-28
Author: kt@ut.ee
File Name: passporteye/mrz/scripts.py
Class Name:
Method Name: mrz