|
33 | 33 | - Layout-aware text extraction |
34 | 34 | - Web screen parsing |
35 | 35 | - Scene text spotting |
36 | | -- SVG code generation (use --prompt-mode svg, or --model rednote-hilab/dots.mocr-svg for best results) |
| 36 | +- SVG code generation (use --prompt-mode svg, or --model dots-studio/dots.mocr-svg for best results) |
37 | 37 |
|
38 | | -Model: rednote-hilab/dots.mocr |
39 | | -SVG variant: rednote-hilab/dots.mocr-svg |
| 38 | +Model: dots-studio/dots.mocr |
| 39 | +SVG variant: dots-studio/dots.mocr-svg |
40 | 40 | vLLM: Officially integrated since v0.11.0 |
41 | 41 | GitHub: https://github.com/rednote-hilab/dots.mocr |
42 | 42 | Paper: https://arxiv.org/abs/2603.13032 |
|
114 | 114 | "scene-spotting": """Detect and recognize the text in the image.""", |
115 | 115 | "grounding-ocr": """Extract text from the given bounding box on the image (format: [x1, y1, x2, y2]).\nBounding Box:\n""", |
116 | 116 | # SVG code generation — {width} and {height} are replaced with actual image dimensions. |
117 | | - # For best results, use --model rednote-hilab/dots.mocr-svg |
| 117 | + # For best results, use --model dots-studio/dots.mocr-svg |
118 | 118 | # Uses higher temperature (0.9) and top_p (1.0) per official recommendation. |
119 | 119 | "svg": """Please generate the SVG code based on the image. viewBox="0 0 {width} {height}" """, |
120 | 120 | "general": """ """, |
@@ -306,7 +306,7 @@ def main( |
306 | 306 | output_dataset: str, |
307 | 307 | image_column: str = "image", |
308 | 308 | batch_size: int = 16, |
309 | | - model: str = "rednote-hilab/dots.mocr", |
| 309 | + model: str = "dots-studio/dots.mocr", |
310 | 310 | max_model_len: int = 24000, |
311 | 311 | max_tokens: int = 24000, |
312 | 312 | gpu_memory_utilization: float = 0.9, |
@@ -581,7 +581,7 @@ def update_inference_info(example): |
581 | 581 | print(" uv run --with vllm==0.30.0 dots-mocr.py input-dataset output-dataset") |
582 | 582 | print("\n2. SVG generation:") |
583 | 583 | print( |
584 | | - " uv run --with vllm==0.30.0 dots-mocr.py charts svg-output --prompt-mode svg --model rednote-hilab/dots.mocr-svg" |
| 584 | + " uv run --with vllm==0.30.0 dots-mocr.py charts svg-output --prompt-mode svg --model dots-studio/dots.mocr-svg" |
585 | 585 | ) |
586 | 586 | print("\n3. Web screen parsing:") |
587 | 587 | print(" uv run --with vllm==0.30.0 dots-mocr.py screenshots parsed --prompt-mode web-parsing") |
@@ -614,15 +614,15 @@ def update_inference_info(example): |
614 | 614 |
|
615 | 615 | SVG Code Generation: |
616 | 616 | Use --prompt-mode svg for SVG output. For best results, combine with |
617 | | - --model rednote-hilab/dots.mocr-svg (the SVG-optimized variant). |
| 617 | + --model dots-studio/dots.mocr-svg (the SVG-optimized variant). |
618 | 618 | SVG mode automatically uses temperature=0.9, top_p=1.0 unless overridden. |
619 | 619 |
|
620 | 620 | Examples: |
621 | 621 | # Basic text OCR (default) |
622 | 622 | uv run --with vllm==0.30.0 dots-mocr.py my-docs analyzed-docs |
623 | 623 |
|
624 | 624 | # SVG generation with optimized variant |
625 | | - uv run --with vllm==0.30.0 dots-mocr.py charts svg-out --prompt-mode svg --model rednote-hilab/dots.mocr-svg |
| 625 | + uv run --with vllm==0.30.0 dots-mocr.py charts svg-out --prompt-mode svg --model dots-studio/dots.mocr-svg |
626 | 626 |
|
627 | 627 | # Web screen parsing |
628 | 628 | uv run --with vllm==0.30.0 dots-mocr.py screenshots parsed --prompt-mode web-parsing |
@@ -650,8 +650,8 @@ def update_inference_info(example): |
650 | 650 | ) |
651 | 651 | parser.add_argument( |
652 | 652 | "--model", |
653 | | - default="rednote-hilab/dots.mocr", |
654 | | - help="Model to use (default: rednote-hilab/dots.mocr, or rednote-hilab/dots.mocr-svg for SVG)", |
| 653 | + default="dots-studio/dots.mocr", |
| 654 | + help="Model to use (default: dots-studio/dots.mocr, or dots-studio/dots.mocr-svg for SVG)", |
655 | 655 | ) |
656 | 656 | parser.add_argument( |
657 | 657 | "--max-model-len", |
|
0 commit comments