mokady commited on
Commit
ca169b4
·
verified ·
1 Parent(s): ffd0df2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: