File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 176
176
# availablity) and transform them into torch tensors, ready to feed
177
177
# a neural network:
178
178
#
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
+
184
185
185
186
# desired size of the output image
186
187
imsize = 512 if use_cuda else 128 # use small size if no gpu
@@ -595,5 +596,6 @@ def closure():
595
596
plt .figure ()
596
597
imshow (output , title = 'Output Image' )
597
598
599
+ # sphinx_gallery_thumbnail_number = 4
598
600
plt .ioff ()
599
601
plt .show ()
Original file line number Diff line number Diff line change @@ -105,13 +105,15 @@ Reinforcement Learning
105
105
Advanced Tutorials
106
106
------------------
107
107
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
+
108
111
.. galleryitem :: advanced/numpy_extensions_tutorial.py
109
112
110
113
.. customgalleryitem ::
111
114
:tooltip: Implement custom extensions in C.
112
115
:description: :doc: `/advanced/c_extension `
113
116
114
- .. galleryitem :: advanced/neural_style_tutorial.py
115
117
116
118
.. raw :: html
117
119
@@ -123,8 +125,8 @@ Advanced Tutorials
123
125
:includehidden:
124
126
:hidden:
125
127
:caption: Advanced Tutorials
126
-
128
+
129
+ advanced/neural_style_tutorial
127
130
advanced/numpy_extensions_tutorial
128
131
advanced/c_extension
129
- advanced/neural_style_tutorial
130
132
You can’t perform that action at this time.
0 commit comments