Skip to content

Commit 5a02845

Browse files
committed
LatentConsistencyModelPipeline support
1 parent 103b758 commit 5a02845

30 files changed

+801
-17036
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ yarn-debug.log*
2323
yarn-error.log*
2424

2525
/.idea
26-
/examples/*/public/models/
26+
/examples/react/models/
2727
/examples/*/public/static/js
2828
/examples/*/node_modules
2929
/examples/*/.cache

convert/requirements.txt

Whitespace-only changes.

examples/node/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/node/src/txt2img.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ async function main() {
3636
negativePrompt: args.negativePrompt,
3737
numInferenceSteps: args.steps,
3838
sdV1: args.version === 1,
39-
height: 512,
40-
width: 512,
39+
height: 768,
40+
width: 768,
4141
guidanceScale: 7.5,
4242
img2imgFlag: false,
4343
progressCallback: (progress) => {
@@ -47,7 +47,7 @@ async function main() {
4747
progressBar.stop()
4848
const data = await images[0].mul(255).round().clipByValue(0, 255).transpose(0, 2, 3, 1)
4949

50-
const p = new PNG({ width: 512, height: 512, inputColorType: 2 })
50+
const p = new PNG({ width: 768, height: 768, inputColorType: 2 })
5151
p.data = Buffer.from(data.data)
5252
p.pack().pipe(fs.createWriteStream('output.png')).on('finish', () => {
5353
console.log('Image saved as output.png');

0 commit comments

Comments
 (0)