hayabhay / megadetector-fastapi

MegaDetector models served over FastAPI & visualized with Streamlit
MIT License
9 stars 3 forks source link

Simplified API to process a single image #3

Closed hayabhay closed 2 years ago

hayabhay commented 2 years ago
  1. Instead of processing a list of images, the API now only annotates a single image - This should create predictable bounds in response time and also payload sizes.
  2. Simplified Pydantic schema with a validator instead of Enum for easy default setting

Todo: Mix of async & sync is not very clear and might require deeper checks to see if there is any server blocking IO that remains.