Spaces:
Runtime error
Runtime error
fix order
Browse files
app.py
CHANGED
@@ -43,12 +43,6 @@ pipe = StableDiffusionXLControlNetImg2ImgPipeline.from_pretrained(
|
|
43 |
use_safetensors=True,
|
44 |
scheduler=scheduler,
|
45 |
)
|
46 |
-
if not IS_SPACES_ZERO:
|
47 |
-
pipe.enable_xformers_memory_efficient_attention()
|
48 |
-
pipe.enable_model_cpu_offload()
|
49 |
-
|
50 |
-
pipe.enable_vae_tiling()
|
51 |
-
|
52 |
|
53 |
compel = Compel(
|
54 |
tokenizer=[pipe.tokenizer, pipe.tokenizer_2],
|
@@ -60,6 +54,8 @@ pipe = pipe.to(device)
|
|
60 |
|
61 |
if not IS_SPACES_ZERO:
|
62 |
apply_hidiffusion(pipe)
|
|
|
|
|
63 |
|
64 |
|
65 |
def pad_image(image):
|
|
|
43 |
use_safetensors=True,
|
44 |
scheduler=scheduler,
|
45 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
compel = Compel(
|
48 |
tokenizer=[pipe.tokenizer, pipe.tokenizer_2],
|
|
|
54 |
|
55 |
if not IS_SPACES_ZERO:
|
56 |
apply_hidiffusion(pipe)
|
57 |
+
# pipe.enable_xformers_memory_efficient_attention()
|
58 |
+
pipe.enable_model_cpu_offload()
|
59 |
|
60 |
|
61 |
def pad_image(image):
|