Hybrid 3D lung nodule classification pipeline with a fusion architecture and deployment-ready inference app.
- Hugging Face Model: https://huggingface.co/ShiroOnigami23/lung-cancer-hybrid-model
- Hugging Face Space (Web App): https://huggingface.co/spaces/ShiroOnigami23/lung-cancer-hybrid-app
- Test Accuracy: 84.19%
- Test AUC: 0.9202
- Test F1: 0.6918
- Dataset used for benchmark run: MedMNIST NoduleMNIST3D (derived from LIDC-IDRI)
app.py
Dockerfile
requirements.txt
requirements-app.txt
data/
models/
training/
evaluation/
inference/
scripts/
For fastest iteration + shareable demo, use:
- Gradio + Hugging Face Spaces (already set up)
Reason: easiest deployment flow, direct model hosting, and instant public/private demos with zero custom backend maintenance.
pip install -r requirements-app.txt
python app.pyThen open http://localhost:7860.
docker build -t lung-cancer-hybrid .
docker run -p 7860:7860 lung-cancer-hybridpython train.py --epochs 2 --batch-size 2 --num-workers 0 --mock-dataFor real-dataset training in Colab, use scripts under scripts/.
- The app expects a
.npy3D nodule patch input. app.pyloads weights directly from the Hugging Face model repo.