Desktop application for generating custom vehicle liveries for ER:LC using AI image generation.
- AI-Powered Generation: Uses Replicate API with Stable Diffusion inpainting
- Preview First: Generate a preview (Left view) before committing to all 5 views
- Multi-View Support: Generates all 5 vehicle views (Front, Rear, Left, Right, Top)
- Multi-Vehicle: Apply the same livery design to multiple vehicles
- Cross-Platform: Available for Windows (.exe) and Linux (AppImage)
pip install -r requirements.txt- Sign up at Replicate
- Get your API key from your account settings
- Add it to
config.jsonor enter it in the app
Place vehicle template folders in the templates/ directory. Each vehicle folder should contain 5 PNG files:
*_Front.png*_Rear.png*_Left.png*_Right.png*_Top.png
cd src
python main.py- Install PyInstaller:
pip install pyinstaller - Run:
pyinstaller build_windows.spec - Executable will be in
dist/ERLC_Livery_Maker.exe
- Run the build script:
./build_appimage.sh - AppImage will be created:
ERLC_Livery_Maker-x86_64.AppImage
- Set API Key: Enter your Replicate API key in the settings
- Select Vehicle: Choose a vehicle from the dropdown
- Enter Prompt: Describe your livery design (e.g., "police car with blue and white stripes")
- Generate Preview: Click "Generate Preview" to see the Left view
- Review: Check if the preview matches your expectations
- Generate All: Click "Generate All Views" to create all 5 views
- Save: Click "Save Livery" to export all views
- Multi-Vehicle (Optional): Select other vehicles to apply the same design
Replicate API pricing (approximate):
- Stable Diffusion Inpainting: ~$0.003-0.01 per image
- Full livery (5 views): ~$0.015-0.05
- Preview only: ~$0.003-0.01
ERLC Livery Maker/
├── src/
│ ├── main.py # Application entry point
│ ├── livery_generator_window.py # Main GUI window
│ ├── template_manager.py # Template scanning and management
│ ├── image_processor.py # Mask generation and compositing
│ └── api_client.py # Replicate API integration
├── templates/ # Vehicle template folders
├── output/ # Generated liveries
├── config.json # Configuration file
├── requirements.txt # Python dependencies
├── build_windows.spec # PyInstaller spec for Windows
└── build_appimage.sh # Build script for Linux AppImage
- Make sure template folders are in
templates/directory - Each folder must have all 5 views with correct naming
- Check your Replicate API key is correct
- Ensure you have internet connection
- Check Replicate API status
- Template must have white vehicle body
- Adjust tolerance in
image_processor.pyif needed
MIT License - Feel free to modify and distribute