Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## A supervised finetune of the BirdMAE-Base model on XCL from BirdSet
|
| 2 |
+
|
| 3 |
+
|
| 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 |
+
|
| 11 |
+
print(model.config.id2label)
|
| 12 |
+
|
| 13 |
+
# {0: 'ostric2',
|
| 14 |
+
# 1: 'grerhe1',
|
| 15 |
+
# 2: 'lesrhe2',
|
| 16 |
+
# 3: 'sobkiw1',
|
| 17 |
+
# ...
|
| 18 |
+
# }
|
| 19 |
+
|
| 20 |
+
```
|