Skip to content

xkcd bird classifier

Is this a bird?

import marvin

photo = marvin.Image(
    "https://images.unsplash.com/photo-1613891188927-14c2774fb8d7",
)

result = marvin.classify(
    photo,
    labels=["bird", "not bird"]
)

Yes!

assert result == "bird"