Skip to content

Commit 8cef592

Browse files
committed
formatting
1 parent 39b48b1 commit 8cef592

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

recitation-10/Pytorch GANs.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"metadata": {},
6969
"outputs": [],
7070
"source": [
71-
"mnist_gan.main(['--generator-frequency=5', '--save-directory=output/mnist_gan/frequency-5', '--epochs=100'])"
71+
"mnist_gan.main([])"
7272
]
7373
},
7474
{
@@ -118,7 +118,7 @@
118118
"metadata": {},
119119
"outputs": [],
120120
"source": [
121-
"mnist_wgangp.main()"
121+
"mnist_wgangp.main([])"
122122
]
123123
},
124124
{
@@ -143,7 +143,7 @@
143143
"metadata": {},
144144
"outputs": [],
145145
"source": [
146-
"cifar10_wgangp.main()"
146+
"cifar10_wgangp.main([])"
147147
]
148148
},
149149
{
@@ -168,7 +168,7 @@
168168
"metadata": {},
169169
"outputs": [],
170170
"source": [
171-
"mnist_cwgangp.main()"
171+
"mnist_cwgangp.main([])"
172172
]
173173
},
174174
{

recitation-10/mnist_cwgangp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def main(argv):
220220
parser = argparse.ArgumentParser(description='PyTorch GAN Example')
221221

222222
# Output directory
223-
parser.add_argument('--save-directory', type=str, default='output/mnist_cwgangp/v2', help='output directory')
223+
parser.add_argument('--save-directory', type=str, default='output/mnist_cwgangp/v1', help='output directory')
224224

225225
# Configuration
226226
parser.add_argument('--batch-size', type=int, default=128, metavar='N', help='batch size')

recitation-10/mnist_gan.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def train_generator(self):
221221
torch.randn(*latent.size(), out=latent)
222222
latent = Variable(latent)
223223
# Calculate yfake
224-
y = Variable(torch.rand(latent.size(0), out=latent.data.new())*10).long()
224+
y = Variable(torch.rand(latent.size(0), out=latent.data.new()) * 10).long()
225225
yfake = self.trainer.model.y_fake(latent, y)
226226
# Calculate loss
227227
loss = self.criterion(yfake)

recitation-10/mnist_wgangp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def main(argv):
103103
parser = argparse.ArgumentParser(description='PyTorch GAN Example')
104104

105105
# Output directory
106-
parser.add_argument('--save-directory', type=str, default='output/mnist_wgangp/v8', help='output directory')
106+
parser.add_argument('--save-directory', type=str, default='output/mnist_wgangp/v1', help='output directory')
107107

108108
# Configuration
109109
parser.add_argument('--batch-size', type=int, default=128, metavar='N', help='batch size')

0 commit comments

Comments
 (0)