Instructions to use dchen0/font-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dchen0/font-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="dchen0/font-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("dchen0/font-classifier") model = AutoModelForImageClassification.from_pretrained("dchen0/font-classifier") - Notebooks
- Google Colab
- Kaggle
Add merged model + processor
Browse files- config.json +1 -0
- model.safetensors +1 -1
config.json
CHANGED
|
@@ -233,6 +233,7 @@
|
|
| 233 |
],
|
| 234 |
"patch_size": 14,
|
| 235 |
"pipeline_tag": "image-classification",
|
|
|
|
| 236 |
"qkv_bias": true,
|
| 237 |
"reshape_hidden_states": true,
|
| 238 |
"stage_names": [
|
|
|
|
| 233 |
],
|
| 234 |
"patch_size": 14,
|
| 235 |
"pipeline_tag": "image-classification",
|
| 236 |
+
"problem_type": "single_label_classification",
|
| 237 |
"qkv_bias": true,
|
| 238 |
"reshape_hidden_states": true,
|
| 239 |
"stage_names": [
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 346974744
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89c320e1874242dc4347fbfa775208ce3d626c937386c6b262cf44c307bc076e
|
| 3 |
size 346974744
|