Skip to content

NeuroStyle is a Streamlit web app that applies neural style transfer using PyTorch. Upload content and style images—or use samples—to create stylized artwork with adjustable intensity, powered by a pretrained VGG-19 model.

Notifications You must be signed in to change notification settings

Ujjwal-Bajpayee/NeuroStyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠🎨 NeuroStyle

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!

🌈 What is Neural Style Transfer?

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.

🚀 Features

  • 📁 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

🛠️ Tech Stack

📦 Installation

  1. Clone the repository
    git clone https://github.com/yourusername/neurostyle.git
    cd neurostyle
    
  2. Create and activate a virtual environment
    python -m venv venv
    source venv/bin/activate        
     
  3. Install dependencies
    pip install -r requirements.txt
    
  4. 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

About

NeuroStyle is a Streamlit web app that applies neural style transfer using PyTorch. Upload content and style images—or use samples—to create stylized artwork with adjustable intensity, powered by a pretrained VGG-19 model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages