NeuroStyle is a neural style transfer web application built with Streamlit and PyTorch. It allows users to blend the content of one image with the artistic style of another — creating beautiful, AI-generated art in just seconds!
Neural Style Transfer uses deep learning to apply the visual style of one image (typically artwork) to the content of another (such as a photograph), producing a new image that merges both.
- 📁 Upload your own content and style images
- 🖼 Use built-in sample images
- 🎛 Adjust style intensity with an interactive slider
- ⚡ Fast processing with pretrained VGG-19 model
- 💾 Download the final stylized image
- Clone the repository
git clone https://github.com/yourusername/neurostyle.git cd neurostyle - Create and activate a virtual environment
python -m venv venv source venv/bin/activate - Install dependencies
pip install -r requirements.txt
- Run the app
streamlit run Style.py
If no images are uploaded, the app defaults to: image.jpg – content image demo.jpg – style image These are loaded automatically when the "Use Sample Images" toggle is on.
Project Structure
├── Style.py # Main Streamlit app
├── image.jpg # Default content image
├── demo.jpg # Default style image
├── requirements.txt # Dependencies
├── README.md # Documentation
└── .gitignore # Git ignore rules