mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Fooocus Prompt Expansion (#329)
* add vae approx download * files * files * files * i * i * i * i * i * i * i * i * i * i
This commit is contained in:
+10
-2
@@ -959,6 +959,14 @@ SD_XL_BASE_RATIOS = {
|
||||
aspect_ratios = {str(v[0]) + '×' + str(v[1]): v for k, v in SD_XL_BASE_RATIOS.items()}
|
||||
|
||||
|
||||
def apply_style(style, positive, negative):
|
||||
def apply_style_positive(style, txt):
|
||||
p, n = styles.get(style, default_style)
|
||||
return p.replace('{prompt}', positive), n + ', ' + negative
|
||||
return p.replace('{prompt}', txt)
|
||||
|
||||
|
||||
def apply_style_negative(style, txt):
|
||||
p, n = styles.get(style, default_style)
|
||||
if n == '':
|
||||
return txt
|
||||
else:
|
||||
return n + ', ' + txt
|
||||
|
||||
Reference in New Issue
Block a user