mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-04-17 12:17:21 +02:00
Adjust Anlas guard for NAI Opus
This commit is contained in:
parent
bd9c4d28ca
commit
3995238d77
@ -121,7 +121,7 @@ const helpString = [
|
|||||||
example: '/sd apple tree' would generate a picture of an apple tree.`,
|
example: '/sd apple tree' would generate a picture of an apple tree.`,
|
||||||
].join('<br>');
|
].join('<br>');
|
||||||
|
|
||||||
const defaultPrefix = 'best quality, absurdres, masterpiece,';
|
const defaultPrefix = 'best quality, absurdres, aesthetic,';
|
||||||
const defaultNegative = 'lowres, bad anatomy, bad hands, text, error, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry';
|
const defaultNegative = 'lowres, bad anatomy, bad hands, text, error, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry';
|
||||||
|
|
||||||
const defaultStyles = [
|
const defaultStyles = [
|
||||||
@ -1468,13 +1468,13 @@ function getNovelParams() {
|
|||||||
let width = extension_settings.sd.width;
|
let width = extension_settings.sd.width;
|
||||||
let height = extension_settings.sd.height;
|
let height = extension_settings.sd.height;
|
||||||
|
|
||||||
// Don't apply Anlas guard if it's disabled.d
|
// Don't apply Anlas guard if it's disabled.
|
||||||
if (!extension_settings.sd.novel_anlas_guard) {
|
if (!extension_settings.sd.novel_anlas_guard) {
|
||||||
return { steps, width, height };
|
return { steps, width, height };
|
||||||
}
|
}
|
||||||
|
|
||||||
const MAX_STEPS = 28;
|
const MAX_STEPS = 28;
|
||||||
const MAX_PIXELS = 409600;
|
const MAX_PIXELS = 1024 * 1024;
|
||||||
|
|
||||||
if (width * height > MAX_PIXELS) {
|
if (width * height > MAX_PIXELS) {
|
||||||
const ratio = Math.sqrt(MAX_PIXELS / (width * height));
|
const ratio = Math.sqrt(MAX_PIXELS / (width * height));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user