ford442 commited on
Commit
8de4c61
·
1 Parent(s): dfbe7f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -118,11 +118,9 @@ def load_and_prepare_model(model_id):
118
  add_watermarker=False,
119
  use_safetensors=True,
120
  vae=vae,
121
- ).to(torch.bfloat16).to('cuda')
122
 
123
- pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
124
- if ENABLE_CPU_OFFLOAD:
125
- pipe.enable_model_cpu_offload()
126
  return pipe
127
 
128
  # Preload and compile both models
 
118
  add_watermarker=False,
119
  use_safetensors=True,
120
  vae=vae,
121
+ ).to('cuda')
122
 
123
+ pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", algorithm_type="sde-dpmsolver++")
 
 
124
  return pipe
125
 
126
  # Preload and compile both models