Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ print(f"[SYSTEM] | Using {DEVICE} type compute device.")
|
|
22 |
# Variables
|
23 |
MAX_SEED = 9007199254740991
|
24 |
DEFAULT_INPUT = ""
|
25 |
-
DEFAULT_NEGATIVE_INPUT = "deformed, distorted, disfigured, disconnected, disgusting, mutation, mutated, blur, blurry, scribble, abstract, ugly, amputation, limb, limbs, leg, legs, foot, feet, toe, toes, arm, arms, hand, hands, finger, fingers, head, heads, exposed, porn, nude, nudity, naked, nsfw, NSFW"
|
26 |
DEFAULT_HEIGHT = 1024
|
27 |
DEFAULT_WIDTH = 1024
|
28 |
|
@@ -73,7 +73,7 @@ def generate(input=DEFAULT_INPUT, negative_input=DEFAULT_NEGATIVE_INPUT, height=
|
|
73 |
"num_inference_steps": steps,
|
74 |
"guidance_scale": guidance,
|
75 |
"num_images_per_prompt": number,
|
76 |
-
"controlnet_conditioning_scale": 0.
|
77 |
"cross_attention_kwargs": {"scale": 1},
|
78 |
"generator": torch.Generator().manual_seed(seed),
|
79 |
"use_resolution_binning": True,
|
|
|
22 |
# Variables
|
23 |
MAX_SEED = 9007199254740991
|
24 |
DEFAULT_INPUT = ""
|
25 |
+
DEFAULT_NEGATIVE_INPUT = "EasyNegative, deformed, distorted, disfigured, disconnected, disgusting, mutation, mutated, blur, blurry, scribble, abstract, ugly, amputation, limb, limbs, leg, legs, foot, feet, toe, toes, arm, arms, hand, hands, finger, fingers, head, heads, exposed, porn, nude, nudity, naked, nsfw, NSFW"
|
26 |
DEFAULT_HEIGHT = 1024
|
27 |
DEFAULT_WIDTH = 1024
|
28 |
|
|
|
73 |
"num_inference_steps": steps,
|
74 |
"guidance_scale": guidance,
|
75 |
"num_images_per_prompt": number,
|
76 |
+
"controlnet_conditioning_scale": 0.5,
|
77 |
"cross_attention_kwargs": {"scale": 1},
|
78 |
"generator": torch.Generator().manual_seed(seed),
|
79 |
"use_resolution_binning": True,
|