Object Detection
Transformers
Safetensors
rt_detr_v2
document-layout-analysis
document-understanding
pdf
physics
rt-detr
Instructions to use pacoreyes/heron-physics-pdf-layout with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pacoreyes/heron-physics-pdf-layout with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="pacoreyes/heron-physics-pdf-layout")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForObjectDetection tokenizer = AutoTokenizer.from_pretrained("pacoreyes/heron-physics-pdf-layout") model = AutoModelForObjectDetection.from_pretrained("pacoreyes/heron-physics-pdf-layout", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from pacoreyes/heron-physics-pdf-layout: direct link, hf CLI and curl.
- Browser
- Download file 424 Bytes
-
https://huggingface.co/pacoreyes/heron-physics-pdf-layout/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://pacoreyes/heron-physics-pdf-layout/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/pacoreyes/heron-physics-pdf-layout/resolve/main/preprocessor_config.json
424 Bytes
| { | |
| "do_convert_annotations": true, | |
| "do_normalize": false, | |
| "do_pad": false, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "format": "coco_detection", | |
| "image_mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "image_processor_type": "RTDetrImageProcessor", | |
| "image_std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "height": 640, | |
| "width": 640 | |
| } | |
| } | |