Instructions to use DBD-research-group/Bird-MAE-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DBD-research-group/Bird-MAE-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="DBD-research-group/Bird-MAE-Base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("DBD-research-group/Bird-MAE-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from DBD-research-group/Bird-MAE-Base: direct link, hf CLI and curl.
- Browser
- Download file 471 Bytes
-
https://huggingface.co/DBD-research-group/Bird-MAE-Base/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://DBD-research-group/Bird-MAE-Base/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/DBD-research-group/Bird-MAE-Base/resolve/main/preprocessor_config.json
471 Bytes
| { | |
| "auto_map": { | |
| "AutoFeatureExtractor": "feature_extractor.BirdMAEFeatureExtractor" | |
| }, | |
| "dither": 0.0, | |
| "feature_extractor_type": "BirdMAEFeatureExtractor", | |
| "feature_size": 1, | |
| "frame_shift": 10, | |
| "htk_compat": true, | |
| "mean": -7.2, | |
| "num_mel_bins": 128, | |
| "padding_side": "right", | |
| "padding_value": 0.0, | |
| "return_attention_mask": true, | |
| "sampling_rate": 32000, | |
| "std": 4.43, | |
| "target_length": 512, | |
| "use_energy": false, | |
| "window_type": "hanning" | |
| } | |