Update README.md
Browse files
README.md
CHANGED
|
@@ -4,7 +4,9 @@
|
|
| 4 |
|
| 5 |
```python
|
| 6 |
|
| 7 |
-
from transformers import AutoModelForSequenceClassification
|
|
|
|
|
|
|
| 8 |
|
| 9 |
model = AutoModelForSequenceClassification.from_pretrained("DBD-research-group/BirdMAE-XCL", trust_remote_code=True, num_labels=9736)
|
| 10 |
|
|
|
|
| 4 |
|
| 5 |
```python
|
| 6 |
|
| 7 |
+
from transformers import AutoModelForSequenceClassification, AutoFeatureExtractor
|
| 8 |
+
|
| 9 |
+
fe = AutoFeatureExtractor.from_pretrained("DBD-research-group/BirdMAE-XCL", trust_remote_code=True) # "DBD-research-group/Bird-MAE-Base" also works
|
| 10 |
|
| 11 |
model = AutoModelForSequenceClassification.from_pretrained("DBD-research-group/BirdMAE-XCL", trust_remote_code=True, num_labels=9736)
|
| 12 |
|