Dockerfile.gpu) is now provided. Use it if you want a container image with CUDA and GPU support. See the SETUP.md
diffusers==0.30.2 while some text-to-image pipelines work best with diffusers==0.34.0.
Notes about version changes and Docker:
- You can change the
diffusersversion locally to try different features, but changing the pinned version in the container or inrequirements.txtand rebuilding the Docker image will trigger re-downloads of models (including gated HuggingFace models) during the rebuild. For that reason, switching diffusers versions inside Docker is not recommended unless you understand the rebuild/model-download consequences. - For local development (non-Docker), the project includes runtime logic so you don't need to stop the server and rebuild to switch
diffusersbehavior: the applicationcorewill select the appropriate pipeline implementation when you visit the corresponding page, allowing feature-specific behavior to load at runtime.
-
Configure API Keys
Edit the
.envfile and add your API keys:# Django Configuration SECRET_KEY=your-secret-key-here DEBUG=TRUE # OAuth Configuration (Optional - for social login) GOOGLE_CLIENT_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret GITHUB_CLIENT_ID=your-github-client-id GITHUB_CLIENT_SECRET=your-github-client-secret # Security Settings (Production) SECURE_SSL_REDIRECT=false DJANGO_LOG_LEVEL=INFO # Server Configuration (Optional) WEB_CONCURRENCY=4 TIMEOUT=30 WORKER_CLASS=sync
-
Build and Run with Docker:
# Build the container docker build -t deepfx-studio . # Run the container docker run -p 8000:8000 --env-file .env deepfx-studio
Note: The Dockerfile automatically downloads and places all required models in the correct locations.
🎉 Ready to go! Visit http://localhost:8000 to start using DeepFX Studio!
If you have an NVIDIA GPU and the NVIDIA Container Toolkit installed, build and run the provided GPU image with these commands.
docker build -f Dockerfile.gpu --build-arg HF_TOKEN="$HF_TOKEN" -t deepfx-studio-gpu .
docker run --gpus all -p 8000:8000 deepfx-studio-gpuNote: requires NVIDIA Container Toolkit / nvidia-docker on the host.
- Python 3.10+
- Node.js 18+
- High VRAM GPU: Minimum 42GB VRAM required for Text-to-Image and Advanced Inpainting features (Recommended: 50GB+ VRAM)
- For AWS: L40S (48GB VRAM) - Most cost-effective
- For GCP: A100 (80GB VRAM) or H100 (80GB VRAM)
- Git
-
Clone the Repository
git clone https://github.com/XBastille/DeepFX-Studio.git cd DeepFX-Studio -
Download Models
Download all necessary models from the Releases page.
📋 Model Placement: Refer to SETUP.md for detailed instructions on where to place each model file.
Set Up HuggingFace CLI (Required for Stable Diffusion 3.5 Large and Flux Inpaint)
huggingface-cli login
Then approve the use of
stabilityai/stable-diffusion-3.5-largeandalimama-creative/flux.1-dev-controlnet-inpainting-betamodels on the HuggingFace website. -
Create Virtual Environment
python -m venv venv
-
Activate Virtual Environment
macOS/Linux:
source venv/bin/activateWindows (CMD):
venv\Scripts\activate
Windows (PowerShell):
venv\Scripts\Activate.ps1
-
Set Up Environment Variables
macOS/Linux:
cp .env.example .env
Windows (CMD):
copy .env.example .envWindows (PowerShell):
Copy-Item .env.example -Destination .env
Important: Set
DEBUG=TRUEfor local development or when running on Lightning.ai -
Install Python Dependencies
pip install -r requirements.txt
For Dependency Conflicts: If you encounter issues with diffusers version conflicts:
- For inpainting features:
pip install diffusers==0.30.2 - For text-to-image features:
pip install diffusers==0.34.0 - Switch between versions as needed for different features
- For inpainting features:
-
Install Node.js Dependencies
npm install
For development, you need to run two commands in separate terminals:
Terminal 1 - Django Server:
python manage.py runserverTerminal 2 - TailwindCSS Watcher:
npm run watch:css🎉 Ready to go! Visit http://localhost:8000 to start using DeepFX Studio!
For production deployment:
# Collect static files
python manage.py collectstatic --no-input
# Run migrations
python manage.py migrate
# Start with gunicorn (production)
gunicorn deepfx_studio.wsgi:application --bind 0.0.0.0:8000When running on Lightning.ai or other cloud GPU platforms:
- Ensure
DEBUG=TRUEis set in your environment - Install CUDA-compatible PyTorch version:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
- Verify GPU availability:
import torch print(torch.cuda.is_available())
For users who want to run all GPU features without local GPU hardware, Lightning.ai provides an excellent cloud solution with high-VRAM GPUs.
-
Create Lightning.ai Account
- Go to lightning.ai and sign up
- You get 80 free GPU hours monthly + 15 free credits
-
Create New Studio
- Navigate to your teamspace (free tier available)
- Click "New Studio"
- Recommended Configuration:
- AWS: Select AWS CPU (offers L40S GPU (48GB VRAM) - Most cost-effective option)
- GCP: Select GCP CPU (offers A100 (80GB VRAM) or H100 (80GB VRAM) - Higher performance but more expensive)
-
Launch Studio
- Click "Start" to launch your studio
- Wait for the VS Code environment to load (2-3 minutes)
-
Setup Project
- Clone the repository in the terminal:
git clone https://github.com/XBastille/DeepFX-Studio.git cd DeepFX-Studio - Follow all the manual installation steps above (steps 2-9)
- Run database migrations:
python manage.py migrate
- Clone the repository in the terminal:
-
Switch to GPU
- Important: After completing all installations, switch from CPU to GPU
- In the top-right corner of VS Code, click the machine type dropdown
- Select your desired GPU (L40S 48GB recommended for cost-effectiveness)
- Enable "Interruptible": ✅ Recommended for cost savings
- What it is: Interruptible instances can be stopped by the cloud provider when they need resources, but they offer significant cost discounts (up to 50%-70% off)
- Downside: Your session might be interrupted during peak demand, requiring restart
- Reality: Interruptions are rare and provide substantial cost savings for development work
- Any GPU with 48GB+ VRAM will work, but L40S offers the best price-to-performance ratio
-
Install Port viewer Plugin and Configure Access
- Click the "+" button at the bottom-right corner of VS Code to access Lightning.ai studio plugins
- head to "web apps"
- install a "Port viewer" plugin
- Click on the new "Port viewer" tab in the bottom panel, then "Add Port" and enter
8000
-
Start Development Server
python manage.py runserver
- Access Your Application: Click on the port 8000 link in the Ports panel
- This will open your DeepFX Studio application in a new browser tab
- All GPU-intensive features (Text-to-Image, Advanced Inpainting, Upscaling, Arcane Filter) will now work perfectly!
- No local GPU required: Access high-end GPUs (L40S, A100, H100) without hardware investment
- Free tier: 80 GPU hours monthly + 15 credits for additional usage
- Cost-effective: L40S instances with interruptible mode offer excellent value
- Pre-configured environment: VS Code with GPU drivers and CUDA already set up
- Scalable: Easy switching between different GPU types as needed
Pro Tip: Use interruptible instances for development and switch to non-interruptible only for critical production deployments or long training sessions.
- Model Loading Errors: Ensure all models are downloaded and placed correctly as per SETUP.md
- GPU Memory Issues: Make sure that your GPU has high RAM and VRAM or please try again later
- Diffusers Version Conflicts: Switch between 0.30.2 and 0.34.0 as needed for different features
- HuggingFace Authentication: Make sure you're logged in and have approved model access
If you encounter issues:
- Check our GitHub Issues
- Create a new issue with detailed error logs



