A simple demo built on FastAPI to assess general lung health through X-ray images throgh the use of TorchXrayVision and CXR Lung Risk.
You need to have the all the requirements installed to be able to do this! If you do not, install it like this:
pip install -r requirements.txtYou also need the ensamble model weights used by CXR Lung Risk which are at weights.
After downloading and unpacking move all the .pth files to the risk_assessor\model_weights\ensamble-model-weights folder.
Then run this on the project folder:
fastapi devTo test if the service is working just run the simple example script:
python example.pyI did not implemented a mini-batching system for this api! I do not recommend to use this demo in production!