eab5e7909d647e363002b529e9d39911f4a2b028,train2.py,,,#,12
Before Change
transforms.RandomCrop(train_args["hr_size"]),
transforms.ToTensor()
])
train_lr_transform = transforms.Compose([
transforms.ToPILImage(),
transforms.Scale(train_args["hr_size"] // train_args["scale_factor"], interpolation=3),
transforms.ToTensor()
])
train_set = datasets.ImageFolder(train_args["train_set_path"], train_ori_transform)
train_loader = DataLoader(train_set, batch_size=64, shuffle=True, num_workers=12,
pin_memory=True)
After Change
}
train_set = DatasetFromFolder("data/train", upscale_factor=train_args["scale_factor"],
input_transform=transforms.ToTensor(),
target_transform=transforms.ToTensor())
train_loader = DataLoader(train_set, batch_size=64, shuffle=True, num_workers=12, pin_memory=True)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: leftthomas/SRGAN
Commit Name: eab5e7909d647e363002b529e9d39911f4a2b028
Time: 2017-12-01
Author: leftthomas@qq.com
File Name: train2.py
Class Name:
Method Name:
Project Name: hunkim/PyTorchZeroToAll
Commit Name: e6c8024fcceb9b47b82425a588988a63a365d544
Time: 2017-10-07
Author: hunkim@gmail.com
File Name: 09_softmax_mnist.py
Class Name:
Method Name:
Project Name: kenshohara/3D-ResNets-PyTorch
Commit Name: f27993c9ecae9cc8d714baa86cb595ed393c1a35
Time: 2018-11-30
Author: kensho.hara@aist.go.jp
File Name: main.py
Class Name:
Method Name: get_train_utils