Downloads · 30 days
3
7% of all-time downloads
jpalanca/plant-ultrasound-gru-22050hz-10s
plant-ultrasound-gru-22050hz-10s is a machine learning model from jpalanca. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Binary audio classifier to validate whether an ultrasonic emission belongs to a plant or not. This is the Phase 1 model from the IBMCP plant ultrasound project.
Downloads · 30 days
3
7% of all-time downloads
All-time downloads
42
Public
Repo size
8 MB
Likes
0
Public
Click a slice to open those files.
.bin8 MB · 100%
From the Hugging Face model README
Binary audio classifier to validate whether an ultrasonic emission belongs to a plant or not. This is the Phase 1 model from the IBMCP plant ultrasound project.
import torch
from hf_phase1_classifier.inference import load_model, predict_audio
model = load_model("pytorch_model.bin") # or path to your .pt checkpoint
out = predict_audio(model, "path/to/audio.wav")
print(out)
# {'label': 'plant', 'score': 0.98, 'probs': {'non_plant': 0.02, 'plant': 0.98}}
model.py — AudioGRU architectureinference.py — Preprocessing and prediction helpersconfig.json — Model configuration (sample rate, duration, labels)requirements.txt — Runtime dependenciespytorch_model.bin — Model weights (to be added)["non_plant", "plant"]
If you use this model, please cite the IBMCP Plant Ultrasound project.
Apache-2.0 (update as appropriate)