Datasets:
|
Download docs/20-quality.md from tkhjeff/BlueMorpho: direct link, hf CLI and curl.
- Browser
- Download file 10.2 kB
-
https://huggingface.co/datasets/tkhjeff/BlueMorpho/resolve/main/docs/20-quality.md
- Command line
-
hf download hf://datasets/tkhjeff/BlueMorpho/docs/20-quality.md
-
curl -L -o 20-quality.md https://huggingface.co/datasets/tkhjeff/BlueMorpho/resolve/main/docs/20-quality.md
10.2 kB
| # 20 - Quality: what was wrong, and what the sources actually say | |
| A human watched the first film and said the quality of the generated man was poor. This document is the | |
| correction, written from **the model's own documentation** rather than from taste. | |
| ## The diagnosis: we did not run the model the way its makers run it | |
| | what we did | what the model card says | consequence | | |
| |---|---|---| | |
| | rendered **480x832** | *"the 720P resolution of the Text-Image-to-Video task is `1280*704` or `704*1280`"* | under **half the pixels**, and not a shape the model was trained on. This is the single largest cause. | | |
| | **20 steps** | the card's own examples do not run at 20; detail arrives late in sampling | soft textures, weak faces | | |
| | **no negative prompt** | the official ComfyUI workflow has a *positive* **and a negative** prompt field | overexposure, blur, static frames - exactly the failures a viewer notices first | | |
| | a **12-word prompt** | the card's example prompt is ~90 words covering style, subject, expression, wardrobe, background, posture, **and the shot type** | the model had almost nothing to aim at | | |
| | the cast keyframe was a **frame plucked from a 480x832 video** | (see the dance workflow below) | the character was born at low resolution and every shot inherited it | | |
| None of that was a licence problem or a hardware limit. The card is 97 GB of GPU sitting idle while the | |
| model was asked to work at a quarter of its design. | |
| ## The fix, applied in `blue_morpho/camera.py` | |
| ```python | |
| DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_FRAMES, DEFAULT_FPS = 1280, 704, 121, 24 | |
| NATIVE_SIZES = ((1280, 704), (704, 1280)) # the only two resolutions the card names | |
| DEFAULT_STEPS = 40 | |
| NEGATIVE_PROMPT = "oversaturated, overexposed, static, blurred details, subtitles, watermark, ..." | |
| ``` | |
| `official_size()` now **warns on every render** that is not one of the two named resolutions, so this | |
| class of mistake cannot be made silently again. | |
| ### Prompt structure, taken from the card's own example | |
| The card's cat prompt is: *style prefix* -> *subject* -> *expression* -> *background* -> *posture* -> | |
| *aesthetic judgement* -> **shot type and lighting**. Ours is now built the same way: | |
| > Cinematic night photography style, a weathered lighthouse keeper in his fifties stands at the lantern | |
| > room window... his eyes are narrowed against the glare... he wears a heavy worn olive oilskin coat... | |
| > **A close-up medium shot frames him from the chest up, lit from below by the lantern**, deep blue | |
| > shadows and a single warm key light on his face. | |
| 147 words instead of 12. The card labels its training data for *lighting, composition, contrast and | |
| colour tone*, so naming the shot type and the light is using the model as designed, not flattering it. | |
| ## The technique we were missing: cast a still, then animate it | |
| The referenced tutorial (`youtube.com/watch?v=kUDShnrwYH0`, "I Created a DANCING AI Influencer") works | |
| **still image -> animated character**, not *text -> video -> pluck a frame*. That ordering is why its | |
| humans look good: the character is born as a high-resolution **photograph** and then moved. | |
| The open-weights path for that workflow already exists, and this house has now hired it correctly: | |
| | piece | engine | format | why | | |
| |---|---|---|---| | |
| | the performance | `Wan-AI/Wan2.2-Animate-14B-Diffusers` | **diffusers** (`model_index.json` present) | takes a **reference character** plus a **driving video** and animates it - the dance workflow, Apache-2.0 | | |
| | the face | `KwaiVGI/LivePortrait` | not diffusers | facial performance from one image; MIT | | |
| | the still | a text-to-image model at 1024+ | to be hired | the cast should be born as a still, not as a video frame | | |
| **And the format trap again (finding F7):** the repo I first hired, | |
| `Wan-AI/Wan2.2-Animate-14B`, has **no `model_index.json`** and cannot be loaded by | |
| `WanAnimatePipeline`. The repo that works is the one with the **`-Diffusers` suffix**. Two hires in one | |
| day failed on this exact distinction - the composer and the animator - which is why the hiring committee | |
| now checks *format*, not just licence and size. | |
| ## What has not changed | |
| * The **camera** is still a 5B model, not the 14B. A 5B at the correct resolution is a different film | |
| from a 5B at a quarter of it, but it is still a 5B. | |
| * **No music.** The composer seat is empty (F7). | |
| * **The senior critic still returns unreadable output**, so there is no second opinion on any of this. | |
| * The eyes' score is a *judgement*, not a measurement: it has never been calibrated against a human's. | |
| The human who called the quality poor is, so far, the most reliable judge this house has. | |
| --- | |
| ## The measured result (same character, same judge, same brief) | |
| | | before | after | | |
| |---|---|---| | |
| | resolution | 480x832 | **704x1280** (the card's own size) | | |
| | steps | 20 | **40** | | |
| | negative prompt | none | **yes** | | |
| | prompt | 12 words | **147 words, structured as the card's example** | | |
| | cast keyframe | a frame from a 480x832 video | a genuine **704x1280 still** | | |
| | render time | 24 s (cast) / 44 s (shot) | 199 s (cast) / 199 s (shot) | | |
| | **the eyes' hook score** | **7** | **7** | | |
| | **character consistency** | 9/10 | **10/10** | | |
| | **the eyes' flaws** | *"motion blur in the background, low resolution, overexposed light source"* | *"face partially obscured by shadow, underexposed outside the lantern's glow, the subject's gaze is not directed away from the camera"* | | |
| ### What that comparison actually says | |
| **The technical defects are gone.** Blur, low resolution and overexposure - the three things a viewer | |
| notices first - do not appear in the new critique at all. What is left is *directorial*: the face is too | |
| dark, and the man should be looking away. | |
| **And the score did not move.** Same 7/10, despite the machine defects being fixed. Two readings, and | |
| honesty requires holding both: | |
| 1. The **hook score measures promise, not pixels**. A close-up of a man in shadow is a 7 whatever the | |
| resolution, because the *shot* is not yet a hook. | |
| 2. Or the **score is too coarse to see the difference** - and this house has never calibrated it against | |
| a human. A judge that returns 7 for both a blurry mess and a clean frame is not measuring what we | |
| think it is. | |
| The second reading is the one that should worry us, and it has a fix that is now overdue: **score a set | |
| of shots with a human and against the machine, and see whether the machine's number tracks the human's | |
| opinion at all.** Until then, the human's judgement is the instrument, and the machine's score is a | |
| suggestion. | |
| ### The rule this produced | |
| **R29. Run a model the way its makers documented it.** Native resolution, their prompt structure, their | |
| negative prompt, their example's shot language - before blaming the model or the hardware. | |
| *Enforced by:* `camera.official_size()`, which warns on every render that is not one of the two | |
| resolutions the model card names. A silent quarter-resolution render is how a house spends a week | |
| calling a good model bad. | |
| ### The technique from the referenced tutorial | |
| `youtube.com/watch?v=kUDShnrwYH0` - *"I Created a DANCING AI Influencer"* (HitPaw Edimakor). Its | |
| transferable content is the **order of operations: cast a still portrait, then animate it.** Its humans | |
| look good because they were born as high-resolution photographs, not as frames from a video. | |
| ## What the ComfyUI tutorial implies (the "workflow era") | |
| `youtube.com/watch?v=rDQhJS-MP94` (源腾AI研究所) is a ComfyUI tutorial, and its framing is the point: | |
| **AI image-making has entered the era of the workflow.** The learning is not about a node - it is about | |
| where the ecosystem's knowledge now lives: | |
| * In the ComfyUI world, a technique ships as a **workflow file** - a JSON graph you load and run - not as | |
| prose. Every quality trick (ControlNet, IP-Adapter, LoRA, face restore, upscale, frame interpolation) | |
| exists as nodes, and the community shares *graphs*. | |
| * Every MCP server surveyed for this house (`joenorton/comfyui-mcp-server`, `comfy.org/mcp`, | |
| `artokun/comfyui-mcp`) drives **ComfyUI**, not diffusers. | |
| * This house currently hand-writes diffusers calls, which means **re-implementing what a node already | |
| does** - and the resolution/step/negative-prompt mistakes documented above are exactly the kind of | |
| thing a published workflow does not get wrong, because someone already tuned it. | |
| **The proposed change, not yet made:** adopt **ComfyUI as the renderer behind the Camera seat** - driven | |
| over the MCP bridge we already understand, with workflows stored in the repo as the house's plates | |
| recipes - while keeping diffusers for the seats that need in-process control (the eyes, casting, the | |
| shoot loop, scoring). ComfyUI buys the ecosystem; diffusers keeps the control. That is a Phase 2.6 | |
| roadmap item, and the trade-off is honest: one more service to run, one more thing that can be | |
| mis-versioned. | |
| --- | |
| ## The answer to the open question: the score is not blind | |
| This document left a worry open - *"the machine defect was fixed and the score did not move; either the | |
| score measures promise rather than pixels, or it is too coarse to see the difference"*. That question is | |
| now settled by measurement, because the senior critic finally worked (finding **F15**: it had been loaded | |
| into the wrong architecture since the day it was hired). | |
| On the house's first 704x1280 film, six shots, judged independently: | |
| | judge | verdict | | |
| |---|---| | |
| | on-set eyes (8B) | 6 of 6 kept, confidence 9-10 | | |
| | senior critic (30B, correctly loaded) | **6 of 6 same, confidence 10/10, mean 10.0** | | |
| | **calibration** | **agreement 1.0 within 1 point, mean gap 0.5 - "the student is a usable judge"** | | |
| So the cheap judge can be trusted at this task, and the earlier 7/10 that would not move was **not** a | |
| blind instrument: it was a *hook* score, and a technically clean shot of a man in shadow is still a 7 | |
| hook. The score was measuring the right thing and measuring it consistently. | |
| **What is still unmeasured:** agreement with a *human*. The machine judges agree with each other; the only | |
| human who has looked at this house's work called the first film poor and was right. Calibrating against | |
| that person - not against another model - is the remaining step, and it is the one that matters. | |