Spaces:
Running
on
Zero
Running
on
Zero
Himanshu-AT
commited on
Commit
·
94e2acf
1
Parent(s):
fd9cbdf
few modifications
Browse files
app.py
CHANGED
@@ -16,7 +16,10 @@ MAX_IMAGE_SIZE = 2048
|
|
16 |
pipe = FluxFillPipeline.from_pretrained("black-forest-labs/FLUX.1-Fill-dev", torch_dtype=torch.bfloat16).to("cuda")
|
17 |
pipe.load_lora_weights("alvdansen/flux-koda")
|
18 |
pipe.enable_sequential_cpu_offload()
|
19 |
-
pipe.enable_fp16()
|
|
|
|
|
|
|
20 |
|
21 |
def calculate_optimal_dimensions(image: Image.Image):
|
22 |
# Extract the original dimensions
|
|
|
16 |
pipe = FluxFillPipeline.from_pretrained("black-forest-labs/FLUX.1-Fill-dev", torch_dtype=torch.bfloat16).to("cuda")
|
17 |
pipe.load_lora_weights("alvdansen/flux-koda")
|
18 |
pipe.enable_sequential_cpu_offload()
|
19 |
+
# pipe.enable_fp16()
|
20 |
+
pipe.enable_lora()
|
21 |
+
pipe.vae.enable_slicing()
|
22 |
+
pipe.vae.enable_tiling()
|
23 |
|
24 |
def calculate_optimal_dimensions(image: Image.Image):
|
25 |
# Extract the original dimensions
|