Small fix

This commit is contained in:
AIrjen
2024-02-20 17:48:07 +01:00
parent 4ee26e2240
commit c60f325043
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -4245,7 +4245,7 @@ def custom_or(values, insanitylevel = 5):
return selected_value
def parse_custom_functions(completeprompt, insanitylevel = 5):
print(completeprompt)
#print(completeprompt)
# Regular expression pattern to match 'or()' function calls and their arguments
ORpattern = r'OR\((.*?)\)'
+1 -1
View File
@@ -94,7 +94,7 @@ def generateprompts(amount = 1,insanitylevel="5",subject="all", artist="all", im
print("")
print("All done!")
generateprompts(1000,5
generateprompts(10,5
,"all" # subject
,"all" # artists
,"all" # image type "only other types", "only templates mode", "art blaster mode", "quality vomit mode", "color cannon mode", "unique art mode", "massive madness mode", "photo fantasy mode", "subject only mode", "fixed styles mode"
+2 -2
View File
@@ -636,7 +636,7 @@ class Script(scripts.Script):
"""
)
base_model = gr.Dropdown(
basemodelslist, label=" Base model", value="SD1.5")
basemodelslist, label=" Base model", value="SDXL")
with gr.Row(variant="compact"):
with gr.Column(variant="compact"):
promptcompounderlevel = gr.Dropdown(
@@ -898,7 +898,7 @@ class Script(scripts.Script):
extrasupscaler2codeformerweight = gr.Slider(0, 1, value="0.1", step=0.05, label="CodeFormer weight", visible = False)
genprom.click(gen_prompt, inputs=[insanitylevel,subject, artist, imagetype, antistring,prefixprompt, suffixprompt,promptcompounderlevel, seperator, givensubject,smartsubject,giventypeofimage,imagemodechance, chosengender, chosensubjectsubtypeobject, chosensubjectsubtypehumanoid, chosensubjectsubtypeconcept, givenoutfit], outputs=[prompt1, prompt2, prompt3,prompt4,prompt5])
genprom.click(gen_prompt, inputs=[insanitylevel,subject, artist, imagetype, antistring,prefixprompt, suffixprompt,promptcompounderlevel, seperator, givensubject,smartsubject,giventypeofimage,imagemodechance, chosengender, chosensubjectsubtypeobject, chosensubjectsubtypehumanoid, chosensubjectsubtypeconcept, givenoutfit, base_model], outputs=[prompt1, prompt2, prompt3,prompt4,prompt5])
prompt1toworkflow.click(prompttoworkflowprompt, inputs=prompt1, outputs=workprompt)
prompt2toworkflow.click(prompttoworkflowprompt, inputs=prompt2, outputs=workprompt)