- The ref2va conditioning cache is now least-recently-used (a hit moves to the
back) and holds 4. A copy on disk (cond_store.py, <user>/h3_ref_chain_hops/
qwen_cond, 4 GB LRU) survives restarts: keyed by content only (prompt,
reference bytes, text-encoder/VAE fingerprints, core node file hash), restored
bit for bit, best effort (unstorable or unreadable = a miss). Off switch:
cond_store.DISK_COND_CACHE. Log: "ref2va cond disk cache hit".
- Upsampler: slice_audio pads past the soundtrack's end and warns on a fps /
audio length mismatch (port of H3-Video-Upsampler PR #6 by plz12345).
- face_pass (auto/on/off, appended last) on both upsampler nodes and
HTCUpsampleSettings (issue #5, Airsiren): auto = as before; on also runs the
close-ups under ic, small faces only (< ~220 px, at most 2, smallest first),
always drawn by Regen2K at its own strength on a clean DiT; off skips them.
The IMAGE node now honours face_pass.FACE_PASS like the file node.
20 days ago
upsample: LBH-123-AI's 2D latent upscaler (2d_conv_v1) with a sharpness widget (1-6); the 3D file loads under its new HF name and the old one
Sandpies
16fe428
- tiled_upsampler: LatentUpscaler2D, bit-identical to LBH-123-AI's reference node on the real weights (float64 and fp32, tiers 1/3/6, 2x / 1.5x / per-axis, 40-frame pieces). Picked from the same upscaler dropdown, recognised from the file's keys; it runs over the whole film in one call (its own 32-frame pieces with 24 frames of context) and the chunks are cut from it. The 3D path is unchanged and never sees a tier.
- 3D rename: minimax_h3_latent_upscaler_3d_conv_v1_bf16 (HF, 2026-11-10) is the default; the old 3D name resolves to whichever is installed, and both stay in the dropdown so saved workflows validate. A missing file names both downloads.
- sharpness appended last on HTC Video Upsampler / To File / Tiled Upsampler; upsample_sharpness appended last on the chain (after upsample_steps), used by the upsample, the upscale 2nd pass and the small-face pass, and shown in the RUN panel. Tier 1 with no settings node changes nothing.
- LATENT_STD[19] typo fixed to the reference's value (…
21 days ago
docs: upsample method (regen2k / ic) and upsample steps in README, demo and workflow notes; realism boost / audio refine gone (upscale 2nd pass, 2-3 steps, own LoRAs); first pass 6-8 steps so audio resolves (4 with a 4-step turbo); old KJNodes falls back to dense attention
Sandpies
94796f2
22 days ago
3.5.0
Sandpies
c072809
- New: upsample method ic (in-context re-draw after NVlabs Open-H3-Regenerate-2K-IC) on the chain node and both upsampler nodes; runs without the text encoder (shipped task encoding); checks the model and files before any work.
- New: H3 Token LoRA (HTC): LoRAs per kind of token (video / audio / reference / prompt), slots A/B/C + Add LoRA, per-slot blocks and refiner, add_mode.
- New: upsample_steps (3 recipe / 2 faster) on the chain node; redraw_steps applies to ic.
- Changed: Realism Boost is now Upscale 2nd Pass; SWAP uses Viggle Remake.
- WRITE: continuity sheet, adult staging rules; SWAP sends negations back for a rewrite.
- Workflows: every loaded file linked; tooltips rewritten.
Upsampler: sparse attention by default; sol-VAE recommended
Sandpies
3745d16
- attention defaults to sparse on the standalone nodes, HTC Upsample
Settings and the chain (a whole 6 s run: 85 s -> 61 s, SSIM 0.988
against dense). A ComfyUI without sparse attention runs dense.
- Notes, README and the VAE tooltip recommend the sol-VAE for speed
(about 20% faster); the default VAE is unchanged. The no-decoder
error says the sol-VAE needs a ComfyUI from late October 2026.
- The upsample log only names structure lock / tile context when used.
Upsampler defaults: stepped joins and redraw_start 0.6 everywhere
Sandpies
a30147f
The chain without a settings node, HTC Upsample Settings and the
standalone nodes now default to chunk_join=stepped and redraw_start 0.6
(Regen2K grid [0.6, 0.48, 0.3, 0]), both proven on a GPU. 0.8 stays one
setting away for the original recipe. Shipped workflows, notes and docs
updated.
- redraw_steps dropdown (3 recipe / 2) on the standalone nodes;
redraw_start on HTC Upsample Settings (works with its steps).
- chunk_join defaults to stepped on the standalone nodes and the
settings node.
- Removed structure_lock, lock_sigma, lock_anchor, tile_context and
off_24_audio from the nodes (always retime); the engine keeps them
at their off defaults.
- Plain-language tooltips, workflow notes and README; shipped
workflows remapped to the new widget list.
chunk_join=stepped: the chunks are re-drawn together, as spatial tiles
always were. The film starts as the upscaled chunks crossfaded into one
latent; each sigma step runs every chunk on its slice of that one state
(step 1 with its slice of one film-wide noise field) and merges the
results, each chunk weighted down linearly across the steps it shares, so
neighbours converge on one face and a chunk's off-tone last step counts
least. Every chunk is still drawn from the source: nothing accumulates.
Whole-frame chunks only; tiled or out-of-VRAM runs fall back to crossfade.
Removed chunk_join=continue: on a GPU it made a visible seam at the
hand-over (traced to a tone step at the held/free boundary) and did not
keep the face closer.
Fix: with the original (non-Regen2K) recipe and structure_lock > 0, chunk
2+ crashed -- the per-chunk lock anchor shadowed upsample()'s pin-strength
argument. Introduced on this branch; regression test added.
H3 Video Upsampler: redraw_start (Regen2K grid from less noise)
Sandpies
437f9ba
Rebuilds Regen2K's 3-step shift-6 grid from another starting noise
(regen2k_sigmas; 0.8 reproduces REGEN2K_SIGMAS exactly). A side-by-side
test put the face drift on the re-draw itself: denoise 0 matched the
source, and seed, LoRA strength and a text prompt did not move it.
Starting from less noise keeps faces closer to the source, at some cost
in sharpening. Last widget on both nodes so open graphs keep their values.
Draft: tile_context global pass -- tiles follow a whole-frame pass
Sandpies
b834474
tile_context="global pass" (default none; standalone nodes and HTC
Upsample Settings). When a chunk must be tiled, it is first re-drawn
whole-frame at the largest size that fits the budget (area-downscaled
latent, own noise, same sigmas, keyframes resized, structure_lock scaled
with it), brought back to the chunk grid, and the tiles hold their large
shapes to that result (structure_lock at full strength at lock_sigma).
A tile sees only its window, which is where invention comes from; the
layout now comes from a pass that saw all of it. Inside the OOM guard, so
an OOM retry shrinks both passes. Guided re-draws and chunks that fit
whole are untouched. Not yet measured on a GPU.
Upsampler: tile_tokens 0 learns the machine's memory, run by run
Sandpies
36dad6b
tile_tokens 0 = auto (new default on the standalone nodes; upsample_tile_
tokens 0 in HandTieClips, whose stock value stays 70000). The upsampler
starts from what this GPU learned last time (70000 the first time),
measures each chunk's activation memory (peak minus what stays resident:
ComfyUI's dynamic loading fills spare VRAM with weights, so the raw peak
says little) and stores where the next run starts in
user/htc_upsampler_memory.json: grown toward 85% of the card when there
was room (at most 2x a run), the budget that worked after an OOM and never
back near the failing value. Keyed by GPU, VRAM, attention mode and the
low-VRAM chunking. A fixed number behaves as before and teaches nothing.
The chain's pre-run chunk-count log plans with the same budget.
Upsampler: chunking/tiling switches, structure lock anchored to the source
Sandpies
676b10d
- chunking / tiling (both on by default, as before) replace split: each
ALLOWS a split when the clip does not fit tile_tokens. Time is cut before
space and never under 68 frames (Regen2K invents on short pieces); both
off = the whole clip in one whole-frame pass. Chunking off over 4x
tile_tokens chunks anyway (in HandTieClips a segment is usually the
film; the chain's chunk-count log follows). Tiling off never tiles: an
OOM is an error that says what to change.
- lock_anchor=source (default; only matters with structure_lock > 0):
structure_lock holds the large shapes to the clip's own latent enlarged
by plain interpolation instead of the 3D upscaler's output, so the
upscaler's own errors are pulled back too.
- Workflows validated against the node definitions; credit note for
DaSiWa-Nodes prompting the switches (no code copied).
New options on the standalone nodes and HTC Upsample Settings, defaults
unchanged:
- attention=sparse: ComfyUI's Model Sparse Attention (sol-attn) on every
re-draw step; dense on a ComfyUI without the node. Composes with KJ's
low-VRAM attention.
- chunk_join=continue: a chunk's shared frames are held to what the
previous chunk drew (per-frame sampler mask) and the rest is drawn after
them, instead of crossfading two independent re-draws. Whole-frame
chunks only; tiled chunks fall back to crossfade.
- split=whole clip: one pass, no chunks, no tiles; budget set to the
clip's sequence so an OOM retry goes straight to tiles.
Fixes: the 3D upscale's CPU fallback now applies to the failing chunk
only (it used to run every remaining chunk on the CPU in float32);
conditioning rows count against tile_tokens (_cond_extra_tokens was
unused).
H3 Video Upsampler (file to file): 24 fps on read, latent reuse, crops
Sandpies
46b0c70
- frame_rate: "24 (H3 native)" re-times the clip on read by nearest frame
(dropped above 24, repeated below), keeping the real duration so the
soundtrack syncs exactly; a 48 fps clip costs half the re-draw.
- reuse_encoded (on): the encoded clip is kept in ComfyUI's temp folder,
keyed to file content, trim, crop, rate and VAE; the next run on the
same clip skips reading and encoding (4 kept, cleared at startup).
- A cropped VIDEO is read a chunk at a time with core's crop rules
(matched against core on 20000 random crops) instead of whole.
Ideas from silveroxides' ComfyUI-UtilsCollection, written fresh with no
code copied, credited in THIRD_PARTY_NOTICES.md with their agreement.
H3 Video Upsampler (file to file): flat RAM at any clip length
Sandpies
667b03c
The IMAGE node is bounded by ComfyUI's IMAGE type: Get Video Components
decodes the whole clip to float32 (stacked from a list, so twice for a
moment) and the result comes back as another full tensor -- a minute at
48 fps is ~32 GB in and ~72 GB out at 2 MP. The re-draw only needs the
latent (~100 MB a minute).
H3 Video Upsampler (file to file) reads the VIDEO 102 frames at a time
and encodes as it goes (the H3 VAE encodes every 17 frames on their own,
so the latent is bit-identical to a whole-clip encode), re-draws exactly
as the IMAGE node, and decodes slice by slice into the save node's
streaming encoder. Frame rate and soundtrack come from the file. VIDEOs
that are not a plain file (components, list, crop) are decoded whole.
- video_upsampler: run() split into check_vae / redraw / decode;
decode_slices generator under decode_streamed (output unchanged).
- save_video: the encoder loop is now encode_stream(), fed any iterator
of frame batches; the node writes identical frames a…