HarshithReddy01/srmamamba-liver-segmentation
Fix HF Spaces build timeout: limit mamba_ssm to sm_89 only
Cap CUDA-extension build parallelism (fix HF Spaces OOMKill, exit 137)
Add Gradio head-to-head baseline (V1/V2/V3) and bench Space entrypoint
Fix inference pipeline: normalization, RAS orientation, state_dict check, debug logging
fix: HfFolder ImportError - add compatibility shim for huggingface_hub 1.x
fix: pin huggingface-hub<1.0 to fix HfFolder ImportError with Gradio
Fix: Always use FastAPI as server, remove Gradio-only fallback, remove demo.launch()
Mount Gradio at /gradio to prevent interference with API routes
Fix Request parameter to use dependency injection
Add file validation and fix request parameter order
Fix CORS for GitHub Pages and improve multipart request handling
Add detailed logging for multipart requests and route registration
Fix exception handler to prevent UnicodeDecodeError and improve error messages
Add route registration logging before Gradio mount
Add explicit JSONResponse to segment endpoint
Fix middleware to not consume request body for file uploads
Add request logging middleware to debug Method Not Allowed errors
Add route debugging and ensure FastAPI routes are properly registered
Fix API routes and add root endpoint
Add detailed logging for API requests to show in Hugging Face logs
Fix dimension mismatch: resample prediction mask to match original input dimensions
Increase upload limit to 2 GB to match processing limit
Increase file size limits: upload 1 GB, processing 2 GB
Update processing file size limit to 200 MB for medical imaging volumes
Fix critical issues: 50MB upload limit, report guardrails, T2 experimental status, API security, and indentation errors
Fix shape
Fix: Update remaining spatial priors and pass voxel_spacing to confidence calculation
Aggressive fixes: Higher T1 thresholds (0.60-0.80), stricter spatial priors, volume-based confidence penalty, reject <1000ml
Fix: Correct indentation errors and ensure PROCESSING_LOCK is threading.Lock()
Fix: Remove local ndimage imports that cause UnboundLocalError - use top-level import instead
Complete critical fixes: proper lock acquire/release, load NIfTI once, fix slice_idx bounds, remove redundant confidence check
Fix critical bugs: threading.Lock, NIfTI load once, z-axis calculations, confidence defaults, path guards
Fix preprocessing indentation error
Complete QC pipeline
Added advanced guards
Normalize Intensityd
Fixed preprocessing
Fix confidence_score
Add T1 threshold 0.58, size-aware auto-tune, enhanced edge cleanup, centroid/Z-span guards, confidence score, remove emojis
Fix accuracy: match training preprocessing and use 0.5 threshold by default
Enhance medical report with detailed findings, clinical context, and quality assessment
Fix preprocessing, threshold, and post-processing for better predictions
Fix UnboundLocalError and Triton cache permission error
Fix Internal Server Error: mount Gradio Blocks to FastAPI app for Hugging Face Spaces
Fix Gradio 4.44.x schema bug: patch additionalProperties boolean to dict conversion
Fix syntax error: remove embedded error messages from app.py
Fix Gradio launch error: remove unsupported api_name parameter from click() method
Fix No API found error: remove API info patching and explicitly set api_name
Fix API info generation to prevent No API found error
Fix remaining indentation error at line 133
