Skip to content

Commit 63d9606

Browse files
committed
Few cosmetic fixes
1 parent 9c4b2c1 commit 63d9606

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

advanced_source/neural_style_tutorial.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,12 @@
176176
# availablity) and transform them into torch tensors, ready to feed
177177
# a neural network:
178178
#
179-
# Here are links to download the images required to run the notebook:
180-
# `picasso.jpg </_static/img/neural-style/picasso.jpg>`__ and
181-
# `dancing.jpg </_static/img/neural-style/dancing.jpg>`__. Download these two
182-
# images and add them to a directory with name ``images``
183-
#
179+
# .. Note::
180+
# Here are links to download the images required to run the tutorial:
181+
# `picasso.jpg </_static/img/neural-style/picasso.jpg>`__ and
182+
# `dancing.jpg </_static/img/neural-style/dancing.jpg>`__. Download these
183+
# two images and add them to a directory with name ``images``
184+
184185

185186
# desired size of the output image
186187
imsize = 512 if use_cuda else 128 # use small size if no gpu
@@ -595,5 +596,6 @@ def closure():
595596
plt.figure()
596597
imshow(output, title='Output Image')
597598

599+
# sphinx_gallery_thumbnail_number = 4
598600
plt.ioff()
599601
plt.show()

index.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ Reinforcement Learning
105105
Advanced Tutorials
106106
------------------
107107

108+
.. galleryitem:: advanced/neural_style_tutorial.py
109+
:intro: This tutorial explains how to impletment the Neural-Style algorithm developed by Leon A. Gatys, Alexander S. Ecker and Matthias Bethge.
110+
108111
.. galleryitem:: advanced/numpy_extensions_tutorial.py
109112

110113
.. customgalleryitem::
111114
:tooltip: Implement custom extensions in C.
112115
:description: :doc:`/advanced/c_extension`
113116

114-
.. galleryitem:: advanced/neural_style_tutorial.py
115117

116118
.. raw:: html
117119

@@ -123,8 +125,8 @@ Advanced Tutorials
123125
:includehidden:
124126
:hidden:
125127
:caption: Advanced Tutorials
126-
128+
129+
advanced/neural_style_tutorial
127130
advanced/numpy_extensions_tutorial
128131
advanced/c_extension
129-
advanced/neural_style_tutorial
130132

0 commit comments

Comments
 (0)