Run this model with HF Jobs

Run anyformat/doclayout-yolo-docstructbench on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/anyformat/doclayout-yolo-docstructbench. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/anyformat/doclayout-yolo-docstructbench on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

DocLayout-YOLO - Docstructbench

Document layout detection model. Paper: DocLayout-YOLO

Classes (10)

  • title
  • plain_text
  • abandon
  • figure
  • figure_caption
  • table
  • table_caption
  • table_footnote
  • isolate_formula
  • formula_caption

Usage

pip install anyformat-doclayout
from anyformat.doclayout import DocLayoutModel, download_converted

# Download weights from this repo
weights = download_converted("docstructbench")

# Run inference
model = DocLayoutModel(weights)
results = model.predict("document.png")

for det in results:
    print(f"{det['class_name']}: {det['confidence']:.2f}")
Downloads last month
736
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Paper for anyformat/doclayout-yolo-docstructbench