LuyangZ commited on
Commit
11575f9
·
verified ·
1 Parent(s): 6718f50

Update app.py

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