Merge pull request #201 from AIrjen/minor_changes_animemode

hotfix
pull/202/head
AIrjen 2024-06-08 09:57:49 +02:00 committed by GitHub
commit 751935791f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,8 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
add_quality = True
anime_mode = False
configfilesuffix = ""
if(forcesubject == "------ all"):
forcesubject = "all"
superprompter = False
prompt_enhancer = prompt_enhancer.lower()
@ -1475,9 +1477,9 @@ def build_dynamic_prompt(insanitylevel = 5, forcesubject = "all", artists = "all
mainchooserlist.remove("object")
if(random.randint(0,8) > max(2,insanitylevel -2) and "humanoid" in mainchooserlist):
mainchooserlist.remove("humanoid")
print(forcesubject)
#focus in animemode on mostly humans
if(anime_mode):
if(anime_mode and (forcesubject == "all" or forcesubject == "")):
if(random.randint(0,11) > max(2,insanitylevel -2) and "concept" in mainchooserlist):
mainchooserlist.remove("concept")
if(random.randint(0,11) > max(2,insanitylevel -2) and "landscape" in mainchooserlist):