Table of Contents
Neural Style Transfer (NST) is a deep learning technique that merges the content of one image with the style of another. This project uses PyTorch to implement NST, allowing you to generate stylized images with pre-trained VGG-19 features. You can experiment with different styles, content images, and tuning parameters to get unique results.
To set up a local instance of the application, follow the steps below.
The following dependencies are required to be installed for the project to function properly:
- Python 3.8+
- PyTorch
- torchvision
- Pillow
Now that the environment has been set up and configured to properly compile and run the project, the next step is to install and configure the project locally on your system.
- Clone the repository
git clone https://github.com/cgs-iitkgp/NST-Project.git cd NST-Project - Install dependencies
pip install -r requirements.txt
Once installed, you can run the script from the command line to apply style transfer.
- Execute the script
python nst.py --content path/to/content.jpg --style path/to/style.jpg --output output.jpg
The currently active maintainer(s) of this project.
Honoring the original creator(s) and ideator(s) of this project.


