Added init and test code
Browse files- __init__.py +0 -0
- test_model_loading.py +6 -0
__init__.py
ADDED
File without changes
|
test_model_loading.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import AutoModelForImageClassification, AutoImageProcessor
|
2 |
+
|
3 |
+
model = AutoModelForImageClassification.from_pretrained("shravvvv/SAG-ViT", trust_remote_code=True)
|
4 |
+
processor = AutoImageProcessor.from_pretrained("shravvvv/SAG-ViT", trust_remote_code=True)
|
5 |
+
|
6 |
+
print(model)
|