Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ pipe = DiffusionPipeline.from_pretrained("briaai/BRIA-2.3", torch_dtype=torch.fl
|
|
27 |
pipe.load_lora_weights(f'{pipeline_path}/pytorch_lora_weights.safetensors')
|
28 |
pipe.fuse_lora()
|
29 |
pipe.unload_lora_weights()
|
30 |
-
pipe.to("cuda")
|
31 |
pipe.force_zeros_for_empty_prompt = False
|
32 |
pipe = EllaXLPipeline(pipe,f'{pipeline_path}/pytorch_model.bin')
|
33 |
|
@@ -61,7 +61,7 @@ def infer(prompt,negative_prompt,seed,resolution, steps):
|
|
61 |
|
62 |
# generator = torch.Generator("cuda").manual_seed(555)
|
63 |
t=time.time()
|
64 |
-
|
65 |
if seed=="-1":
|
66 |
generator=None
|
67 |
else:
|
|
|
27 |
pipe.load_lora_weights(f'{pipeline_path}/pytorch_lora_weights.safetensors')
|
28 |
pipe.fuse_lora()
|
29 |
pipe.unload_lora_weights()
|
30 |
+
# pipe.to("cuda")
|
31 |
pipe.force_zeros_for_empty_prompt = False
|
32 |
pipe = EllaXLPipeline(pipe,f'{pipeline_path}/pytorch_model.bin')
|
33 |
|
|
|
61 |
|
62 |
# generator = torch.Generator("cuda").manual_seed(555)
|
63 |
t=time.time()
|
64 |
+
pipe.to("cuda")
|
65 |
if seed=="-1":
|
66 |
generator=None
|
67 |
else:
|