Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ pipe, params = load_sb_pipe(controlnet_version)
|
|
| 59 |
# pipe.enable_xformers_memory_efficient_attention()
|
| 60 |
# pipe.enable_model_cpu_offload()
|
| 61 |
# pipe.enable_attention_slicing()
|
| 62 |
-
|
| 63 |
def pipe_inference(
|
| 64 |
image,
|
| 65 |
prompt,
|
|
@@ -71,7 +71,7 @@ def pipe_inference(
|
|
| 71 |
seed=0,
|
| 72 |
negative_prompt="",
|
| 73 |
):
|
| 74 |
-
|
| 75 |
if not isinstance(image, np.ndarray):
|
| 76 |
image = np.array(image)
|
| 77 |
|
|
|
|
| 59 |
# pipe.enable_xformers_memory_efficient_attention()
|
| 60 |
# pipe.enable_model_cpu_offload()
|
| 61 |
# pipe.enable_attention_slicing()
|
| 62 |
+
print("Loaded models...")
|
| 63 |
def pipe_inference(
|
| 64 |
image,
|
| 65 |
prompt,
|
|
|
|
| 71 |
seed=0,
|
| 72 |
negative_prompt="",
|
| 73 |
):
|
| 74 |
+
print("Entered pipe...")
|
| 75 |
if not isinstance(image, np.ndarray):
|
| 76 |
image = np.array(image)
|
| 77 |
|