Instructions to use dontcryai/dontcry with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dontcryai/dontcry with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="dontcryai/dontcry")# Load model directly from transformers import HuBERTClassifier model = HuBERTClassifier.from_pretrained("dontcryai/dontcry", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Baby Cry Classification Model
Classifies baby cries into 5 categories to help parents understand their baby's needs.
Categories
- ๐ผ Hungry: Baby needs feeding
- ๐ด Tired: Baby needs sleep
- ๐ฃ Belly Pain: Digestive discomfort
- ๐จ Burping: Needs burping
- ๐ข Discomfort: General discomfort (diaper, temperature, etc.)
Model Details
- Base Model: HuBERT (facebook/hubert-base-ls960)
- Architecture: HuBERT + Custom Classification Head
- Sample Rate: 16kHz
- Input Duration: 5 seconds
- Framework: PyTorch + Transformers
Usage
import requests
import numpy as np
# Load audio file
audio_data = open("baby_cry.wav", "rb").read()
# Call API
API_URL = "https://api-inference.huggingface.co/models/dontcryai/baby-cry-classifier"
headers = {"Authorization": "Bearer YOUR_HF_TOKEN"}
response = requests.post(API_URL, headers=headers, data=audio_data)
result = response.json()
print(result)
# [{'label': 'hungry', 'score': 0.85}, ...]
Training
Trained on custom baby cry dataset with data augmentation.
License
MIT License - Free for commercial and personal use
- Downloads last month
- 14