Spaces:
Running
on
Zero
Running
on
Zero
aifeifei798
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,10 @@ pipe = DiffusionPipeline.from_pretrained(
|
|
20 |
"aifeifei798/DarkIdol-flux-v1.1", torch_dtype=dtype
|
21 |
).to(device)
|
22 |
|
|
|
|
|
|
|
|
|
23 |
|
24 |
MAX_SEED = np.iinfo(np.int32).max
|
25 |
MAX_IMAGE_SIZE = 2048
|
|
|
20 |
"aifeifei798/DarkIdol-flux-v1.1", torch_dtype=dtype
|
21 |
).to(device)
|
22 |
|
23 |
+
# Enable VAE big pic
|
24 |
+
pipe.vae.enable_slicing()
|
25 |
+
pipe.vae.enable_tiling()
|
26 |
+
|
27 |
|
28 |
MAX_SEED = np.iinfo(np.int32).max
|
29 |
MAX_IMAGE_SIZE = 2048
|