Spaces:
Running
on
Zero
Running
on
Zero
AlekseyCalvin
commited on
Commit
•
daabd5f
1
Parent(s):
01424e7
Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -561,7 +561,7 @@ class FluxWithCFGPipeline(DiffusionPipeline, FluxLoraLoaderMixin, FromSingleFile
|
|
561 |
else:
|
562 |
batch_size = prompt_embeds.shape[0]
|
563 |
|
564 |
-
|
565 |
|
566 |
lora_scale = (
|
567 |
self.joint_attention_kwargs.get("scale", None) if self.joint_attention_kwargs is not None else None
|
|
|
561 |
else:
|
562 |
batch_size = prompt_embeds.shape[0]
|
563 |
|
564 |
+
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
565 |
|
566 |
lora_scale = (
|
567 |
self.joint_attention_kwargs.get("scale", None) if self.joint_attention_kwargs is not None else None
|