Fine-tuning Meta SAM 3 for narrative-aware copyspace: fixing AI picture book typography
andrew_n_carr · x · 2026-09-05
Engineer andrewncarr shares a toy project that turns an episode of a kids' show into a picture book: it picks good moments, writes a short adaptation, and lays prose over the frames.
The writing side got decent quickly, but typography never did — every spread looked like a PowerPoint slide with a text block dropped onto a screenshot in whatever corner had the fewest pixels.
He frames the problem as narrative-aware copyspace: can a segmentation model propose regions that are narratively appropriate for captions or dialogue? The answer turned out to be yes. His process:
- Built a small dataset for this novel problem
- Fine-tuned Meta's SAM 3 on it
- Plugged the segmentation output into the layout pipeline
A reproducible example of adapting a foundation segmentation model to a niche layout task, transferable to other text-placement-aware image workflows.
More from coding & agent
- The underrated alpha: an AI agent that tracks local events and nudges you to attend — mimi10v3 · 2026-12-05
- Agent prod checklist: a practitioner's three controls to ship first, and what to skip — No-Conflict4823 · 2026-12-05
- Dev open-sources Cred after saying Anthropic 'shipped my startup' — agent access without sharing credentials — sull · 2026-12-05
- Microsoft paper: LLMs solving 97% of math still can't tell which answers are wrong — rohanpaul_ai · 2026-12-05
- Free Full AEO Course Drops: Winning Traffic in the Age of AI Search — jia_seed · 2026-12-05
- A personal agent's tidy-looking plan had its steps in the wrong order — the_crooked_badger · 2026-12-05