Skip to content

Commit

Permalink
Update neural_style_transfer.py (keras-team#1285)
Browse files Browse the repository at this point in the history
* Update neural_style_transfer.py

* Update neural_style_transfer.md

* Update neural_style_transfer.ipynb
  • Loading branch information
hanjihun2000 authored Mar 19, 2023
1 parent fb3ff0b commit 8c10d7e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions examples/generative/ipynb/neural_style_transfer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"**Author:** [fchollet](https://twitter.com/fchollet)<br>\n",
"**Date created:** 2016/01/11<br>\n",
"**Last modified:** 2020/05/02<br>\n",
"**Description:** Transfering the style of a reference image to target image using gradient descent."
"**Description:** Transferring the style of a reference image to target image using gradient descent."
]
},
{
Expand Down Expand Up @@ -451,4 +451,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
8 changes: 4 additions & 4 deletions examples/generative/md/neural_style_transfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Author:** [fchollet](https://twitter.com/fchollet)<br>
**Date created:** 2016/01/11<br>
**Last modified:** 2020/05/02<br>
**Description:** Transfering the style of a reference image to target image using gradient descent.
**Description:** Transferring the style of a reference image to target image using gradient descent.


<img class="k-inline-icon" src="https://colab.research.google.com/img/colab_favicon.ico"/> [**View in Colab**](https://colab.research.google.com/github/keras-team/keras-io/blob/master/examples/generative/ipynb/neural_style_transfer.ipynb) <span class="k-dot">•</span><img class="k-inline-icon" src="https://github.com/favicon.ico"/> [**GitHub source**](https://github.com/keras-team/keras-io/blob/master/examples/generative/neural_style_transfer.py)
Expand Down Expand Up @@ -371,6 +371,6 @@ display(Image(result_prefix + "_at_iteration_4000.png"))


**Example available on HuggingFace**
| Trained Model | Demo |
| :--: | :--: |
| [![Generic badge](https://img.shields.io/badge/%F0%9F%A4%97%20Model-Neural%20style%20transfer-black.svg)](https://huggingface.co/keras-io/VGG19) | [![Generic badge](https://img.shields.io/badge/%F0%9F%A4%97%20Spaces-Neural%20style%20transfer-black.svg)](https://huggingface.co/spaces/keras-io/neural-style-transfer) |
Trained Model | Demo
--- | ---
[![Generic badge](https://img.shields.io/badge/%F0%9F%A4%97%20Model-Neural%20style%20transfer-black.svg)](https://huggingface.co/keras-io/VGG19) | [![Generic badge](https://img.shields.io/badge/%F0%9F%A4%97%20Spaces-Neural%20style%20transfer-black.svg)](https://huggingface.co/spaces/keras-io/neural-style-transfer)
8 changes: 4 additions & 4 deletions examples/generative/neural_style_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Author: [fchollet](https://twitter.com/fchollet)
Date created: 2016/01/11
Last modified: 2020/05/02
Description: Transfering the style of a reference image to target image using gradient descent.
Description: Transferring the style of a reference image to target image using gradient descent.
Accelerator: GPU
"""

Expand Down Expand Up @@ -273,7 +273,7 @@ def compute_loss_and_grads(combination_image, base_image, style_reference_image)

"""
**Example available on HuggingFace**
| Trained Model | Demo |
| :--: | :--: |
| [![Generic badge](https://img.shields.io/badge/%F0%9F%A4%97%20Model-Neural%20style%20transfer-black.svg)](https://huggingface.co/keras-io/VGG19) | [![Generic badge](https://img.shields.io/badge/%F0%9F%A4%97%20Spaces-Neural%20style%20transfer-black.svg)](https://huggingface.co/spaces/keras-io/neural-style-transfer) |
Trained Model | Demo
--- | ---
[![Generic badge](https://img.shields.io/badge/%F0%9F%A4%97%20Model-Neural%20style%20transfer-black.svg)](https://huggingface.co/keras-io/VGG19) | [![Generic badge](https://img.shields.io/badge/%F0%9F%A4%97%20Spaces-Neural%20style%20transfer-black.svg)](https://huggingface.co/spaces/keras-io/neural-style-transfer)
"""

0 comments on commit 8c10d7e

Please sign in to comment.