Instructions to use kunal18/ast-finetuned-audioset-10-10-0.4593-medical-intent with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kunal18/ast-finetuned-audioset-10-10-0.4593-medical-intent with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="kunal18/ast-finetuned-audioset-10-10-0.4593-medical-intent")# Load model directly from transformers import AutoFeatureExtractor, AutoModelForAudioClassification extractor = AutoFeatureExtractor.from_pretrained("kunal18/ast-finetuned-audioset-10-10-0.4593-medical-intent") model = AutoModelForAudioClassification.from_pretrained("kunal18/ast-finetuned-audioset-10-10-0.4593-medical-intent", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "MIT/ast-finetuned-audioset-10-10-0.4593", | |
| "architectures": [ | |
| "ASTForAudioClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "frequency_stride": 10, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "Abdominal Pain and Weakness", | |
| "1": "Dermatological Issues", | |
| "2": "Head and Neck Discomfort", | |
| "3": "Musculoskeletal Pain", | |
| "4": "Respiratory and Ear Issues", | |
| "5": "Wound Trauma" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "Abdominal Pain and Weakness": 0, | |
| "Dermatological Issues": 1, | |
| "Head and Neck Discomfort": 2, | |
| "Musculoskeletal Pain": 3, | |
| "Respiratory and Ear Issues": 4, | |
| "Wound Trauma": 5 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_length": 1024, | |
| "model_type": "audio-spectrogram-transformer", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "num_mel_bins": 128, | |
| "patch_size": 16, | |
| "problem_type": "single_label_classification", | |
| "qkv_bias": true, | |
| "time_stride": 10, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.39.1" | |
| } | |