A modern web application that uses AI to colorize black and white images. Built with Next.js, FastAPI, and Caffe.
- 🎨 AI-powered image colorization
- 🌓 Dark/Light mode support
- 📱 Responsive design
- 📂 Image history tracking
- ⚡ High-quality output options
- 💾 Auto-save functionality
- 📥 Easy download of colorized images
-
Frontend:
- Next.js 14
- TypeScript
- Tailwind CSS
- Radix UI
- Lucide Icons
-
Backend:
- FastAPI
- Caffe (for AI model)
- Python 3.8+
- Node.js 18+ and npm
- Python 3.8+
- Git
-
Clone the repository:
git clone https://github.com/snehapm04/Image-Coloriser.git cd Image-Coloriser -
Install frontend dependencies:
npm install
-
Install backend dependencies:
cd server pip install -r requirements.txt -
Download the AI model:
- Download the colorization model file (
colorization_release_v2.caffemodel) from here - Place it in the
serverdirectory
- Download the colorization model file (
-
Start the backend server:
cd server uvicorn main:app --reload -
Start the frontend development server:
# In a new terminal npm run dev -
Open http://localhost:3000 in your browser
-
Upload an Image:
- Click the upload area or drag and drop a black and white image
- Supported formats: JPG, PNG
- Maximum file size: 10MB
-
Colorize:
- Click the "Colorize Image" button
- Wait for the AI to process your image
- View the colorized result
-
Download:
- Click the "Download" button to save your colorized image
-
Settings:
- Toggle high-quality output
- Enable/disable auto-save
- Switch between dark and light modes
Image-Coloriser/
├── app/ # Next.js application
├── components/ # React components
├── lib/ # Utility functions
├── public/ # Static assets
├── server/ # FastAPI backend
│ ├── main.py # Server code
│ └── models/ # AI model files
└── styles/ # Global styles
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
