Instructions to use yangwang825/mert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yangwang825/mert-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="yangwang825/mert-base", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("yangwang825/mert-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
40d0bce
1
Parent(s): 9f6a578
Update modeling_mert.py
Browse files- modeling_mert.py +1 -1
modeling_mert.py
CHANGED
|
@@ -23,7 +23,7 @@ except:
|
|
| 23 |
print("WARNING: feature_extractor_cqt requires the libray 'nnAudio'")
|
| 24 |
NNAUDIO_INSTALLED=False
|
| 25 |
|
| 26 |
-
from configuration_mert import MERTConfig
|
| 27 |
|
| 28 |
_HIDDEN_STATES_START_POSITION = 1
|
| 29 |
|
|
|
|
| 23 |
print("WARNING: feature_extractor_cqt requires the libray 'nnAudio'")
|
| 24 |
NNAUDIO_INSTALLED=False
|
| 25 |
|
| 26 |
+
from .configuration_mert import MERTConfig
|
| 27 |
|
| 28 |
_HIDDEN_STATES_START_POSITION = 1
|
| 29 |
|