跳到正文
cccskills
免费在 GitHub 公开

donut

Use Donut for OCR-free document understanding, checkpoint inference, fine-tuning, evaluation, and SynthDoG synthetic document generation.

中文简介正在准备中。当前显示原文说明。

集成工具Hugging Face
查看安装方法

包含的文件(44)

  • SKILL.md4.7 KB
  • references/api-reference.md6.5 KB
  • references/repo-provenance.md3.6 KB
  • references/repo-routing-metadata.json489 B
  • references/troubleshooting.md5.2 KB
  • references/workflow-map.md5.2 KB
  • scripts/runtime_smoke.py6.5 KB
  • sub-skills/inference/references/demo-and-prediction.md6.3 KB
  • sub-skills/inference/references/troubleshooting.md4.5 KB
  • sub-skills/inference/scripts/launch_demo.py3.8 KB
  • sub-skills/inference/scripts/run_inference.py5.5 KB
  • sub-skills/inference/SKILL.md2.2 KB
  • sub-skills/synthdog/references/configs/config_en.yaml2.6 KB
  • sub-skills/synthdog/references/configs/config_ja.yaml2.6 KB
  • sub-skills/synthdog/references/configs/config_ko.yaml2.6 KB
  • sub-skills/synthdog/references/configs/config_zh.yaml2.6 KB
  • sub-skills/synthdog/references/configuration.md3.9 KB
  • sub-skills/synthdog/references/resource-layout.md2.0 KB
  • sub-skills/synthdog/references/troubleshooting.md3.3 KB
  • sub-skills/synthdog/references/workflows.md2.8 KB
  • sub-skills/synthdog/scripts/elements/__init__.py323 B
  • sub-skills/synthdog/scripts/elements/background.py608 B
  • sub-skills/synthdog/scripts/elements/content.py3.5 KB
  • sub-skills/synthdog/scripts/elements/document.py2.4 KB
  • sub-skills/synthdog/scripts/elements/paper.py391 B
  • sub-skills/synthdog/scripts/elements/textbox.py1.1 KB
  • sub-skills/synthdog/scripts/layouts/__init__.py169 B
  • sub-skills/synthdog/scripts/layouts/grid_stack.py2.4 KB
  • sub-skills/synthdog/scripts/layouts/grid.py2.3 KB
  • sub-skills/synthdog/scripts/render_config.py6.6 KB
  • sub-skills/synthdog/scripts/template.py5.0 KB
  • sub-skills/synthdog/SKILL.md2.5 KB
  • sub-skills/training/references/configs/train_cord.yaml940 B
  • sub-skills/training/references/configs/train_docvqa.yaml647 B
  • sub-skills/training/references/configs/train_rvlcdip.yaml659 B
  • sub-skills/training/references/configs/train_zhtrainticket.yaml578 B
  • sub-skills/training/references/configuration.md5.0 KB
  • sub-skills/training/references/troubleshooting.md4.1 KB
  • sub-skills/training/references/workflows.md5.0 KB
  • sub-skills/training/scripts/check_training_config.py12.4 KB
  • sub-skills/training/scripts/evaluate_dataset.py10.2 KB
  • sub-skills/training/scripts/lightning_module.py7.6 KB
  • sub-skills/training/scripts/train_donut.py6.6 KB
  • sub-skills/training/SKILL.md2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Donut

Use this repo skill when the task involves NAVER/ClovaAI Donut: OCR-free document understanding with a Swin encoder and BART-like decoder, plus SynthDoG synthetic document generation. This skill is self-contained; do not reopen the original checkout for routine Donut usage.

Route by task

User intentRead or run
Load a Donut checkpoint, run one-image prediction, compare prompts, or start the Gradio demosub-skills/inference/SKILL.md
Fine-tune, validate dataset JSONL, evaluate a checkpoint, read metrics, or debug configs/checkpointssub-skills/training/SKILL.md
Generate synthetic document images, render SynthDoG configs, or adapt resources/fonts/corporasub-skills/synthdog/SKILL.md
Inspect public package APIs, signatures, token helpers, and object relationshipsreferences/api-reference.md
Decide which bundled workflow helper or sub-skill owns a requestreferences/workflow-map.md
Diagnose install/import, Hugging Face, CUDA, Gradio, dataset, or SynthDoG dependency failuresreferences/troubleshooting.md
Check source baseline, commit, version, and refresh triggersreferences/repo-provenance.md

Fast start

  1. Install a Donut-capable Python environment. For inference only, pip install donut-python plus a compatible PyTorch build is the starting point. Training needs CUDA-capable PyTorch. SynthDoG generation also needs synthtiger and its image/text dependencies.
  2. Smoke-check the environment without the source repo:
    python scripts/runtime_smoke.py
    python scripts/runtime_smoke.py --check all --require-cuda  # when training and SynthDoG are in scope
    
  3. Route to a sub-skill before giving detailed commands. Each sub-skill owns its own scripts and troubleshooting notes.

Core facts to preserve

  • Package distribution: donut-python; import module: donut.
  • Public exports include DonutConfig, DonutModel, DonutDataset, JSONParseEvaluator, load_json, and save_json.
  • DonutModel.from_pretrained(...) loads local or Hugging Face checkpoints and requests the Donut repositories' official revision.
  • DonutModel.inference(...) returns a dictionary with a predictions list; parsed JSON is the default output.
  • Dataset rows use file_name plus a JSON-encoded ground_truth string containing either gt_parse or gt_parses.
  • Training is GPU-oriented in the original scripts; do not promise CPU training equivalence.
  • No model weights, datasets, or large SynthDoG assets are bundled in this skill. Users must provide checkpoints, images, datasets, and SynthDoG resources.

Bundled helpers

Boundaries

Use Donut for OCR-free document-image understanding, classification, extraction, visual QA, and synthetic-document pretraining data generation. Do not use this skill for generic PDF parsing, OCR engines, RAG chunking, non-document computer vision models, or unrelated Transformers training unless Donut APIs, checkpoints, config files, errors, or data formats are central to the request.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题