Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ style_lora_base_path = "Shakker-Labs"
|
|
21 |
pipe = FluxPipeline.from_pretrained(base_path, torch_dtype=torch.bfloat16)
|
22 |
transformer = FluxTransformer2DModel.from_pretrained(base_path, subfolder="transformer", torch_dtype=torch.bfloat16)
|
23 |
pipe.transformer = transformer
|
24 |
-
pipe.to(
|
25 |
|
26 |
def clear_cache(transformer):
|
27 |
for name, attn_processor in transformer.attn_processors.items():
|
|
|
21 |
pipe = FluxPipeline.from_pretrained(base_path, torch_dtype=torch.bfloat16)
|
22 |
transformer = FluxTransformer2DModel.from_pretrained(base_path, subfolder="transformer", torch_dtype=torch.bfloat16)
|
23 |
pipe.transformer = transformer
|
24 |
+
pipe.to("cuda")
|
25 |
|
26 |
def clear_cache(transformer):
|
27 |
for name, attn_processor in transformer.attn_processors.items():
|