NeuroSAM3 / app.py

Commit History

Update app.py
f4dfe52
verified

mmrech commited on

Refactor codebase: Add modular structure, logging, validation, and comprehensive improvements
69066c5

mmrech commited on

Add valid ranges to threshold parameter documentation
f14363b

copilot-swe-agent[bot] matheus-rech commited on

Improve docstring for run_sam3_inference with detailed parameter explanations
23cb04b

copilot-swe-agent[bot] matheus-rech commited on

Lower SAM3 detection thresholds to fix empty masks issue
b364546

copilot-swe-agent[bot] matheus-rech commited on

Polish: clarify sequential execution guarantee and fix spacing
1763823

copilot-swe-agent[bot] matheus-rech commited on

CRITICAL FIX: Convert all tensors to numpy arrays before returning
52a0ce4

copilot-swe-agent[bot] matheus-rech commited on

Add extensive debug logging to diagnose CUDA tensor issue
7ba3f6a

copilot-swe-agent[bot] matheus-rech commited on

Use recursive function to move ALL tensors to CPU
4518467

copilot-swe-agent[bot] matheus-rech commited on

CRITICAL: Move all result tensors to CPU before returning from GPU function
6e1f61b

copilot-swe-agent[bot] matheus-rech commited on

Final improvements: consistent dtype handling and safer error cleanup
1396743

copilot-swe-agent[bot] matheus-rech commited on

Address code review: use single .to() call and improve test precision
833b39a

copilot-swe-agent[bot] matheus-rech commited on

Address code review feedback: improve error handling and clarify in-place operations
5bb4258

copilot-swe-agent[bot] matheus-rech commited on

Fix CUDA initialization for HF Spaces Stateless GPU
817b249

copilot-swe-agent[bot] matheus-rech commited on

Refactor: move huggingface_hub import to module level
45493bd

copilot-swe-agent[bot] matheus-rech commited on

Fix HF_TOKEN handling to prevent interactive password prompt
186cf0b

copilot-swe-agent[bot] matheus-rech commited on

Fix slider math domain error when model fails to load
4fb1715

copilot-swe-agent[bot] matheus-rech commited on

Configure ZeroGPU with duration parameter
17e5a51

copilot-swe-agent[bot] matheus-rech commited on

Fix HF Spaces GPU error and improve workflow safety
24c4190

copilot-swe-agent[bot] matheus-rech commited on

Shorten File component labels for better UI layout
48f3a5f

copilot-swe-agent[bot] matheus-rech commited on

Fix SAM3 runtime errors and Gradio compatibility issues
7d5a300

copilot-swe-agent[bot] matheus-rech commited on

Fix: Make app startup more resilient to prevent SSE errors
e6d00b4

mmrech commited on

Fix SAM 3 implementation to match official akhaliq/sam3
3233b61

mmrech commited on

Fix SAM 3 model loading and inference
adc6eda

mmrech commited on

Add SAM-Medical-Imaging inspired utilities: AMG, transforms, edge detection
26b858a

mmrech commited on

Add comprehensive enhancements: Point/Box prompts, ROI statistics, NIFTI export, annotations
69aa7a5

mmrech commited on

Add enhanced features: image adjustments, visualization options, progress tracking, and batch ZIP download
208761f

mmrech commited on

Fix build error: Update to AutoImageProcessor and AutoModel for SAM 3
e6cbd76

mmrech commited on

Add missing detect_subjects function and comprehensive end-to-end test script
ab13376

mmrech commited on

Fix subject grouping to use new confidence-aware structure
b2dc700

mmrech commited on

Add confidence levels and warnings for subject detection reliability
d5e45f7

mmrech commited on

Add automatic subject/patient ID detection from filenames and folders for grouping slices
df56589

mmrech commited on

Add interactive slice viewer: scroll through slices with slider and navigation buttons
a8862db

mmrech commited on

Add ground truth comparison: compare SAM 3 segmentation with ground truth masks (BraTS, Kaggle datasets)
db851de

mmrech commited on

Add batch/sequence processing: view segmentation sequence for multiple images from same subject
fbc936c

mmrech commited on

Add support for PNG/JPG images (Kaggle datasets) in addition to DICOM files
cb8ab86

mmrech commited on

Complete NeuroSAM 3 app - use HF_TOKEN environment variable
b4dcf94

mmrech commited on

Upload folder using huggingface_hub
67cd310

mmrech commited on