LuyangZ commited on
Commit
5805c80
·
verified ·
1 Parent(s): 4cf9e38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ model_id = "LuyangZ/FloorAI"
22
  # controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype="auto")
23
  controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float32)
24
  controlnet.to(device)
25
- torch.cuda.empty_cache()
26
 
27
 
28
  pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype=torch.float32)
@@ -31,7 +31,7 @@ pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , con
31
  pipeline.scheduler = UniPCMultistepScheduler.from_config(pipeline.scheduler.config)
32
 
33
  pipeline = pipeline.to(device)
34
- torch.cuda.empty_cache()
35
 
36
 
37
 
 
22
  # controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype="auto")
23
  controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float32)
24
  controlnet.to(device)
25
+ # torch.cuda.empty_cache()
26
 
27
 
28
  pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype=torch.float32)
 
31
  pipeline.scheduler = UniPCMultistepScheduler.from_config(pipeline.scheduler.config)
32
 
33
  pipeline = pipeline.to(device)
34
+ # torch.cuda.empty_cache()
35
 
36
 
37