A model zoo for to download and load pretrained models.
Here's a list of the names of the pretrained models that you can pass to get_model
.
list(MODELS.keys())
predict_leaf
is a simple wrapper over Learner
's predict
that decodes the class probabilities for the user.
model = get_model("resnet18_2021-04-08")
prediction = model.predict_leaf("../nbks/images/leaf.jpg")
prediction