Downloads · 30 days
0
n2b8/backyard-birds
backyard-birds is a machine learning model from n2b8. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gpl-3.0.
Custom ONNX-based bird classification model trained on a filtered subset of the NABirds dataset, optimized for backyard bird feeders.
Downloads · 30 days
0
Access
Public
Updated Apr 17, 2025
Repo size
256 MB
Likes
0
Public
Click a slice to open those files.
.onnx256 MB · 100%
From the Hugging Face model README
Custom ONNX-based bird classification model trained on a filtered subset of the NABirds dataset, optimized for backyard bird feeders.
Designed to run on a Raspberry Pi + Hailo-8 setup in real-time as part of the Birdwatcher Project
600×600not_a_birdefficientnet_b7_backyard_feeder_birds.onnx — Trained ONNX modelclass_labels_v3.txt — One class label per lineimport onnxruntime as ort
import numpy as np
from PIL import Image
# Load model
session = ort.InferenceSession("efficientnet_b7_backyard_feeder_birds.onnx")
# Preprocess
img = Image.open("bird.jpg").resize((600, 600))
x = np.array(img).astype(np.float32) / 255.0
x = np.transpose(x, (2, 0, 1))[np.newaxis, :] # CHW + batch
# Predict
outputs = session.run(None, {"input": x})
pred_idx = np.argmax(outputs[0])
GPLv3