Skip to content

Commit 280662e

Browse files
Charles Durhamsoumith
Charles Durham
authored andcommitted
Fixed math typo and grammar errors (pytorch#124)
1 parent adcb718 commit 280662e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

advanced_source/neural_style_tutorial.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
The principle is simple: we define two distances, one for the content
2929
(:math:`D_C`) and one for the style (:math:`D_S`). :math:`D_C` measures
30-
how different is the content between two images, while :math:`D_S`
31-
measures how different is the style between two images. Then, we take a
30+
how different the content is between two images, while :math:`D_S`
31+
measures how different the style is between two images. Then, we take a
3232
third image, the input, (e.g. a with noise), and we transform it in
3333
order to both minimize its content-distance with the content-image and
3434
its style-distance with the style-image.
@@ -74,7 +74,7 @@
7474
7575
.. math::
7676
77-
D_S^L(X,Y) = \|G_{XL} - G_{YL}\|^2 = \sum_{k,l} (F_{XL}(k,l) - F_{YL}(k,l))^2
77+
D_S^L(X,Y) = \|G_{XL} - G_{YL}\|^2 = \sum_{k,l} (G_{XL}(k,l) - G_{YL}(k,l))^2
7878
7979
In order to minimize in one shot :math:`D_C(X,C)` between a variable
8080
image :math:`X` and target content-image :math:`C` and :math:`D_S(X,S)`

0 commit comments

Comments
 (0)