aifeifei798 commited on
Commit
ae26617
·
verified ·
1 Parent(s): b62f497

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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