Commit History
15 days ago
-
perf(chain): LRU + on-disk Qwen cond cache; feat(upsample): face_pass auto/on/off
Sandpies- 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.0ab3992
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- 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 (…16fe428
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
Sandpies94796f2
22 days ago
-
3.5.0
Sandpies- 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.c072809
-
Upsampler: sparse attention by default; sol-VAE recommended
Sandpies- 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.3745d16 -
Upsampler defaults: stepped joins and redraw_start 0.6 everywhere
SandpiesThe 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.a30147f -
Upsampler nodes: redraw_steps, stepped default, fewer widgets
Sandpies- 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.ae36e79 -
Video Frames: duration in seconds, snapped to H3 lengths
Sandpiesduration_seconds replaces max_frames (same slot): nobody should have to work out frames. snap_to_h3 (on) rounds to the nearest length H3 uses natively (17n + 5: 30 s at 24 fps = 719, 5 s = 124), so nothing is padded; the log reports frames and seconds actually taken.fe6a58a -
Upsampler: chunk_join=stepped replaces continue; fix pin-strength shadowing
Sandpieschunk_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.9529ccd -
H3 Video Upsampler: redraw_start (Regen2K grid from less noise)
SandpiesRebuilds 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.437f9ba -
Draft: tile_context global pass -- tiles follow a whole-frame pass
Sandpiestile_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.b834474 -
Upsampler: tile_tokens 0 learns the machine's memory, run by run
Sandpiestile_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.36dad6b -
Upsampler: chunking/tiling switches, structure lock anchored to the source
Sandpies- 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).676b10d -
Upsampler: sparse attention, chunk continuation, whole-clip mode
SandpiesNew 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).1870f03 -
Video Frames (lean): Get Video Components at half the peak RAM
SandpiesA drop-in for Get Video Components after Load Video: the same images / audio / fps plus frame_count and the VIDEO. start_seconds, max_frames, frame_rate (24 fps nearest-frame re-time) and resize (megapixels or long edge, never enlarging) are applied while decoding, and the IMAGE is filled once from 8-bit frames, each batch freed as it is copied. On a 600-frame 640x360 clip, peak RAM was 1.08x the output against 2.01x for core-style decode-to-list-then-stack. Replaces Get Video Components in the IMAGE upsampler workflow (same first three output slots).4ddc377 -
H3 Video Upsampler: fps input keeps lip sync off 24 fps, lock_sigma widget
SandpiesH3 places every frame 1/24 s apart, so a 48 fps clip's soundtrack sat under the wrong frames (half speed, then silence) and the re-draw pulled mouths off sync. New optional fps input (wired from Get Video Components in the workflow) and off_24_audio: retime (default) stretches what the re-draw hears by fps/24, silence conditions on silence, as_is is the old behaviour. A warning is logged whenever fps is not 24; the output soundtrack is untouched. Also exposes lock_sigma on the standalone node (was only on HTC Upsample Settings).d3c359d -
upsampler: structure_lock against invented detail, conditioning input on H3 Video Upsampler
SandpiesRegen2K re-draws each chunk and tile from sigma 0.8 with zeroed-out conditioning, so it can re-imagine faces, hands and line work, and two chunks re-imagining one overlap get crossfaded into each other. - structure_lock (0..1, default 0 = unchanged): a post-CFG hook moves each step's x0 below lock_sigma latent cells (default 2) onto the 3D-upscaled source, per tile, leaving the finer band to the re-draw. On the standalone node and HTC Upsample Settings (structure_lock, lock_sigma). - H3 Video Upsampler: optional conditioning input (text only; refs, keyframes and noise-aug dropped, as regen2k_cond=hop_text). - _highpass_detail_merge now shares _blur_hw (output unchanged).5a0d5e8
-
upsample: default denoise=0.8, regen2k_cond=hop_text, and enable on stock workflows
Sandpies0dcf316 -
upsampler: default Regen2K LoRA to open_h3_regenerate_2k_r256pp_bf16
Sandpies417e15c -
upsampler: ship start_08 as REGEN2K_SIGMAS, remove regen2k_preset, fix tail-stub chunks
Sandpiesbf38412 -
upsampler: add start_08 preset, keep Regen2K chunks unpinned, strip hop LoRAs on fallback
Sandpies8ccaf48
-
upsampler: add regen2k_preset (realistic / stylized) to HandTieClips and H3VideoUpsampler
Sandpies00400bb -
upsampler: default Regen2K noise to per_chunk and expose regen2k_seed / redraw_seed
Sandpies68af816 -
upsampler: run Regen2K natively, make upsample_redraw LoRA selector, drop standalone prompt/CLIP
Sandpiesc6652d9 -
video_upsampler: add redraw=regen2k mode with zeroed-out conditioning and sync standalone pack
Sandpies815a695
-
3.1.1: Starter and Upsample Video save with HTC Save Video, load the official DiT; Starter on euler/simple
Sandpiese167173 -
3.1.0: hand_tie music videos, HTC Save Video, STANDARD writer, dialogue_lock
Sandpies- hand_tie takes master_audio_file: each hop locks its slice of the song, the previs carries the song at its join windows only. Proven on a 12-hop 2:51 one-take MV (lip sync held across all 11 joins); added as a demo video. - hand_tie: 15 s hops go two to a previs so every hop keeps its closing window. - hand_tie dialogue and join fixes: single-quoted lines read as lines, the previs shows where each hop lands, no negations in previs moments, planned [Shot N] cuts no longer retaken, automatic hop retake off. - HTC Save Video (long-form): streaming save with per-pair RTX frame generation and NVENC constant quality. - HTC Upsample Settings node; chain upsample back on the original MMH3 recipe; upsample LoRA retired (hidden and ignored). - STANDARD tab: one standard MiniMax H3 prompt (T2VA / Ref2VA), planned then written, following the vendored minimax-h3 prompting skill. - dialogue_lock + dialogue_audio_file (experimental, motion_context; a logged no-op under hand_tie). - …8c5902e
-
Video Upsampler node runs the chain's re-draw; standalone pack 0.2.0
SandpiesHTCVideoUpsampler drops steps/start_sigma/tile_overlap and calls upsample() exactly as upsample_chain does (2 steps on the denoise schedule, 192 px overlap, no detail merge, AdaLN port on any model). check_video_upsampler pins the node to the chain's values. Pack rebuilt and published as 0.2.0.3f935ab
-
H3 Video Upsampler node, upsample tile budget; split_finish_aug removed
Sandpies +1: Claude Opus 5.5 (1M context)HTCVideoUpsampler ("H3 Video Upsampler (finished clip)"): the chain's upsampler as one standalone node for a finished clip. Frames (+ optional soundtrack and audio VAE) in; it fits them to 32 px, pads to the next 17g+5 length, encodes, conditions on `prompt` (default: the h3upscale caption) as Ref2VA with no refs, runs tiled_upsampler.upsample -- an h3upscale guide LoRA detected from its header gets its guide, as on the chain -- decodes and trims. The soundtrack comes back untouched. Example: workflows/ HandTieClips_Upsample_Video.json (plain UNETLoader as the model), built by tools/build_video_upsample_workflow.py. The tile budget is now a switch: `budget` threaded through upsample_chain / upsample / redraw_chunk / tile_grid, defaulting to the recipe's 70000 so the MMH3 identity holds. The node exposes it as tile_tokens; the chain as upsample_tile_tokens, the last widget. Lower = more, smaller tiles, less VRAM. Delivery only, in no hop key. split_finish_aug is removed: at 0.85 the l…458f618