正在加载视频...

视频加载失败

PDF parsing is still painful because LLMs reorder text in complex layouts, break tables across pages, and fail on graphs or images. 💡Testing the new open-source OCRFlux model, and here the results are really good for a change. So OCRFlux is a multimodal, LLM based toolkit for converting PDFs...

149,292 次观看 • 1 年前 •via X (Twitter)

10 条评论

Rohan Paul 的头像
Rohan Paul1 年前

🧵 2/n 📄 The problem space Most open tools lose structure on pages that mix text blocks, figures and multi‑column tables. They also ignore the fact that a PDF page boundary can cut tables or paragraphs in half, so their final Markdown keeps fragments and duplicated headers. These limits slow downstream document understanding because text has to be fixed by hand.

Rohan Paul 的头像
Rohan Paul1 年前

🧵 3/n 🛠️ Model design OCRFlux fine tunes Qwen2.5‑VL‑3B with two prompt templates, one for single page parsing and one for cross‑page merging. Only the rendered page image enters the prompt, not any external layout metadata, which keeps context length short and avoids errors from faulty OCR blocks.

Rohan Paul 的头像
Rohan Paul1 年前

🧵 4/n 🗂️ Single‑page parsing method Ground truth tables are stored as HTML so the model learns rowspan and colspan patterns. During inference the model returns Markdown where tables appear in HTML form, which preserves merged cells and column spans while staying copy‑friendly.

Rohan Paul 的头像
Rohan Paul1 年前

🧵 5/n 🔗 Cross‑page detection and merging The same model receives two consecutive page Markdown lists and predicts which elements belong together. If the elements are tables, the model rewrites a full table, deletes repeated headers and realigns cells split by the page cut, reaching 98.6% F1 on the benchmark.

Rohan Paul 的头像
Rohan Paul1 年前

🧵 6/n 📊 Benchmark results On 2 000 mixed‑language pages OCRFlux scores 0.967 Edit Distance Similarity, beating olmOCR by 0.095 and Nanonets‑OCR‑s by 0.109. On 9064 PubTabNet tables the model scores 0.861 average Tree Edit Distance, staying ahead for simple tables and remaining close on complex ones.

Rohan Paul 的头像
Rohan Paul1 年前

🧵 7/n Evaluation for cross-page paragraphs/tables merging

Rohan Paul 的头像
Rohan Paul1 年前

🧵 8/n Here’s a simple example to run the model on your machine. The helper runs OCRFlux in 2 steps. First it calls ocrflux.pipeline to parse the input PDF or image with the chosen 3B model and store JSONL outputs in a workspace directory. Next it invokes ocrflux.jsonl_to_markdown to turn those JSONL records into a clean Markdown document. It returns and prints the path of that final file, so other code can open or share it easily.

Rohan Paul 的头像
Rohan Paul1 年前

Check them out here Huggingface - Github - Official Site:

Stan Leonaske 的头像
Stan Leonaske1 年前

OCRFlux seems promising. PDF parsing is still far from solved. The more open-source solutions that tackle it the better.

Rohan Paul 的头像
Rohan Paul1 年前

yes

相关视频

Web scraping will never be the same. (100% open-source visual search at scale) PixelRAG is a retrieval system that skips HTML parsing completely. Instead of scraping a page into text and embedding chunks, it screenshots the page and retrieves the image. A vision-language model reads the answer straight off the pixels. Why that matters: parsing is where web RAG quietly loses information. - A single HTML-to-text parser can drop 40%+ of a page. - Tables, charts, and layout get flattened or thrown out. - Swapping parsers alone can move accuracy ~10 points on the same docs. PixelRAG indexes the page a person actually sees. The team built a visual index of all of Wikipedia, 30M+ screenshots, and it still beats the strongest text RAG baseline by 18.1% on text-only QA. The repo also ships a Claude Code plugin that gives Claude eyes. It lets Claude screenshot any URL and read the rendered page instead of scraping the DOM. So you can hand it a live page, an arXiv paper, or your local site and ask what it actually looks like. One setup script. No MCP server, no backend. How the pipeline works: - Renders each document (web, PDF, image) to image tiles. - Embeds them with Qwen3-VL-Embedding, LoRA fine-tuned on screenshots. - Builds a FAISS index and serves a search API. A stronger reader model lifts accuracy with no re-indexing, since the index is just pixels. Everything is open-source under Apache-2.0. GitHub repo: Talking about RAG, I recently wrote an article on a new approach that makes retrieval much more efficient by cutting corpus size by 40x, reducing tokens per query by 3x, and improving vector search relevance by 2.3x. The article is quoted below.

Akshay 🚀

947,346 次观看 • 2 个月前

We've officially released and open-sourced HunyuanImage 2.1, our latest text-to-image model. The new model delivers on our commitment to balancing performance and quality. With native 2K image generation, HunyuanImage 2.1 is an advanced open-source text-to-image model.🎨 ✨ New in 2.1: 🔹Advanced Semantics: Supports ultra-long and complex prompts of up to 1000 tokens, and precisely controls the generation of multiple subjects in a single image. 🔹Precise Chinese and English Text Rendering with seamless image–text integration: The model naturally integrates text into images, making it suitable for a wide range of applications such as product covers, illustrations, and poster design to meet the needs of various fields. 🔹Rich Styles and High Aesthetic: Capable of generating images in various styles—including photorealistic portraits, comics, and vinyl figures—it delivers outstanding visual appeal and artistic quality. 🔹High-Quality Generation: Efficiently produces ultra-high-definition (2K) images in the same time other models take to generate a 1K image. HunyuanImage 2.1 uses two text encoders: a multimodal large language model (MLLM) to improve the model's image and text alignment capabilities, and a multi-language character-aware encoder to improve text rendering capabilities. The model is a single- and double-stream diffusion transformer with 17B parameters. We've also open-sourced the weights of the the accelerated version with meanflow which reduces inference steps from 100 to just 8, and PromptEnhancer, the first industrial-grade rewriting model that enhances your prompts for more nuanced and expressive image generation. Now, creators turn complex ideas—like posters with slogans or multi-panel comics—into visuals faster than ever. We’re just getting started. Stay tuned for our native multimodal image generation model coming soon. 🌐Website: 🔗Github: 🤗Hugging Face: ✨Hugging Face Demo:

Tencent Hy

89,392 次观看 • 1 年前