Update response formats for /colorize and /health endpoints - /colorize: Add filename, caption, change to PNG format, api_download_url - /health: Add model_type and provider fields
Make CCO model default for colorization - Change default model from GAN (dummy) to CCO (working) - Add fallback to GAN if CCO not available - Fix image format and saving issues
Integrate CCO colorization models (eccv16 and siggraph17) - Add CCO colorizers module from kinsung/cco - Update /colorize endpoint to support model selection parameter - Add scikit-image dependency - Maintain backward compatibility with existing GAN model - Update MongoDB logging to track model type used
Add Firebase email/password authentication endpoints - Add /auth/register endpoint for user registration - Add /auth/login endpoint with Firebase REST API integration - Add /auth/me endpoint to get current user info - Add /auth/refresh endpoint for token refresh - Integrate with existing Firebase App Check - Add httpx and email-validator dependencies
Refactor to use Hugging Face Inference API with fal-ai provider - Replace local model loading with InferenceClient API - Remove heavy SDXL/ControlNet/BLIP model dependencies - Use FLUX.1-Kontext-dev model via API - Keep FastAPI and Firebase authentication - Significantly reduce memory usage (no local models)
Add memory optimizations for SDXL pipeline - Enable VAE slicing and tiling - Enable attention slicing for UNet and ControlNet - Use sequential CPU offloading for pipeline - Keep BLIP model on CPU to save GPU memory - Add torch.no_grad() and cache clearing - Reduce guidance scale for lower memory usage
Fix permission errors and environment variables for model loading - Use /tmp directory for writable model storage - Set OMP_NUM_THREADS and cache directories at startup - Add better error handling and permission checks