I have a nice little docker and webapp which is ready to do inference on fastai vision models.
Deployment is as easy as mounting your export.pkl and overriding some environment variables.
I currently have it hosting two mini projects (on a single $10 vps from digital ocean):
- https://dsm.just-minimalism.com/ – mickey mouse, computer mouse, or animal mouse?
- https://garlicbread.dsm.just-minimalism.com/ – is it garlic bread?
Note, if you try this, fastai models trained <=1.0.44 won’t work on fastai >=1.0.46 so you need to be sure to use the right version of the docker. Additionally, dockerhub’s automated build system is broken at the moment, I have been manually building and pushing, but you may want to build your own.