Instructions to use mlahr/font-identifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlahr/font-identifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="mlahr/font-identifier") 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("mlahr/font-identifier") model = AutoModelForImageClassification.from_pretrained("mlahr/font-identifier") - Notebooks
- Google Colab
- Kaggle
Dataset
#1
by Kyliroco - opened
Hello, what dataset are you using to train the classifier? Did you create it yourself or did you use a pre-existing one?
The dataset is synthetically generated. We render text from NLTK's inaugural corpus in various fonts at different sizes and positions to create training images (50 per font). The fonts are a handcrafted selection of Mac OS system fonts and Google Fonts.