mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
ComfyUI: negate clip_skip placeholder value
This commit is contained in:
@@ -3310,7 +3310,6 @@ async function generateComfyImage(prompt, negativePrompt, signal) {
|
|||||||
'scale',
|
'scale',
|
||||||
'width',
|
'width',
|
||||||
'height',
|
'height',
|
||||||
'clip_skip',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const workflowResponse = await fetch('/api/sd/comfy/workflow', {
|
const workflowResponse = await fetch('/api/sd/comfy/workflow', {
|
||||||
@@ -3333,6 +3332,9 @@ async function generateComfyImage(prompt, negativePrompt, signal) {
|
|||||||
const denoising_strength = extension_settings.sd.denoising_strength === undefined ? 1.0 : extension_settings.sd.denoising_strength;
|
const denoising_strength = extension_settings.sd.denoising_strength === undefined ? 1.0 : extension_settings.sd.denoising_strength;
|
||||||
workflow = workflow.replaceAll('"%denoise%"', JSON.stringify(denoising_strength));
|
workflow = workflow.replaceAll('"%denoise%"', JSON.stringify(denoising_strength));
|
||||||
|
|
||||||
|
const clip_skip = isNaN(extension_settings.sd.clip_skip) ? -1 : -extension_settings.sd.clip_skip;
|
||||||
|
workflow = workflow.replaceAll('"%clip_skip%"', JSON.stringify(clip_skip));
|
||||||
|
|
||||||
placeholders.forEach(ph => {
|
placeholders.forEach(ph => {
|
||||||
workflow = workflow.replaceAll(`"%${ph}%"`, JSON.stringify(extension_settings.sd[ph]));
|
workflow = workflow.replaceAll(`"%${ph}%"`, JSON.stringify(extension_settings.sd[ph]));
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user