Show HN: FastAPI wrapper for recognize-anything image recognition models (github.com)

2 points by mnahkies ↗ HN
I've been experimenting with the recognize anything models from https://github.com/xinyu1205/recognize-anything and ended up writing a simple HTTP API around them using FastAPI, packaged into an offline-capable docker image on Dockerhub (https://hub.docker.com/r/mnahkies/recognize-anything-api).

This made it convenient to run inference across all my photos, and create a web app to search / browse them by tag/content (I plan to tidy this up and release it too).

2 comments

[ 6.3 ms ] story [ 18.0 ms ] thread
Whats the bulk of 6GB of dependencies?
I've not looked deeply tbh (see caveat this is scrappy/minimum viable to facilitate what I was actually trying to do which is browse my photography by content)

I'm reasonably sure that the bulk of that is the cuda libs though - based on how heavy the Nvidia cuda image bases are, which I'm not using to avoid installing them twice which appeared to happen when I was