Image Classification
Transformers
Safetensors
English
siglip
Formula-Text-Detection
SigLIP2
Image-Classification
Instructions to use prithivMLmods/Formula-Text-Detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Formula-Text-Detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="prithivMLmods/Formula-Text-Detection") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForImageClassification processor = AutoProcessor.from_pretrained("prithivMLmods/Formula-Text-Detection") model = AutoModelForImageClassification.from_pretrained("prithivMLmods/Formula-Text-Detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files18 unmodified lines19202122232475 unmodified lines10010110210310410518 unmodified lines> **Formula-Text-Detection** is a vision-language encoder model fine-tuned from **google/siglip2-base-patch16-224** for **binary image classification**. It is built using the **SiglipForImageClassification** architecture to distinguish between **mathematical formulas** and **natural text** in document or image regions.```pyClassification Report:precision recall f1-score support75 unmodified linesif __name__ == "__main__":iface.launch()```---18 unmodified lines1920212223242526272875 unmodified lines10410510610710810911011111211311411511611711811912012112212312412518 unmodified lines> **Formula-Text-Detection** is a vision-language encoder model fine-tuned from **google/siglip2-base-patch16-224** for **binary image classification**. It is built using the **SiglipForImageClassification** architecture to distinguish between **mathematical formulas** and **natural text** in document or image regions.> [!Note]> Note: This model works best with plain text or formulas using the same font style```pyClassification Report:precision recall f1-score support75 unmodified linesif __name__ == "__main__":iface.launch()```## **Demo Inference**> [!Important]> Text> [!Important]> Formula---
README.md+20