CSC 480 - Cal Poly Instructor: Rodrigo Canaan
Team Members:
Juan Zavala, Nathan Lee, Sarthak Kamerkar, Victor Phan
This project is a web application that applies semantic style transfer to images, built with a React frontend and a Flask backend powered by TensorFlow.
- Upload content and style images
- Perform neural style transfer
- Real-time progress tracking
- Display the resulting stylized image
Before you begin, ensure you have met the following requirements:
- Node.js and npm installed
- Python 3.7+ installed
- pip (Python package manager) installed
- Navigate to the project directory
- Install the required npm packages:
npm install
- Navigate to the backend directory
- Install the required Python packages: pip install flask flask-cors pillow tensorflow numpy
In the project directory, run:
npm install react-app
npm start
This runs the app in development mode. Open http://localhost:3000 to view it in your browser.
In a separate terminal, navigate to the backend directory and run:
python server.py
This starts the Flask server on http://localhost:5000.
- Open the web application in your browser
- Upload a content image and a style image
- Click the "Generate New Image" button
- Wait for the style transfer process to complete
- View the resulting stylized image
In the project directory, you can run:
Runs the app in the development mode.
Launches the test runner in the interactive watch mode.
Builds the app for production to the build folder.
Note: this is a one-way operation. Once you eject, you can't go back!
If you aren't satisfied with the build tool and configuration choices, you can eject at any time.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
If you encounter any issues, please check the following:
- Ensure both frontend and backend servers are running
- Check the console for any error messages
- Verify that all required packages are installed
- Ensure your firewall is not blocking the application
If problems persist, please open an issue in the project repository.
8-Hour/Overnight Image Processing

256x256 Pixel Image Processing Test (>30mins)
![]()
256x256 Pixel Video Game Image Processing Test (>30mins)

Terminal Log for Content Image Loss and Style Image Loss Progress Overtime

Graphical Representation of Content Image Pixel Loss vs Style Image Pixel Loss for Output Image
