Downloads · 30 days
0
devikand/Multi_disease-chest-xray-ai
Multi_disease-chest-xray-ai is a machine learning model from devikand. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A modular deep learning system that runs multiple independent chest X-ray models — Tuberculosis, COVID-19, and NIH Multi-Disease — in parallel on a single input image, with PDF report generation and Grad-CAM explainab…
Downloads · 30 days
0
Access
Public
Updated Feb 18, 2026
Repo size
543 MB
Likes
0
Public
Click a slice to open those files.
.pth514 MB · 95%
From the Hugging Face model README
A modular deep learning system that runs multiple independent chest X-ray models — Tuberculosis, COVID-19, and NIH Multi-Disease — in parallel on a single input image, with PDF report generation and Grad-CAM explainability.
⚠️ Research / Educational Use Only. Not intended for clinical diagnosis.
The application orchestrates three independent inference pipelines:
| Model | Architecture | Task | Output |
|---|---|---|---|
| Tuberculosis Detection | ResNet-based | Binary classification | TB Positive / Negative + confidence |
| COVID-19 Detection | DenseNet-based | Binary classification with risk mapping | COVID Positive / Negative + confidence |
| NIH Multi-Disease Detection | DenseNet-based | Multi-label classification | 14 pathology probabilities (sigmoid) |
Each model is trained, loaded, and executed independently to preserve interpretability and avoid cross-label interference.
├── app.py # Main Streamlit application
├── tb/
│ ├── infer.py # TB inference pipeline
│ └── grad_cam.py # Grad-CAM for TB model
├── covid/
│ └── infer.py # COVID-19 inference pipeline
├── multi_disease/
│ └── infer.py # NIH multi-disease inference pipeline
├── requirements.txt
└── README.md
1. Clone the repository
git clone https://huggingface.co/devikand/Multi_disease-chest-xray-ai
cd Multi_disease-chest-xray-ai
2. Install dependencies
pip install -r requirements.txt
3. Launch the app
streamlit run app.py
Then open your browser at http://localhost:8501
For each X-ray, the system produces:
Key libraries used:
streamlit — UI frameworktorch / torchvision — model inferenceopencv-python — image processingmatplotlib — visualizationsreportlab — PDF report generationInstall all via:
pip install -r requirements.txt
The three models are loaded independently at inference time. Model weights should be placed in their respective module directories (tb/, covid/, multi_disease/) or configured within each infer.py file.
This project is intended for academic and research use. Please review model licenses before any commercial application.