Skip to content
Snippets Groups Projects
Commit 99eac37e authored by Trinidad's avatar Trinidad :flag_es:
Browse files

Fix neg clothes, remove hips and reinforce age

parent 0ecf08e4
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ App.Art.GenAI.AgePromptPart = class AgePromptPart extends App.Art.GenAI.PromptPa
ageTags = `elderly`;
}
return `${ageTags}, ${this.slave.visualAge} year old`;
return `${ageTags}, ${this.slave.visualAge < 18 && V.aiAgeFilter ? `(${this.slave.visualAge} year old:1.2)` : `${this.slave.visualAge} year old`}`;
}
/**
......
......@@ -841,7 +841,7 @@ App.Art.GenAI.ClothesPromptPart = class ClothesPromptPart extends App.Art.GenAI.
if (this.slave.visualAge < 18 && V.aiAgeFilter) {
toAdd.forEach(w => {
if (!negPrompt.includes(w)) {
negPrompt += `, ${w}`;
negPrompt += `${negPrompt.length > 0 ? ", " : ""}${w}`;
}
});
}
......@@ -874,7 +874,7 @@ App.Art.GenAI.ClothesPromptPart = class ClothesPromptPart extends App.Art.GenAI.
if (V.customClothesPrompts.hasOwnProperty(this.getClothes()) && V.customClothesPrompts[this.getClothes()].negative !== '') {
return this.addNegativeControl(V.customClothesPrompts[this.getClothes()].negative + (this.slave.visualAge < 18 && V.aiAgeFilter) ? ", (nude:1.3), (nipples:1.1), areola" : "");
} else {
return this.addNegativeControl(clothesPrompts[this.getClothes()].negative);
return this.slave.visualAge < 18 && V.aiAgeFilter ? this.addNegativeControl(clothesPromptsAgeControl[this.getClothes()]?.negative ?? clothesPrompts[this.getClothes()].negative) : clothesPrompts[this.getClothes()].negative;
}
}
};
......@@ -3,6 +3,9 @@ App.Art.GenAI.HipsPromptPart = class HipsPromptPart extends App.Art.GenAI.Prompt
* @override
*/
positive() {
if (this.slave.visualAge < 18 && V.aiAgeFilter) {
return undefined;
}
if (this.slave.hips <= -2) {
return `(narrow hips:1.1)`;
} else if (this.slave.hips === -1) {
......
......@@ -4,7 +4,7 @@ App.Art.GenAI.PubicHairPromptPart = class PubicHairPromptPart extends App.Art.Ge
*/
positive() {
if (this.slave.visualAge < 18 && V.aiAgeFilter) {
return;
return undefined;
}
if (this.slave.pubicHStyle === "waxed" || this.slave.pubicHStyle === "bald" || this.slave.pubicHStyle === "hairless" || this.slave.physicalAge < Math.min(this.slave.pubertyAgeXX, this.slave.pubertyAgeXY)) {
......
......@@ -6,19 +6,19 @@ App.Art.GenAI.StylePromptPart = class StylePromptPart extends App.Art.GenAI.Prom
switch (V.aiStyle) {
case 0: // custom
if (this.slave.visualAge < 18 && V.aiAgeFilter) {
return "(front-up portrait:1.3), " + V.aiCustomStylePos; // custom may break the control
return "(front-up portrait:1.3), close-up shot, " + V.aiCustomStylePos; // custom may break the control
} else {
return V.aiCustomStylePos;
}
case 1: // photorealistic
if (this.slave.visualAge < 18 && V.aiAgeFilter) {
return "<lora:LowRA:0.5> (front-up portrait:1.3), photorealistic, dark theme, black background";
return "<lora:LowRA:0.5> (front-up portrait:1.3), close-up shot, photorealistic, dark theme, black background";
} else {
return "<lora:LowRA:0.5> full body portrait, photorealistic, dark theme, black background";
}
case 2: // anime/hentai
if (this.slave.visualAge < 18 && V.aiAgeFilter) {
return "(front-up portrait:1.1), 2d, anime, hentai, dark theme, black background";
return "(front-up portrait:1.1), close-up shot, 2d, anime, hentai, dark theme, black background";
} else {
return "full body portrait, 2d, anime, hentai, dark theme, black background";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment