One-click character swap for videos: an open-source, local Higgsfield Genjutsu alternative built on ComfyUI and MiniMax H3, with FLUX.3 Klein relighting.
Use H3 soft as the default Fix colours preset
D3voz7627a55689a7
diff --git a/README.md b/README.mdindex 78f84fc..a2ca3cc 100644--- a/README.md+++ b/README.md@@ -92,7 +92,7 @@ A 6 s clip at 480p takes about 6–13 minutes on a 4060 Ti, most of it in H3 sam- **Steps**, **Base model** and **LoRAs** (under Advanced) default to the H3 pruned INT8 model with the DMAD speed LoRA at 6 steps. LoRAs apply in order; without a speed LoRA, use 20 steps or more. Check mask ignores them.- **Object swap:** name what SAM tracks in a word or two (`hair`, `jacket`, `poster`), or several separated by commas (`hair, top`) to change them together. Every match changes unless **Only the biggest one** is on (one of each thing). A picture of an outfit, hairstyle, product or place is copied onto it. For **Remove**, say what shows instead only when it is not obvious (`a plain wall`). Mask margin is smaller here (10, 20 or 40 px). Change keeps the outline of what it replaces: a tank top turned into a flannel shirt stays sleeveless.- **Fix faces:** drop the finished video and the photo the person was made from. **Match the photo** redraws the face from the photo: the closest likeness, but H3 makes up the expressions and mouth movements. **Follow the mouth** keeps the video's expressions and mouth movements, with a little less likeness. Only that person's face changes (matched by face identity); faces taller than a fifth of the frame are left alone, and stretches with only such faces are skipped. A 17 s video at 768p (4 chunks) took about 28 minutes on a 4060 Ti, including model loading. The video is read at 24 fps.-- **Fix colours:** drop the finished video. **Detail contrast** (-0.20 by default) softens crunchy fine detail; above 0 it sharpens instead. The **Tone mapper** starts from the **H3 zuanfilm** preset (Reinhard at 30% strength: lifted blacks, softer contrast and highlights, a little less saturation). The preset list is Orion's saved presets, read from ComfyUI; changing a value under Settings makes it Custom, and the values are sent with the job, so Orion's preset files are not changed. Save `H3 zuanfilm.json` in Orion's `presets/color_fx_dctl_tone_mapper` folder to have it in the list; without it the page uses its built-in copy. A 1.75 s 480p clip took 5 s. The video is read at 24 fps.+- **Fix colours:** drop the finished video. **Detail contrast** (-0.20 by default) softens crunchy fine detail; above 0 it sharpens instead. The **Tone mapper** starts from the **H3 soft** preset (Reinhard at 20% strength: softer contrast and highlights, blacks and colours kept). It is zuanfilm's H3 preset (also in the list) with less shadow lift and black floor, saturation 1.05 and 20% strength instead of 30%: zuanfilm's version washed out the blacks and dimmed whites by about 12% on H3 videos. The preset list is Orion's saved presets, read from ComfyUI; changing a value under Settings makes it Custom, and the values are sent with the job, so Orion's preset files are not changed. Save `H3 soft.json` in Orion's `presets/color_fx_dctl_tone_mapper` folder to have it in the list; without it the page uses its built-in copy. A 1.75 s 480p clip took 5 s. The video is read at 24 fps.- **Advanced mode:** give roles as `the drummer`, optionally with how they look after ` - ` (`the drummer - man in a cap`); the look only helps match people and never reaches H3. **One pass per person** gives each of two characters their own H3 pass with only their photo (about twice the time). Check mask is Simple-only for now.## How it worksdiff --git a/components/openjutsu.tsx b/components/openjutsu.tsxindex 1d14628..e60e5b5 100644--- a/components/openjutsu.tsx+++ b/components/openjutsu.tsx@@ -250,7 +250,7 @@ export function Openjutsu() {const faceFix = mode === "post" && post === "face";const colorFix = mode === "post" && post === "color";- // Orion's saved presets, with zuanfilm's H3 preset first when Orion does not have it.+ // Orion's saved presets, with the default preset first when Orion does not have it.const presetOptions: TonePreset[] = presets.some((p) => p.name === DEFAULT_PRESET) ? presets : [{ name: DEFAULT_PRESET, settings: DEFAULT_TONE }, ...presets];function choosePreset(name: string) {@@ -498,7 +498,7 @@ export function Openjutsu() {<input type="range" min={DETAIL.min} max={DETAIL.max} step={0.01} value={detail} onChange={(event) => setDetail(Number(event.target.value))} /></label>}<label className="setting toggle">- <span>Tone mapper <small>Orion4D DCTL Tone Mapper, a colour grade over every frame. {DEFAULT_PRESET} lifts the blacks, softens contrast and highlights and takes a little saturation out.</small></span>+ <span>Tone mapper <small>Orion4D DCTL Tone Mapper, a colour grade over every frame. {DEFAULT_PRESET} softens contrast and highlights and keeps the blacks deep.</small></span><input type="checkbox" checked={toneOn} onChange={(event) => setToneOn(event.target.checked)} /><i aria-hidden /></label>@@ -615,7 +615,7 @@ export function Openjutsu() {/></label>))}- <p className="hint">Strength mixes the grade with the original: 0.3 is 30% of it. Pick the preset again to undo your changes.</p>+ <p className="hint">Strength mixes the grade with the original: 0.2 is 20% of it. Pick the preset again to undo your changes.</p></section>) : (<section className="panel settings">diff --git a/lib/color.ts b/lib/color.tsindex aaf1e1b..45d8106 100644--- a/lib/color.ts+++ b/lib/color.ts@@ -1,6 +1,6 @@// Fix colours: post-processing for a finished video. Image Detail Contrast (F:\AI\comfyui-image-detail-contrast) softens-// H3's crunchy fine detail, then Orion4D's DCTL Tone Mapper grades the frames: by default zuanfilm's H3 preset, which-// lifts the blacks, softens contrast and highlights and takes a little saturation out. workflows/color.api.json is+// H3's crunchy fine detail, then Orion4D's DCTL Tone Mapper grades the frames: by default H3 soft, a lighter take on+// zuanfilm's H3 preset that softens contrast and highlights without washing out the blacks. workflows/color.api.json is// hand-written; each request sets the values and drops a step that is turned off. Nodes are found by title.import { nodeByTitle } from "./advanced.ts";import type { ApiGraph } from "./simple.ts";@@ -28,10 +28,10 @@ export const TONE_RANGES: Record<ToneValue, { label: string; min: number; max: nstrength: { label: "Strength", min: 0, max: 2, step: 0.01 },};-export const DEFAULT_PRESET = "H3 zuanfilm";+export const DEFAULT_PRESET = "H3 soft";export const DEFAULT_TONE: ToneSettings = {- mode: "Reinhard", exposure: 0.09, contrast: 0.81, pivot: 0.69, highlight_rolloff: 0.27,- shadow_lift: 0.33, black_floor: 0.12, saturation: 0.93, strength: 0.3,+ mode: "Reinhard", exposure: 0.09, contrast: 0.84, pivot: 0.69, highlight_rolloff: 0.27,+ shadow_lift: 0.15, black_floor: 0.03, saturation: 1.05, strength: 0.2,};export const DETAIL = { min: -1, max: 1, default: -0.2 };