MinerU-Diffusion

(β˜… 614)

[ECCV 2026] A diffusion-based framework for document OCR that replaces autoregressive decoding with block-level parallel diffusion decoding.

  • .gitignore
  • LICENSE
  • README.md
  • requirements.txt

# Installation Guide

1. Get the code
git clone https://github.com/opendatalab/MinerU-Diffusion

Downloads the entire project code from GitHub to your computer.

cd MinerU-Diffusion

Moves into the project folder you just downloaded.

2. Official Install Script

Easy Recommended
Prerequisites
  • Python 3 Python is required to use pip.
pip install --upgrade pip

Installs the package published on PyPI directly β€” no need to clone the source.

pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128

Installs the package published on PyPI directly β€” no need to clone the source.

pip install "transformers>=4.52.1"

Installs the package published on PyPI directly β€” no need to clone the source.

pip install flash_attn-2.8.3+cu12torch2.8cxx11abiFALSE-cp312-cp312-linux_x86_64.whl

Installs the package published on PyPI directly β€” no need to clone the source.

βœ… After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.

Pulled directly from this repo's README.

3. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install --upgrade pip

Installs the package published on PyPI directly β€” no need to clone the source.

pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 --index-url https://download.pytorch.org/whl/cu128

Installs the package published on PyPI directly β€” no need to clone the source.

pip install "transformers>=4.52.1"

Installs the package published on PyPI directly β€” no need to clone the source.

pip install flash_attn-2.8.3+cu12torch2.8cxx11abiFALSE-cp312-cp312-linux_x86_64.whl

Installs the package published on PyPI directly β€” no need to clone the source.

pip install -r requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

βœ… If it runs without errors and prints output in the terminal, it worked.

Pulled directly from this repo's README.

// repository documentation