Instructions to use amaye15/SwinV2-Base-Document-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use amaye15/SwinV2-Base-Document-Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="amaye15/SwinV2-Base-Document-Classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("amaye15/SwinV2-Base-Document-Classifier") model = AutoModelForImageClassification.from_pretrained("amaye15/SwinV2-Base-Document-Classifier") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -21,7 +21,7 @@
|
|
| 21 |
"1": "Invoice",
|
| 22 |
"2": "Object",
|
| 23 |
"3": "Invoice",
|
| 24 |
-
"4": "
|
| 25 |
},
|
| 26 |
"image_size": 256,
|
| 27 |
"initializer_range": 0.02,
|
|
|
|
| 21 |
"1": "Invoice",
|
| 22 |
"2": "Object",
|
| 23 |
"3": "Invoice",
|
| 24 |
+
"4": "Barcode"
|
| 25 |
},
|
| 26 |
"image_size": 256,
|
| 27 |
"initializer_range": 0.02,
|