Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

1.5 KB
Raw Blame
/**
 * The photo the Relight tool opens on, with its relit result shipped as a static file: Intensity, the looks and the
 * preview work at once for everyone, guests too, with nothing to upload or run. A demo with a scene read ships its
 * depth map and cut-out too (the preview is then depth-true); without them it uses the flat preview.
 *
 * The sample is the app's cover pair (its before and after stills), so its addresses carry the pair's content version
 * as Home's slider does: a new cover gets new addresses, and its `look` changes in the same commit.
 */
import { PRESET_BEFORE_AFTER } from "../preset-before-after.generated";
import type { LookId } from "./lights";

export interface RelightDemo {
  id: string;
  /** What the photo shows, for its alt text. */
  alt: string;
  photo: string;
  relit: string;
  /** The look the relit picture was made with: the tool opens on it, so the result shows. */
  look: LookId;
  width: number;
  height: number;
  depth?: string;
  matte?: string;
}

const version = PRESET_BEFORE_AFTER["app-relight"];
const v = version ? `?v=${version}` : "";

export const RELIGHT_DEMOS: readonly RelightDemo[] = [
  {
    id: "cliffs",
    alt: "A model in a teal knit on a clifftop by the sea",
    photo: `/previews/presets/ba/1280/app-relight-before.jpg${v}`,
    relit: `/previews/presets/ba/1280/app-relight-after.jpg${v}`,
    look: "golden-hour",
    width: 1280,
    height: 960,
  },
];

export const DEFAULT_DEMO = RELIGHT_DEMOS[0];