alicelouis
commited on
Commit
•
bb62ef1
1
Parent(s):
1353ed2
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1 |
---
|
2 |
license: mit
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
+
metrics:
|
4 |
+
- accuracy
|
5 |
---
|
6 |
+
|
7 |
+
from transformers import AutoImageProcessor, SwinForImageClassification
|
8 |
+
from PIL import Image
|
9 |
+
import requests
|
10 |
+
|
11 |
+
url = "http://images.cocodataset.org/val2017/000000039769.jpg"
|
12 |
+
image = Image.open(requests.get(url, stream=True).raw)
|
13 |
+
|
14 |
+
processor = AutoImageProcessor.from_pretrained("alicelouis/Swin2e-4Lion")
|
15 |
+
model = SwinForImageClassification.from_pretrained("alicelouis/Swin2e-4Lion")
|