Skip to content

Commit 73eaf2e

Browse files
updated the storage location and channels error
1 parent eacec18 commit 73eaf2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GAN/WGAN/training.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def training(opt):
1818
# ~~~~~~~~~~~~~~~~~~~ hyper parameters ~~~~~~~~~~~~~~~~~~~ #
1919

2020
EPOCHS = opt.epochs
21-
CHANNELS = 2
21+
CHANNELS = 1
2222
H, W = 64, 64
2323
work_device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
2424
FEATURE_D = 128
@@ -49,7 +49,7 @@ def training(opt):
4949
[transforms.Resize((H, W)),
5050
transforms.ToTensor(), transforms.Normalize((0.5,), (0.5,))])
5151

52-
MNIST_data = MNIST('./data', True, transform=trans, download=True)
52+
MNIST_data = MNIST('/datasets', True, transform=trans, download=True)
5353

5454
loader = DataLoader(MNIST_data, BATCH_SIZE, True, num_workers=1)
5555

0 commit comments

Comments
 (0)