hxngiee commited on
Commit
b5fc260
·
1 Parent(s): b31d431

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def get_pipeline(
15
  pipe = None
16
 
17
  model_id = "./models"
18
- pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None, requires_safety_checker=False).to("cpu")
19
  pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
20
 
21
  # if enable_cpu_offload:
 
15
  pipe = None
16
 
17
  model_id = "./models"
18
+ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32, safety_checker=None, requires_safety_checker=False).to("cpu")
19
  pipe.scheduler = DDIMScheduler.from_config(pipe.scheduler.config)
20
 
21
  # if enable_cpu_offload: