diff --git a/build_dynamic_prompt.py b/build_dynamic_prompt.py index 7de58f8..2b7e165 100644 --- a/build_dynamic_prompt.py +++ b/build_dynamic_prompt.py @@ -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\((.*?)\)' diff --git a/prompttester.py b/prompttester.py index f9325ae..f5eeac0 100644 --- a/prompttester.py +++ b/prompttester.py @@ -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" diff --git a/scripts/onebuttonprompt.py b/scripts/onebuttonprompt.py index 736b766..cbdfc7a 100644 --- a/scripts/onebuttonprompt.py +++ b/scripts/onebuttonprompt.py @@ -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)