Skip to content

Commit

Permalink
revise im aug
Browse files Browse the repository at this point in the history
  • Loading branch information
astonzhang committed Jul 20, 2018
1 parent 67564fb commit cd5a46b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chapter_computer-vision/image-augmentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ from time import time
我们先读取一张$400\times 500$的图片作为样例。

```{.python .input n=2}
%config InlineBackend.figure_format = 'retina'
gb.set_figsize()
img = image.imread('../img/cat1.jpg')
gb.plt.imshow(img.asnumpy())
```
Expand Down
3 changes: 2 additions & 1 deletion chapter_deep-learning-basics/mlp.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ $$\text{relu}(x) = \max(x, 0).$$
可以看出,ReLU函数只保留正数元素,并将负数元素清零。为了直观地观察这一非线性变换,我们先定义一个绘图函数`xyplot`

```{.python .input}
%matplotlib inline # 将图打印在 Jupyter notebook 的文本之间。
# 将图打印在 Jupyter notebook 的文本之间。
%matplotlib inline
import sys
sys.path.append('..')
import gluonbook as gb
Expand Down

0 comments on commit cd5a46b

Please sign in to comment.