Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
59a8e0f
1
Parent(s):
28b3af4
chore: Disable slicing and tiling in FluxPipeline
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
12 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to(device)
|
13 |
good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae", torch_dtype=torch.bfloat16).to(device)
|
14 |
# pipe.enable_sequential_cpu_offload()
|
15 |
-
pipe.vae.enable_slicing()
|
16 |
-
pipe.vae.enable_tiling()
|
17 |
# pipe.to(torch.float16)
|
18 |
pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
|
19 |
|
|
|
12 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to(device)
|
13 |
good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae", torch_dtype=torch.bfloat16).to(device)
|
14 |
# pipe.enable_sequential_cpu_offload()
|
15 |
+
# pipe.vae.enable_slicing()
|
16 |
+
# pipe.vae.enable_tiling()
|
17 |
# pipe.to(torch.float16)
|
18 |
pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
|
19 |
|