forgo.cloud
Sign in
Repo workspace

forkjoin-ai/gnosis

Style transfer golden PNGs

distributed-inference-host/__tests__/golden/style-transfer/README.md
forkjoin-ai/gnosis

Style transfer golden PNGs

Committed PNGs are byte-stable encodings of styleTransferAnyImage / classical outputs (16×16 RGB8, zlib filter-0), produced by rgbFloat01InterleavedToPngBuffer in __tests__/helpers/rgb-float01-to-png.ts (same rounding as encodeStyledAsPNG). Includes frf-mesh-fold-16.png for forkRaceFoldStyleTransfer (two mesh-gated classical survivors + mesh fold rank weights).

Getting Started

  • What: test fixtures and validation notes for the style transfer area.
  • Why: it shows which behavior is locked by tests instead of only described in prose.
  • How: read the local test map, then run the narrow package or crate test command named by the parent README.
  • Next: use these files when changing behavior in the sibling source directory.

Regenerate

From the monorepo root (with dependencies installed):

UPDATE_STYLE_TRANSFER_GOLDEN_SNAPSHOTS=1 pnpm run a0 -- run @a0n/distributed-inference-host:test -- --testPathPattern=style-transfer-golden

Maintainer script (same pixel math as the tests; requires a working gnode TS runner, or bundle with esbuild from package root and append process.exitCode = main(); as the bundle footer, then node run.cjs):

cd open-source/gnosis/distributed-inference-host
pnpm run gnode -- run scripts/write-style-transfer-golden-pngs.ts --export main

FRF golden (frf-mesh-fold-16.png): bundle scripts/write-frf-style-golden-entry.ts with esbuild (--external:sharp), run node from this directory (same as classical writer).

Package overview: ../../../README.md.