d945539970ffa22655c5f77ecec3e002cdfd623a,test.py,,,#,24

Before Change



for content_path in content_paths:
    for style_path in style_paths:
        content = content_transform(Image.open(content_path)).unsqueeze(0)
        style = style_transform(Image.open(style_path)).unsqueeze(0)
        if args.gpu:
            style = style.cuda()
            content = content.cuda()

After Change


    for style_path in style_paths:
        content = content_transform(Image.open(content_path))
        style = style_transform(Image.open(style_path))
        if args.preserve_color:
            style = coral(style, content)
        if args.gpu:
            style = style.cuda()
            content = content.cuda()
        content = Variable(content.unsqueeze(0), volatile=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: naoto0804/pytorch-AdaIN
Commit Name: d945539970ffa22655c5f77ecec3e002cdfd623a
Time: 2017-11-30
Author: inoue@hal.t.u-tokyo.ac.jp
File Name: test.py
Class Name:
Method Name:


Project Name: mozilla/TTS
Commit Name: c80225544e2fb43abbccd94148cc2045d95f8f63
Time: 2020-11-06
Author: erogol@hotmail.com
File Name: TTS/vocoder/models/wavegrad.py
Class Name: Wavegrad
Method Name: inference


Project Name: Zhaoyi-Yan/Shift-Net_pytorch
Commit Name: b078a27def328cfc16dc7ab17f2537b8593544f1
Time: 2019-04-27
Author: yanzhaoyi@outlook.com
File Name: models/shift_net/shiftnet_model.py
Class Name: ShiftNetModel
Method Name: set_input


Project Name: pcyin/tranX
Commit Name: 65c51a90b9034c934e4f91d6fe35d6a28c3b2f7e
Time: 2018-10-28
Author: pcyin@cs.cmu.edu
File Name: model/seq2seq.py
Class Name: Seq2SeqModel
Method Name: score_decoding_results