Show DEV: An Open 20-Asset Prompt Planner & Validation Toolkit for MAGI-2 Video Generation
I wanted to be able to reopen a video job and see exactly which picture defined a character, which clip supplied a camera move, and when a sound was supposed to land. A prompt pasted into a browser only gave me part of that record. I settled on a small JSON job file that I can read in a diff and validate from a terminal before opening the generation interface. The problem A MAGI-2 omni-reference…
The Hugging Face Prompt Studio is a static browser planner that allows users to choose a preset, edit the timeline, add reference slots by modality, select audio categories, and export JSON. The planner can handle up to 20 references, split across ten images, five videos, and five audio clips. It also enforces a 20,000-character script budget. The JSON file serves as an interchange format for both the planner and validator.
The validator, written in Python and using the standard library, checks for malformed input, over-budget jobs, and reports nonzero exit statuses on failure. It verifies that the job object contains a script, that the script is not empty or longer than 20,000 characters, and that the number of references for each category does not exceed the defined limits.
The validator also ensures that the root and reference types are valid, checks for unknown categories, and confirms that duration values are numeric. Lastly, it ensures that filenames are not blank.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to