Skip to content

Instantly share code, notes, and snippets.

View Mywk's full-sized avatar

Mywk Mywk

View GitHub Profile
@Mywk
Mywk / cli.js
Created September 14, 2022 08:40 — forked from mattdesl/cli.js
colour palette from text prompt using Stable Diffusion https://twitter.com/mattdesl/status/1569457645182152705
/**
* General-purpose NodeJS CLI/API wrapping the Stable-Diffusion python scripts.
*
* Note that this uses an older fork of stable-diffusion
* with the 'txt2img.py' script, and that script was modified to
* support the --outfile command.
*/
var { spawn, exec } = require("child_process");
var path = require("path");