{"id":24802623,"url":"https://github.com/siddh-coder/pneumonia-detector","last_synced_at":"2026-05-07T13:14:52.133Z","repository":{"id":271046103,"uuid":"912143169","full_name":"siddh-coder/Pneumonia-Detector","owner":"siddh-coder","description":"This is a streamlit web-app which can be used for detecting pneumonia using the chest x-ray image of a patient.","archived":false,"fork":false,"pushed_at":"2025-01-08T06:43:10.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T05:36:04.078Z","etag":null,"topics":["pytorch","streamlit"],"latest_commit_sha":null,"homepage":"https://pneumascan.streamlit.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/siddh-coder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-04T18:12:39.000Z","updated_at":"2025-01-08T06:43:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"04ad7ca1-77b3-499a-964f-c82efc6ad057","html_url":"https://github.com/siddh-coder/Pneumonia-Detector","commit_stats":null,"previous_names":["siddh-coder/pneumonia-detector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siddh-coder/Pneumonia-Detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddh-coder%2FPneumonia-Detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddh-coder%2FPneumonia-Detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddh-coder%2FPneumonia-Detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddh-coder%2FPneumonia-Detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siddh-coder","download_url":"https://codeload.github.com/siddh-coder/Pneumonia-Detector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siddh-coder%2FPneumonia-Detector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745678,"owners_count":24813521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pytorch","streamlit"],"created_at":"2025-01-30T05:15:55.325Z","updated_at":"2026-05-07T13:14:47.075Z","avatar_url":"https://github.com/siddh-coder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pneumonia Detection Web Application\n\n## Overview\nThis project is a web-based application designed to detect pneumonia from chest X-ray images using pre-trained deep learning models. The application supports uploading images via a user-friendly interface and provides predictions from three models (`DenseNet121`, `ResNet50`, and `Inception_v3`) along with an ensemble prediction based on majority voting.\n\nThe application is built using:\n- **Flask** for the backend\n- **Streamlit** for the frontend\n- **PyTorch** for deep learning model inference\n\n## Features\n- Upload chest X-ray images directly through the web interface.\n- Perform inference using three pre-trained models.\n- Ensemble prediction based on majority voting from individual model outputs.\n- Works entirely on CPU, ensuring compatibility with systems without GPU.\n\n## Requirements\n\n### Python Version\n- Python 3.8 or higher\n\n### Dependencies\nThe dependencies are listed in `requirements.txt`. Install them using:\n```bash\npip install -r requirements.txt\n```\n\n### Key Packages\n- Flask\n- torch\n- torchvision\n- Pillow\n- numpy\n\n## Installation and Setup\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-repo/pneumonia-detection-web-app.git\n   cd pneumonia-detection-web-app\n   ```\n\n2. Create and activate a virtual environment:\n   ```bash\n   python -m venv env\n   source env/bin/activate  # For Windows: env\\Scripts\\activate\n   ```\n\n3. Install the dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Make sure the pre-trained models are in the project models directory. Ensure the filenames match:\n   - `models/densenet121_best.pth`\n   - `models/resnet50_best.pth`\n   - `models/inception_v3_best.pth`\n\n5. Run the application:\n   ```bash\n   streamlit run app.py\n   ```\n\n6. Open the application in your web browser at `http://127.0.0.1:5000`.\n\n\n## Usage\n1. Open the web application in your browser.\n2. Upload a chest X-ray image (JPEG or PNG format).\n3. View the ensemble result.\n\n\n## Contributing\nContributions are welcome! Please open an issue or submit a pull request for improvements or new features.\n\n## Acknowledgments\n- Pre-trained models were sourced from the PyTorch library.\n- Inspired by medical image analysis research and applications.\n- The dataset used for training and fine-tuning the models is of kaggle of whose link is provded below:\nhttps://www.kaggle.com/datasets/paultimothymooney/chest-xray-pneumonia\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddh-coder%2Fpneumonia-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiddh-coder%2Fpneumonia-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiddh-coder%2Fpneumonia-detector/lists"}