90172e414c9bc8c03a537065f3c8d8133c9dae26,train2.py,,,#,17
Before Change
set5 = datasets.ImageFolder(train_args["set5_path"], val_ori_transform)
set14 = datasets.ImageFolder(train_args["set14_path"], val_ori_transform)
bsd100_loader = DataLoader(bsd100, batch_size=1, num_workers=12, pin_memory=True)
set5_loader = DataLoader(set5, batch_size=1, num_workers=12, pin_memory=True)
set14_loader = DataLoader(set14, batch_size=1, num_workers=12, pin_memory=True)
val_loader = {"bsd100": bsd100_loader, "set5": set5_loader, "set14": set14_loader}
After Change
from loss import GeneratorLoss
from model import Generator, Discriminator
train_args = {
"train_batch_size": 64,
"scale_factor": 4, // should be power of 2
"ckpt_path": "epochs",
}
val_lr_transform = LRTransformTest(train_args["scale_factor"])
val_display_transform = transforms.Compose([
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: leftthomas/SRGAN
Commit Name: 90172e414c9bc8c03a537065f3c8d8133c9dae26
Time: 2017-12-05
Author: leftthomas@qq.com
File Name: train2.py
Class Name:
Method Name:
Project Name: ecs-vlc/torchbearer
Commit Name: 0de148f6892361e61d4b68cf97814e73692f6b1a
Time: 2019-03-14
Author: mp2u16@ecs.soton.ac.uk
File Name: docs/_static/examples/gan.py
Class Name:
Method Name:
Project Name: Scitator/catalyst
Commit Name: 2dd8e2e5cbfbd682759f553256241fcefc7e5ca0
Time: 2019-03-20
Author: scitator@gmail.com
File Name: catalyst/dl/experiments/experiment.py
Class Name: ConfigExperiment
Method Name: get_loaders