mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 08:19:32 +08:00
Without a vision model the pipeline has no layout review, so overlapping labels, lines through formulas and text cut off by the frame ship as-is. layout_probe.py replays the scene with Manim's dry_run (no frames drawn, a few seconds), snapshots every visible text and stroked VMobject after each play()/wait(), and reports in scene units: text overlapping text, strokes crossing text, and text or shapes past the (camera) frame edge. When visual review is off and output is video, the probe runs before each render. A failing layout is raised as a ManimRenderError, so the existing repair loop fixes it before any frame is drawn (MAX_LAYOUT_ROUNDS = 3); after that the scene renders as it stands, and the post-render review only records what is left. The probe fails open: a crash or timeout skips it. The English code-generator prompt gains layout rules and the Manim Community API names the renderer rejects; the repair prompt says how to fix layout findings.