A Flask-based web application that applies artistic styles to images using Neural Style Transfer (NST) implemented with PyTorch.
- Upload a Content Image
- Upload a Style Image
- Generate artistic stylized images
- Deep Learning-based Neural Style Transfer
- Interactive Flask Web Interface
- Real-time image processing
- Python
- Flask
- PyTorch
- TorchVision
- HTML
- CSS
- Bootstrap
- Pillow
NST_Code/
│
├── app.py
├── train.py
├── requirements.txt
├── vgg_normalised.pth
│
├── Content_data/
├── Style_data/
├── experiment/
│
├── templates/
│ └── index.html
│
├── static/
│ ├── uploads/
│ ├── css/
│ └── images/
│
└── utils/
├── models.py
└── utils.py
git clone https://github.com/siddemmohankrishna/Neural-Style-Transfer-WebApp.git
cd Neural-Style-Transfer-WebApppython -m venv myenvWindows:
myenv\Scripts\activateLinux/Mac:
source myenv/bin/activatepip install -r requirements.txtpython train.py --batch_size 4 --epochs 10 --experiment trial2Training checkpoints will be saved inside:
experiment/trial2/
python app.pyOpen:
http://127.0.0.1:5000
in your browser.
- Upload a Content Image
- Upload a Style Image
- Click Generate
- Download the Stylized Output
- Encoder: Pre-trained VGG Network
- Adaptive Instance Normalization (AdaIN)
- Decoder Network
- Content Loss
- Style Loss
- Multiple style blending
- GPU acceleration
- User authentication
- Cloud deployment
- Batch image processing
Siddem Mohan Krishna
- GitHub: https://github.com/siddemmohankrishna
- LinkedIn: https://www.linkedin.com/in/siddem-mohan-krishna-247984378/
This project is developed for educational and research purposes.