4a5eef64d2a0ab5e1737ffbb345d9e72d2f1adc9,test.py,,,#,48
Before Change
style = coral(style, content)
style = style.cuda()
content = content.cuda()
content = Variable(content.unsqueeze(0), volatile=True)
style = Variable(style.unsqueeze(0), volatile=True)
output = style_transfer(vgg, decoder, content, style,
After Change
style = style_tf(Image.open(style_path))
if args.preserve_color:
style = coral(style, content)
style = style.to(device).unsqueeze(0)
content = content.to(device).unsqueeze(0)
with torch.no_grad():
output = style_transfer(vgg, decoder, content, style,
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: naoto0804/pytorch-AdaIN
Commit Name: 4a5eef64d2a0ab5e1737ffbb345d9e72d2f1adc9
Time: 2018-05-16
Author: inoue@hal.t.u-tokyo.ac.jp
File Name: test.py
Class Name:
Method Name:
Project Name: OpenNMT/OpenNMT-py
Commit Name: 6c9b50d858c236493870d812a82a04b2fd2161a1
Time: 2018-11-12
Author: benzurdopeters@gmail.com
File Name: onmt/modules/sparse_activations.py
Class Name: SparsemaxFunction
Method Name: backward
Project Name: pytorch/tutorials
Commit Name: 0ad33d606682537466f3430fc6d6ac7d47460f1a
Time: 2018-04-24
Author: soumith@gmail.com
File Name: advanced_source/neural_style_tutorial.py
Class Name:
Method Name: image_loader
Project Name: facebookresearch/Horizon
Commit Name: e3fcbb639e115e8afe9600bd06aee81acfda6704
Time: 2020-10-13
Author: czxttkl@fb.com
File Name: reagent/training/world_model/seq2reward_trainer.py
Class Name: Seq2RewardTrainer
Method Name: get_loss
Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 0b0eabbfd972c9e3f6323bff9d39ac5fc3ba9cc7
Time: 2018-08-23
Author: yhhuang@nlg.csie.ntu.edu.tw
File Name: transformer/Translator.py
Class Name: Translator
Method Name: translate_batch