Skip to content

Commit

Permalink
SD Images: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
potvik committed Sep 29, 2023
1 parent 2ebfa1c commit 727ff8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/sd-images/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ export class SDNodeApi {
}

if (options.format === MEDIA_FORMAT.GIF) {
const modelFromParams = params.modelAlias ? getModelByParam(params.modelAlias): null;

Check failure on line 67 in src/modules/sd-images/api/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Operator ':' must be spaced

Check failure on line 67 in src/modules/sd-images/api/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Extra semicolon
const modelPath = (modelFromParams ?? options.model).path;

Check failure on line 68 in src/modules/sd-images/api/index.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Extra semicolon

const { images } = await this.client.txt2img({
prompt: params.promptWithoutParams,
negativePrompt: params.negativePrompt,
Expand All @@ -75,7 +78,7 @@ export class SDNodeApi {
loraName: params.loraName,
loraStrength,
seed: options.seed ?? params.seed,
model: (params.modelAlias && getModelByParam(params.modelAlias)?.path) ?? options.model.path,
model: modelPath,
batchSize: 16,
format: options.format
}, server)
Expand Down

0 comments on commit 727ff8f

Please sign in to comment.