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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
---
|
| 2 |
library_name: peft
|
| 3 |
license: apache-2.0
|
|
|
|
| 4 |
base_model: facebook/dinov2-base-imagenet1k-1-layer
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
|
|
|
| 1 |
---
|
| 2 |
library_name: peft
|
| 3 |
license: apache-2.0
|
| 4 |
+
pipeline_tag: image-classification # 👈 tells the router what to do
|
| 5 |
base_model: facebook/dinov2-base-imagenet1k-1-layer
|
| 6 |
tags:
|
| 7 |
- generated_from_trainer
|