File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
186187imsize = 512 if use_cuda else 128 # use small size if no gpu
@@ -595,5 +596,6 @@ def closure():
595596plt .figure ()
596597imshow (output , title = 'Output Image' )
597598
599+ # sphinx_gallery_thumbnail_number = 4
598600plt .ioff ()
599601plt .show ()
Original file line number Diff line number Diff line change @@ -105,13 +105,15 @@ Reinforcement Learning
105105Advanced 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
You can’t perform that action at this time.
0 commit comments