Audio Classification
Transformers.js
ONNX
Transformers
PyTorch
English
wav2vec2
audio
musical-instruments
Eval Results (legacy)
Instructions to use onnx-community/Musical-Instrument-Classification-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/Musical-Instrument-Classification-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('audio-classification', 'onnx-community/Musical-Instrument-Classification-ONNX'); - Transformers
How to use onnx-community/Musical-Instrument-Classification-ONNX with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="onnx-community/Musical-Instrument-Classification-ONNX")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForAudioClassification processor = AutoProcessor.from_pretrained("onnx-community/Musical-Instrument-Classification-ONNX") model = AutoModelForAudioClassification.from_pretrained("onnx-community/Musical-Instrument-Classification-ONNX", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download quantize_config.json from onnx-community/Musical-Instrument-Classification-ONNX: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/onnx-community/Musical-Instrument-Classification-ONNX/resolve/main/quantize_config.json
- Command line
-
hf download hf://onnx-community/Musical-Instrument-Classification-ONNX/quantize_config.json
-
curl -L -o quantize_config.json https://huggingface.co/onnx-community/Musical-Instrument-Classification-ONNX/resolve/main/quantize_config.json
312 Bytes
| { | |
| "modes": [ | |
| "fp16", | |
| "q8", | |
| "int8", | |
| "uint8", | |
| "q4", | |
| "q4f16", | |
| "bnb4" | |
| ], | |
| "per_channel": false, | |
| "reduce_range": false, | |
| "block_size": null, | |
| "is_symmetric": true, | |
| "accuracy_level": null, | |
| "quant_type": 1, | |
| "op_block_list": null | |
| } |