Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vubacktracking/fast-api-deep-learning-model
Deploy Deep Learning Model With FastAPI
https://github.com/vubacktracking/fast-api-deep-learning-model
api deel-learning deploy fastapi image-classification image-processing python pytorch resnet
Last synced: 2 months ago
JSON representation
Deploy Deep Learning Model With FastAPI
- Host: GitHub
- URL: https://github.com/vubacktracking/fast-api-deep-learning-model
- Owner: VuBacktracking
- License: mit
- Created: 2024-04-04T06:44:18.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-04-07T14:47:38.000Z (10 months ago)
- Last Synced: 2024-11-10T01:13:12.385Z (3 months ago)
- Topics: api, deel-learning, deploy, fastapi, image-classification, image-processing, python, pytorch, resnet
- Language: Python
- Homepage:
- Size: 10.6 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deploy Deep Learning Model with FastAPI
## Project Overview![Overview](assets/inference.jpeg)
Pneumonia is a severe lung infection that can be life-threatening if not diagnosed and treated promptly. Chest X-ray imaging plays a crucial role in the early detection and diagnosis of Pneumonia. However, interpreting these images accurately requires specialized knowledge and expertise. This project addresses this challenge by developing a deep learning model capable of analyzing chest X-ray images and classifying them as either showing signs of Pneumonia or being normal.
---
### Directory Structure
```
root/
├── config/
│ ├── pneumonia_cfg.py
│ └── logging_cfg.py
├── logs/
├── middleware/
│ ├── __init__.py
│ ├── cors.py
| └── http.py
├── models/
│ ├── weights/
│ │ └── pneumonia_weights.pt
│ ├── dataset.py
│ ├── pneumonia_model.py
│ └── pneumonia_predictor.py
├── routes/
│ ├── base.py
│ └── pneumonia_route.py
├── schemas/
│ └── pneumonia_schema.py
├── utils/
│ └── logger.py
├── app.py
├── requirements.txt
└── server.py```
---
### How to run?
Clone the project
```
$ git clone https://github.com/VuBacktracking/Deploy-Deep-Learning-Model-With-FastAPI.git
```Install the requirements
```
$ pip install -r requirements.txt
```Run the server.py
```
$ python3 server.py
```Result
![Result](assets/result.png)This will start the FastAPI application in development mode, and you can access the API at
`http://0.0.0.0:8000/docs`---
### Demo
![Image](assets/img1.png)![Image](assets/img2.png)
![Image](assets/img3.png)
![Log](assets/predictor_log.png)