Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e621f5

Browse files
author
xyliao
committed
finish gan
1 parent 73937d6 commit 9e621f5

File tree

5 files changed

+1438
-309
lines changed

5 files changed

+1438
-309
lines changed

‎README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Learn Deep Learning with PyTorch
6060
- Chapter 6: 生成对抗网络
6161
- [自动编码器](https://github.com/SherlockLiao/code-of-learn-deep-learning-with-pytorch/blob/master/chapter6_GAN/autoencoder.ipynb)
6262
- [变分自动编码器](https://github.com/SherlockLiao/code-of-learn-deep-learning-with-pytorch/blob/master/chapter6_GAN/vae.ipynb)
63-
- 生成对抗网络
64-
- 深度卷积对抗网络(DCGANs)生成人脸
63+
- [生成对抗网络](https://github.com/SherlockLiao/code-of-learn-deep-learning-with-pytorch/blob/master/chapter6_GAN/gan.ipynb)
64+
- 深度卷积对抗网络(DCGANs)生成人脸
6565

6666
- Chapter 7: 深度增强学习
6767
- 深度增强学习的介绍
@@ -91,7 +91,7 @@ Learn Deep Learning with PyTorch
9191
- char rnn 实现文本生成
9292
- Image Caption: 实现图片字幕生成
9393
- seq2seq 实现机器翻译
94-
- cnn+rnn+attention 实现文本识别
94+
- cnn + rnn + attention 实现文本识别
9595

9696
## 一些别的资源
9797

‎chapter6_GAN/gan.ipynb

Lines changed: 1431 additions & 0 deletions
Large diffs are not rendered by default.

‎chapter6_GAN/gan/conv_gan.py

Lines changed: 0 additions & 161 deletions
This file was deleted.

‎chapter6_GAN/gan/simple_Gan.py

Lines changed: 0 additions & 141 deletions
This file was deleted.

‎chapter6_GAN/vae.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@
181181
"ExecuteTime": {
182182
"end_time": "2018年01月01日T10:41:10.409900Z",
183183
"start_time": "2018年01月01日T10:41:10.059597Z"
184-
}
184+
},
185+
"collapsed": true
185186
},
186187
"outputs": [],
187188
"source": [
@@ -301,10 +302,9 @@
301302
" im = Variable(im)\n",
302303
" if torch.cuda.is_available():\n",
303304
" im = im.cuda()\n",
304-
" \n",
305-
" optimizer.zero_grad()\n",
306305
" recon_im, mu, logvar = net(im)\n",
307306
" loss = loss_function(recon_im, im, mu, logvar) / im.shape[0] # 将 loss 平均\n",
307+
" optimizer.zero_grad()\n",
308308
" loss.backward()\n",
309309
" optimizer.step()\n",
310310
"\n",
@@ -401,7 +401,7 @@
401401
"name": "python",
402402
"nbconvert_exporter": "python",
403403
"pygments_lexer": "ipython3",
404-
"version": "3.6.2"
404+
"version": "3.6.3"
405405
}
406406
},
407407
"nbformat": 4,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /