Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

Merge feat/mac-local-mode: the community wave for 2.6.3

purple4ff6f3b8f421
diff --cc src/components/create/experimental/ParamGroups.tsx
index 43909327,725a1019..9dd94711
--- a/src/components/create/experimental/ParamGroups.tsx
+++ b/src/components/create/experimental/ParamGroups.tsx
@@@ -80,60 -67,39 +81,93 @@@ export function ParamGroups()
<NumberField label="Width" value={s.width} min={64} max={4096} step={64} mono onChange={(v) => s.setSize(v, s.height)} suffix="px" />
<NumberField label="Height" value={s.height} min={64} max={4096} step={64} mono onChange={(v) => s.setSize(s.width, v)} suffix="px" />
</div>
+ {/* D#93 (stasicby): Wan's native sizes as one-click chips, an
+ orientation flip, and ratio chips that respend the current pixel
+ budget. Everything just writes the same width/height fields. */}
+ <div className="flex flex-wrap items-center gap-1 pt-1">
+ {isVideo && VIDEO_RES_PRESETS.map((p) => (
+ <button
+ key={p.label}
+ onClick={() => { const d = presetForOrientation(p, s.height > s.width); s.setSize(d.width, d.height) }}
+ className={cn(
+ 'px-1.5 py-0.5 rounded border t-control transition-colors',
+ matchesPreset(s.width, s.height, p)
+ ? 'border-white/20 bg-white/[0.08] text-gray-200'
+ : 'border-white/[0.08] text-gray-400 hover:text-gray-200 hover:bg-white/[0.06]',
+ )}
+ >{p.label}</button>
+ ))}
+ <button
+ aria-label="Swap orientation"
+ title="Swap portrait and landscape"
+ onClick={() => s.setSize(s.height, s.width)}
+ className="px-1.5 py-0.5 rounded border border-white/[0.08] t-control text-gray-400 hover:text-gray-200 hover:bg-white/[0.06] transition-colors inline-flex items-center gap-1"
+ >
+ {s.height > s.width ? <RectangleVertical size={10} /> : <RectangleHorizontal size={10} />}
+ flip
+ </button>
+ {ASPECT_RATIOS.map((r) => (
+ <button
+ key={r.label}
+ onClick={() => { const d = applyAspect(s.width, s.height, r.w, r.h); s.setSize(d.width, d.height) }}
+ className="px-1.5 py-0.5 rounded border border-white/[0.08] t-control text-gray-400 hover:text-gray-200 hover:bg-white/[0.06] transition-colors"
+ >{r.label}</button>
+ ))}
+ </div>
+ {showHiresFix && (
+ <div className={cn(
+ 'overflow-hidden rounded-lg border transition-colors',
+ s.hiresFixEnabled ? 'border-white/15 bg-white/[0.05]' : 'border-white/[0.07]',
+ )}>
+ <button
+ type="button"
+ className="flex w-full items-center justify-between px-3 py-2 text-left"
+ onClick={() => s.setHiresFixEnabled(!s.hiresFixEnabled)}
+ aria-pressed={s.hiresFixEnabled}
+ >
+ <span>
+ <span className="block t-control text-gray-300">Native HiRes</span>
+ <span className="block text-[11px] leading-4 text-gray-600">Latent upscale plus a native refinement pass</span>
+ </span>
+ <span className={cn('t-mono text-xs', s.hiresFixEnabled ? 'text-emerald-400' : 'text-gray-600')}>
+ {s.hiresFixEnabled ? 'on' : 'off'}
+ </span>
+ </button>
+
+ {s.hiresFixEnabled && (
+ <div className="space-y-3 border-t border-white/[0.07] px-3 pb-3 pt-2.5">
+ <div className="rounded-md bg-black/20 px-2.5 py-2 text-[11px] text-gray-500">
+ {hiresFinal ? (
+ <>
+ <span className="t-mono text-gray-400">{s.width}×{s.height}</span>
+ <span className="px-1.5 text-gray-700">→</span>
+ <span className="t-mono text-gray-200">{hiresFinal.width}×{hiresFinal.height}</span>
+ </>
+ ) : (
+ <span className="text-amber-400">{hiresSizeError}</span>
+ )}
+ </div>
+ <Slider label="Upscale" min={1.1} max={3} step={0.1} value={s.hiresScale} onChange={s.setHiresScale} format={(v) => `${v.toFixed(1)}×`} />
+ <Slider label="HiRes steps" min={1} max={40} step={1} value={s.hiresSteps} onChange={s.setHiresSteps} />
+ <Slider label="HiRes denoise" min={0.05} max={1} step={0.05} value={s.hiresDenoise} onChange={s.setHiresDenoise} format={(v) => v.toFixed(2)} />
+ <Field label="Latent upscale method" help="Nearest-exact is the default and preserves hard edges. Bicubic and bilinear provide smoother interpolation; bislerp gives softer latent blending.">
+ <Select
+ size="sm"
+ options={[
+ { value: 'nearest-exact', label: 'nearest-exact' },
+ { value: 'bislerp', label: 'bislerp' },
+ { value: 'bicubic', label: 'bicubic' },
+ { value: 'bilinear', label: 'bilinear' },
+ { value: 'area', label: 'area' },
+ ]}
+ value={s.hiresUpscaleMethod}
+ onChange={(value) => s.setHiresUpscaleMethod(value as HiresUpscaleMethod)}
+ />
+ </Field>
+ </div>
+ )}
+ </div>
+ )}
</Section>
{/* OUTPUT */}