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")# 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
| { | |
| "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 | |
| } |