Is it a lizard? deployed

news
fastai
classifier
Author

Bill Ostrie II

Published

December 31, 2022

I deployed the the “Is it a lizard?” model on Hugging Face Spaces following this great tutorial on Tanishq Abraham’s blog.

The tutorial is very clear and helpfully explains the use of LFS to sync large files with git, which is something that the repo from Spaces expects. I opted to upload the model file directly to Spaces rather than installing LFS at this time. (The large model file is a sticking point otherwise. The other files were easy to push normally, but the model file required LFS or uploading directly to Spaces.)

The model is resnet18 finetuned on some images of lizards and rocks using fastai. Kaggle notebook

It’s pretty accurate on the types of images it was trained on, but I think most photos of lizards reflect the photographer’s intention that you actually see the lizard easily. This model can be fooled by the type of images you will find if you search “lizard camouflage”. One of the example images demonstrates this limitation - it shows a lizard, but the prediction is “Rocks”. It might be interesting to train again using some images of harder-to-see lizards.

Try it out here!