Get LoraMint up and running in just a few steps!
The Blazor application will automatically set up and start the Python backend for you.
Linux/macOS:
./start.shWindows:
start.batThat's it! The application will:
- 🧹 Stop any existing LoraMint instances (automatic cleanup)
- ✅ Check for .NET SDK and Python
- 📦 Create Python virtual environment (if needed)
- 📥 Install all dependencies (if needed)
- 🚀 Start both the Blazor web app and Python backend
- 🌐 Open the app at
https://localhost:5001
Note: The startup process now includes detailed progress indicators:
[STEP 1/3]Virtual environment creation[STEP 2/3]Dependency installation (highlights PyTorch, diffusers, transformers)[STEP 3/3]Backend startup- Clear
[SUCCESS]and[FAILED]status messages
If you prefer to set up the Python environment manually first:
Linux/macOS:
./setup-python.sh
./start.shWindows:
setup-python.bat
start.batThe first time you run LoraMint, it will:
-
Create Virtual Environment (~30 seconds)
- Creates an isolated Python environment
-
Install Dependencies (~2-5 minutes)
- Installs PyTorch, diffusers, FastAPI, etc.
-
Setup Wizard (first launch)
- Detects your GPU and available VRAM
- Shows model comparison table with compatibility indicators
- Lets you choose a model (SDXL Base, SDXL Turbo, or Z-Image Turbo)
- Downloads the selected model (~7-12GB depending on model)
Total first-run time: ~3-5 minutes + model download time
Once started, open your browser to https://localhost:5001
- Welcome - Introduction to LoraMint
- System Check - View your GPU info and available VRAM
- Model Selection - Choose from:
- SDXL Turbo (Recommended) - Fast, 4 steps, good quality
- SDXL Base 1.0 - Medium speed, 30 steps, high quality
- Z-Image Turbo - Fast, excellent quality (requires 16GB VRAM)
- Download - Wait for model download (progress shown)
- Complete - You're ready to generate!
- Go to Generate page
- Enter a prompt (e.g., "a serene mountain landscape at sunset")
- Click Generate Image
- Wait ~5-60 seconds depending on model (Turbo models are faster)
- View your image!
- Go to Train LoRA page
- Enter a name (e.g., "my_style")
- Upload 1-5 reference images
- Click Start Training
- Wait for training to complete
- Use your LoRA in future generations!
After initial setup, you can change models via the Settings page:
- Click the Settings icon in the navigation
- Go to the Models tab
- Download additional models if needed
- Click Select to switch models or Reload to reload the current model
Edit src/LoraMint.Web/appsettings.json:
{
"PythonBackend": {
"AutoStart": false
}
}Then start Python manually:
cd src/python-backend
source venv/bin/activate # On Windows: venv\Scripts\activate
python main.pyEdit src/LoraMint.Web/appsettings.json:
{
"PythonBackend": {
"Path": "/path/to/your/python-backend"
}
}Edit src/LoraMint.Web/appsettings.json:
{
"PythonBackend": {
"AutoInstallDependencies": false
}
}If you prefer Docker:
docker-compose up --buildAccess the app at http://localhost:5001
- Install Python 3.10+ from https://www.python.org/downloads/
- Make sure it's in your PATH
- Install .NET 8.0 SDK from https://dotnet.microsoft.com/download
- The startup scripts automatically kill existing processes on port 8000
- If you still have issues, manually kill the process:
- Windows:
taskkill /F /IM python.exeor check Task Manager - Linux/macOS:
lsof -ti:8000 | xargs kill -9
- Windows:
- Or change the port in
src/python-backend/main.py:uvicorn.run(app, host="0.0.0.0", port=8001) # Change to 8001
- And update
appsettings.json:{ "PythonBackend": { "BaseUrl": "http://localhost:8001" } }
- Install CUDA toolkit if you have an NVIDIA GPU
- Otherwise, CPU will be used (much slower)
- Check GPU status at
http://localhost:8000/health
- Check your internet connection
- Try manual setup:
./setup-python.shorsetup-python.bat - Check Python version:
python --version(should be 3.10+)
- Read the full README.md
- Check PROJECT_INSTRUCTIONS.md for details
- Explore the API docs at
http://localhost:8000/docs - View Python backend README at
src/python-backend/README.md - View Blazor web README at
src/LoraMint.Web/README.md
You're all set to start generating amazing AI images with custom LoRAs!