Update StylePile.py

Didn't reassign negative prompts with every subloop so it became bloated with every step. Now it's fixed.
pull/43/head
ydobemos 2022-11-25 13:05:46 +02:00 committed by GitHub
parent 99adcefa0e
commit fb67492a0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,7 @@
# Art movements from https://en.wikipedia.org/wiki/List_of_art_movements I threw out the ones that did not work
# Portrait prompt - Portrait of an attractive young lady,flower field background, (by artist [X]:1.3), square ratio
# Negative - missing limbs, extra limbs, watermark,label,text
# Negative - missing limbs, extra limbs
# Landscape prompt - Small house in the middle of a forest,near a lake
# Action prompt - Astronaut floating in space,firing laser at alien ship,galaxy background
@ -658,6 +658,8 @@ class Script(scripts.Script):
AllArtists + TypePositives + AllMovements + \
FinalResultColors + Preset[ddPreset]
MainNegative = copy_p.negative_prompt
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
for z in range(SubCycleCount):
@ -683,7 +685,7 @@ class Script(scripts.Script):
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
# Clean up negative prompt
TempText = copy_p.negative_prompt + TypeNegatives + \
TempText = MainNegative + TypeNegatives + \
AlwaysBad + PresetNegatives[ddPreset]
TempText = " ".join(TempText.split())