This project applies Neural Style Transfer (NST) to blend the style of Vincent van Goghβs Starry Night with the content of a custom image using deep learning. The implementation is done in Google Colab using TensorFlow and a pre-trained VGG19 model.
Neural Style Transfer is a deep learning technique that combines two images:
- Content Image: The original image (e.g. a landscape or portrait).
- Style Image: The artwork whose painting style is transferred (here, Starry Night by Van Gogh).
By optimizing a loss function that measures content and style differences, a new image is generated that preserves the structure of the content image and mimics the style of the painting.
| Content Image | Style Image (Starry Night) | Stylized Output |
|---|---|---|
![]() |
![]() |
![]() |
(You can replace these images with actual output examples from your notebook.)
Open the Colab notebook and run it step-by-step:
π Click here to open in Google Colab
- Python
- Google Colab
- TensorFlow / Keras
- VGG19 Pre-trained CNN
- Matplotlib, NumPy
- Load and preprocess the content and style images.
- Use VGG19 to extract features representing content and style.
- Define a loss function combining content and style loss.
- Optimize the image using gradient descent to minimize this loss.
- Output the stylized image.
- Understand how convolutional layers extract visual features.
- Explore loss functions used for balancing content vs. style.
- Gain hands-on experience with TensorFlow and Colab.
Huseen Abo Ismael
4th-year Software Engineering Student


