Compile image style chips and restore complete input metadata
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { stylePrompt } from '~/shared/studio2/styles.mjs';
|
||||
import { purge } from './cleanup';
|
||||
import { watchProgress } from './progress';
|
||||
import { fitStill } from './media';
|
||||
@@ -87,7 +88,7 @@ async function prepareGraph(r: any) {
|
||||
const mode = q.mode === 'iterate' ? (a ? 'edit' : 'generate') : q.mode;
|
||||
const found = q.engine === 'krea' ? await resolveKreaGenerateAssets() : null;
|
||||
const assets = found ? { kreaUnetName: found.unet, kreaClipName: found.clip, kreaVaeName: found.vae, kreaConceptLora: found.conceptLora } : {};
|
||||
graph = buildImageV2Workflow({ ...s, ...assets, engine: q.engine, mode, task: 'scene', prompt: q.compiledPrompt, imageAName: a, imageBName: mode === 'compose' ? b : undefined, maskName: mode === 'refine' ? mask : undefined, filenamePrefix: prefix + '/image' }).graph;
|
||||
graph = buildImageV2Workflow({ ...s, ...assets, engine: q.engine, mode, task: 'scene', prompt: q.compiledPrompt, negative: stylePrompt(q.imageStyles, true), imageAName: a, imageBName: mode === 'compose' ? b : undefined, maskName: mode === 'refine' ? mask : undefined, filenamePrefix: prefix + '/image' }).graph;
|
||||
applyResolvedImageSize(graph,s);
|
||||
if (usesSourceLatent) sampleKleinSource(graph,.65);
|
||||
if (q.engine === 'flux')
|
||||
|
||||
Reference in New Issue
Block a user