Skip to content

Commit bf7ba99

Browse files
dataset will be loaded from google drive.
1 parent 4ed3f80 commit bf7ba99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GAN/WGAN/training.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def training(opt):
5050
[transforms.Resize((H, W)),
5151
transforms.ToTensor(), transforms.Normalize((0.5,), (0.5,))])
5252

53-
MNIST_data = MNIST('/datasets', True, transform=trans, download=True)
53+
MNIST_data = MNIST(str(opt.data_dir), True, transform=trans, download=True)
5454

5555
loader = DataLoader(MNIST_data, BATCH_SIZE, True,
5656
num_workers=1, pin_memory=True,)
@@ -218,5 +218,6 @@ def training(opt):
218218

219219
parser.add_argument('--resume', type=bool, default=True,
220220
help='should use the last saved weights')
221+
parser.add_argument('--data-dir', type=str, default='/datasets')
221222
opt = parser.parse_args()
222223
training(opt)

0 commit comments

Comments
 (0)