Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,9 +38,9 @@ dtype = torch.float16 if str(device).__contains__("cuda") else torch.float32
|
|
| 38 |
STYLE_NAMES = list(styles.keys())
|
| 39 |
DEFAULT_STYLE_NAME = "(No style)"
|
| 40 |
enable_lcm_arg = False
|
| 41 |
-
DEFAULT_POSE_STRENGTH = 1.0
|
| 42 |
-
DEFAULT_CANNY_STRENGTH = 0.4
|
| 43 |
-
CONTROLNET_SELECTION = ["pose", "canny"]
|
| 44 |
|
| 45 |
# download checkpoints
|
| 46 |
from huggingface_hub import hf_hub_download
|
|
@@ -235,10 +235,10 @@ def generate_image(
|
|
| 235 |
num_steps,
|
| 236 |
identitynet_strength_ratio,
|
| 237 |
adapter_strength_ratio,
|
| 238 |
-
pose_strength
|
| 239 |
-
canny_strength
|
| 240 |
depth_strength,
|
| 241 |
-
controlnet_selection
|
| 242 |
guidance_scale,
|
| 243 |
seed,
|
| 244 |
scheduler,
|
|
|
|
| 38 |
STYLE_NAMES = list(styles.keys())
|
| 39 |
DEFAULT_STYLE_NAME = "(No style)"
|
| 40 |
enable_lcm_arg = False
|
| 41 |
+
# DEFAULT_POSE_STRENGTH = 1.0
|
| 42 |
+
# DEFAULT_CANNY_STRENGTH = 0.4
|
| 43 |
+
# CONTROLNET_SELECTION = ["pose", "canny"]
|
| 44 |
|
| 45 |
# download checkpoints
|
| 46 |
from huggingface_hub import hf_hub_download
|
|
|
|
| 235 |
num_steps,
|
| 236 |
identitynet_strength_ratio,
|
| 237 |
adapter_strength_ratio,
|
| 238 |
+
pose_strength,
|
| 239 |
+
canny_strength,
|
| 240 |
depth_strength,
|
| 241 |
+
controlnet_selection,
|
| 242 |
guidance_scale,
|
| 243 |
seed,
|
| 244 |
scheduler,
|