Skip to content

idea: H3 Regenerate 2K IC - draft as its own Ref2VA reference video, 3 steps to 2560x1440, frozen audio (WanGP) #1573

Open

Description

@dkackman

Source. deepbeepmeep/WanGP (read at f4cfc12, v20, 2026-11-17). Its licence is the WanGP Community License 2.0, so this is concepts only: no code is taken. Upstream sources and their own licences are named below; those govern anything we would load.

What it is. Open-H3 Regenerate 2K IC (Efficient-Large-Model/Open-H3-Regenerate-2K-IC, released around 2026-11-09; reference CLI in NVlabs/Sana, branch sol-engine; licence not stated, weights sit on the H3 Ref2VA base). It is a successor to the non-IC refiner LoRA we evaluated and built a faithful-regenerate arm for under #1065 / #1081 / #1082. WanGP reports better identity preservation and fewer invented details than the non-IC release, keeping identity, lip sync and composition, finishing at up to 2560x1440 in 3 extra steps.

How the draft conditions the second pass (from WanGP's pipeline, described in prose):

  1. Phase 1 renders a draft at half the target size (8 steps on Ref2VA with an accelerator LoRA, or 6 on HyperFlow Flash).
  2. The raw phase-1 video latent goes through a learned 3D latent upscaler (the LBH-123-AI architecture, which dw/tasks/h3_latent_upscale.py already runs) to target size, then is mixed with seed noise at the first phase-2 sigma.
  3. Phase-2 sigmas are 0.834942, 0.696852, 0.468753, 0.
  4. The draft latent, at its own half-size resolution, becomes the only Ref2VA reference video; its decoded frames are shown to the text encoder as <Video 1>, and the prompt becomes a fixed task text ("Enhance <Video 1> into a high-quality version of the same video. Preserve the scene, objects, camera motion, timing, and composition...") followed by "Scene description:" and the original prompt. All phase-1 image/video/audio references are dropped; start/end keyframes are rebuilt at target size. With tiling, each tile gets the draft crop under it plus its offset.
  5. Phase-2 LoRAs: the IC LoRA (WanGP ships a 6.2 GB bf16 repack; the upstream fp32 is 12.5 GB) and the LMS sharpness LoRA (idea: trial Alissonerdx H3 LoRAs + LMS sharpness latent upscaler (aligned-guide LoRAs blocked on #611) #612), both off in phase 1 and on in phase 2. Euler, CFG 1.
  6. Soundtrack kept by freezing the audio schedule (all-zero audio sigmas): the phase-1 audio latent is clean conditioning, never re-noised, and is what gets decoded. If our pipeline can't freeze audio, remuxing the phase-1 audio is the fallback.

Why it may fit. Every piece is something dw already runs: Ref2VA with a reference video, the latent upscaler, refine sigmas, two-phase LoRA scales, held audio. It is composition plus one LoRA download.

Open questions for evaluation. Does diffusers' Ref2VA accept a reference video at a different resolution from the output? Does it hold faces better than #1065's arm on our own chains (A/B on lem)? Host RAM and VRAM at 2560x1440 tiled on a 24 GB card.

Ask. Owner lead: evaluate whether this is worth a plan, and either write one (with probes and cost) or close it with the reason. Found in the 2026-11-22 WanGP review; the earlier pass (#985) covered only v18.21's H3 handler.

(recorded by claude-opus-5-5 via anthropic in Don's session)

Activity

  1. added
    enhancementNew feature or request
    ideaAn idea for the researcher agent to assess
    featureWork bigger than a fix: designed with Don, built in stages (harnest R11)
    owner:leadFeature lead's turn (harnest R11)
    on Nov 22, 2026
  2. dkackman commented on Nov 22, 2026

    @dkackman
    OwnerAuthor

    Lead agent claude-opus-5-5 via anthropic. Read-only sweep at develop fc893f8.

    Verdict: build smaller. One probe stage, no engine change

    Ship a trial catalog entry for the IC LoRA and run the A/B on lem that #1065's arm lost. Tiled 2560x1440 is deferred. It needs new engine behaviour (references on a refine_tiles step, and a per-tile reference crop), and it only becomes worth that if the probe shows the IC LoRA keeps faces better than the no-LoRA refine.

    Demand evidence

    Sweep: what the feature touches

    Already works, with no engine change:

    • A full-frame ref2va refine is not refused anywhere:
      • CORE_DENOISE_SEQUENCES includes ref2va (dw/pipeline_processors/h3_rules.py:46).
      • The hold/refine/release blocks go into all three sequences (h3_hold.py:14-31, :126-169).
      • The refine re-noises only the rows after the conditioning rows (h3_hold_steps.py:475).
    • The recipe's sigmas [0.834942, 0.696852, 0.468753, 0] pass _sigma_problems (h3_rules.py:121-173) at refine_strength 0.834942 and steps 4. #1065 stage B: refine_sigmas on H3 refine steps, plus the faithful regenerate arm #1082 shipped this.
    • "Frozen audio" is hold_audio. The phase-1 audio latent is held clean and decoded, and a refine requires it (h3_rules.py:97). The remux fallback isn't needed.
    • The draft as the reference works through {"reference_type": …VideoReference, "from_previous_result": "<draft>"} (dw/arguments.py:505-527).
    • The 2x latent upscale is dw/tasks/h3_latent_upscale.py. Noising at the first sigma is the refine block's job.
    • The fixed "Enhance <Video 1> …" text is plain prompt text: diffusers prepends the <Video 1>: block itself (diffusers/modular_pipelines/minimax_h3/encoders.py:544-612). The reference must carry no audio, or the label becomes <Audio 1> first.

    Corrections to the proposal:

    • "The draft at its own half-size resolution" is not what diffusers does. _normalize_video_condition (before_encoder.py:277-344) LANCZOS-resizes every reference onto a canvas with a ~768 short edge. The model card's own draft is 1344x768, so for the 2K target this is near-identity. A 960x544 draft for a 1080p target is upscaled ~1.4x before encoding. That is harmless, but the reference never sits at the draft's own size.
    • Two transformers, so two steps. Ref2VA runs on transformer_ref (modular_blocks_minimax_h3.py:428-494). The draft (t2va/fl2va) and the regenerate (ref2va) are separate steps with separate LoRA sets, and the IC LoRA loads on ref2va only.
    • The LMS LoRA is rejected in our catalog (loras/minimax-h3/lms.json, workflow: null, blocked on idea (parked): H3 latent-space chunk continuation - blocked on multi-frame keyframes in diffusers #611). See Q4.
    • Licence. Upstream is Efficient-Large-Model/Open-H3-Regenerate-2K-IC @ 54a7104b204fb46486cf85c2f600942118186d57, ungated, licence minimax-h3-community. That is the H3 base's own licence, which dw already runs under, so it raises no new trust question. The file is lora/open_h3_regenerate_2k_ic_lora.safetensors (fp32, rank 384, ~12.5 GB). WanGP's 6.2 GB bf16 repack sits under WanGP's licence, so we don't use it.
    • VRAM. The card gives no VRAM figure and shards the transformer over 1–8 GPUs. A ref2va regenerate carries the reference's rows as well as the target's, so at 1080p full-frame its sequence is about 1.5x the idea: H3 refiner LoRA (open_regenerate_2k_r128) as an alternative to the low-sigma refine pass #1065 refine's, which already peaked at 23.5 GB. Full-frame 2560x1440 on 24 GB is out (idea: H3 refiner LoRA (open_regenerate_2k_r128) as an alternative to the low-sigma refine pass #1065).

    Breaks (needs engine change), tiled only. Deferred, not in this plan:

    • TILE_CONFLICTS lists references (h3_rules.py:268-277, refused at :382-397). That breaks a tiled IC pass, which needs a reference on a refine_tiles step. The tests that pin it are tests/test_h3_refine.py and tests/test_h3_rules.py.
    • h3_tiles.py:252-300 gives every tile the same arguments; only latents and the refine noise are cropped (:285-286). The recipe's "draft crop under each tile plus its offset" needs per-tile reference construction, and the 768p re-canvas would rescale each crop again.

    Catalog and docs consumers (stage A):

    • A new loras/minimax-h3/open-h3-regenerate-2k-ic.json with workflow: ["ref2va"]. The enum allows it (dw/lora_catalog_schema.json:15-23). A trial entry on the wrong partition only warns (dw/adapter_compatibility.py:207-234).
    • loras/minimax-h3/open-h3-regenerate-2k.json: its use_when is stale (it says the sigmas wait on #1065 stage B: refine_sigmas on H3 refine steps, plus the faithful regenerate arm #1082, which shipped). Correct it, and say how it differs from the IC entry.
    • The catalog-count tests: tests/test_server_loras.py, tests/test_catalog_structure.py, tests/test_plugin_skills.py, tests/test_plugin_intents.py.
    • docs/WORKFLOW_GUIDE.md › Explicit refine sigmas gains the IC recipe as a second example. The skill's "Past 768p" row (plugins/dw/skills/minimax-h3/references/quality-and-speed.md:168-184) changes only if the probe wins, in a follow-up.

    Problem and non-goals

    Problem. Find out whether the IC regenerate LoRA keeps identity, lip sync and composition through a draft-to-final regenerate on our 24 GB cards.

    Non-goals:

    • tiled 2560x1440;
    • a template or a skill row (both wait on the probe winning);
    • LMS in phase 2;
    • HyperFlow Flash drafts;
    • WanGP's bf16 repack.

    Stage A: IC LoRA trial entry and the A/B probe (server, catalog + docs; lem)

    Builds:

    1. The trial entry minimax-h3/open-h3-regenerate-2k-ic:

      • pinned revision 54a7104b…, file lora/open_h3_regenerate_2k_ic_lora.safetensors, licence minimax-h3-community, workflow: ["ref2va"];
      • a description of the recipe: draft as the only video reference with no audio, the fixed task prompt, sigmas [0.834942, 0.696852, 0.468753, 0], CFG 1, hold_audio.

      The build first checks that the LoRA's keys load on transformer_ref. Unmatched keys are recorded, and if nothing matches the stage stops and records "not loadable".

    2. The stale use_when fix on the non-IC entry.

    3. The guide example.

    4. The probes, as scratch workflows in qa-h3-regen-2k. There is no template. Each probe is draft → h3_latent_upscale → ref2va regenerate with the IC LoRA, using the recipe above:

    Unit tests and docs: catalog-count updates; a schema-valid entry with a pinned 40-hex revision; the guide paragraph; the proposal doc docs/proposals/h3-regenerate-2k-ic.md.

    Deploy: server (catalog). The probes run on lem.

    Estimate: about $4–6 of session, 12.5 GB of disk, about 1–1.5 h of GPU.

    Acceptance intent (over MCP):

    • list_loras(model="MiniMaxAI/MiniMax-H3") and status="trial" both list minimax-h3/open-h3-regenerate-2k-ic:

      • trial, workflow [ref2va], the pinned 40-hex revision, licence minimax-h3-community;
      • its description names the recipe.

      The workflow="t2va" listing doesn't show it.

    • The non-IC entry's use_when no longer says the sigmas wait on #1065 stage B: refine_sigmas on H3 refine steps, plus the faithful regenerate arm #1082.

    • validate_workflow with a ref2va regenerate step carrying the IC entry, a from_previous_result video reference, latents, hold_audio, refine_strength 0.834942, steps 4 and the recipe sigmas returns valid with no partition warning.

    • The same LoRA on a t2va step validates with a warning that names the entry, says it is trial, and names the transformer/transformer_ref mismatch.

    • A reference that carries audio is not the tester's to refuse; it's in the doc as a rule.

    • Every job id in the probe table exists in qa-h3-regen-2k:

      • each regenerate step's realized arguments show refine passes 3, the recipe sigmas, hold_audio and the IC LoRA on ref2va;
      • each output's audio is identical to its draft's;
      • the tester can reproduce any one score in the table with compare_outputs at the stated timestamps and crop.
    • If P1 OOMed, its failed job carries the OOM reason.

    Order and dependencies

    There is one stage. Nothing blocks it. The tiled follow-up, if Q3 brings it, gets its own design.

    Risks

    • Key mismatch on transformer_ref: the entry is recorded as not loadable and the stage ends early. That is cheap.
    • Off-distribution at 768p: the LoRA was trained for 2K, so P2 may under-sell it. P1 is the fair arm if it fits.
    • The 0.999 pinning of conditioning rows in diffusers may differ from SANA's reference CLI. It would show as drift in the faithfulness score.
    • Disk: about 12.5 GB more on lem.

    Questions

    • Q1 [spend] Download the 12.5 GB fp32 IC LoRA to lem and spend about 1–1.5 h of GPU on P1, P2 and the baselines. Default: yes. If otherwise: the feature is deferred until a bf16 upstream file exists or demand above 768p appears.
    • Q2 [taste] The verdict is a face and identity judgement. Default: the stage posts side-by-side frames and the scores, and you rule whether the IC arm wins. If otherwise: the PSNR against idea: H3 refiner LoRA (open_regenerate_2k_r128) as an alternative to the low-sigma refine pass #1065's (a) decides alone.
    • Q3 [scope] Tiled 2560x1440 (lifting references from TILE_CONFLICTS, plus per-tile reference crops) is deferred. Default: I file it as a new feature only if the probe wins Q2. If otherwise: it is planned now as stage B, blocked on A.
    • Q4 [none] Leave LMS out of the arms, since its entry is rejected under idea (parked): H3 latent-space chunk continuation - blocked on multi-frame keyframes in diffusers #611. Default: omit it. If otherwise: stage A adds an LMS arm and a ref2va verdict for lms.json.

    Reply in comments and hand back with owner:lead. Approve by adding status:plan-approved yourself. No agent may set it.

    Decision for Don: run a one-stage probe of the IC regenerate LoRA (12.5 GB download, ~1–1.5 h lem GPU) and defer tiled 2K.
    Kind: spend Default: stage A ships the trial entry and the A/B, and you judge the faces.
    If otherwise: no download, and the issue is parked until a smaller file or demand above 768p appears. Reversible: yes

  3. added
    owner:donParked for human decision
    status:plan-reviewA feature plan is posted and waiting for Don
    and removed
    owner:leadFeature lead's turn (harnest R11)
    on Nov 22, 2026
  4. dkackman commented on Nov 22, 2026

    @dkackman
    OwnerAuthor

    Ruling (Don, 2026-11-22): defer. Parked. Nobody has asked for output above 768p: productions run at 1344x768, and no field report mentions softness. It also costs a 12.5 GB download and 1–1.5 h of lem against the announcement queue. Reopen on a field report asking for output above 768p, or on a request from Don once the loops are drained.

    — recorded from Don's Claude Code session (claude-opus-5-5 via anthropic)

  5. added and removed
    status:plan-reviewA feature plan is posted and waiting for Don
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:cudaenhancementNew feature or requestfeatureWork bigger than a fix: designed with Don, built in stages (harnest R11)ideaAn idea for the researcher agent to assessowner:donParked for human decisionparkedParked

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions