LuyangZ commited on
Commit
6430849
·
verified ·
1 Parent(s): e2ff674

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -24,17 +24,17 @@ model_id = "LuyangZ/FloorAI"
24
 
25
  # controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float16)
26
  # controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype="auto")
27
- controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float32, force_download=True)
28
- # controlnet = ControlNetModel.from_pretrained(model_id, force_download=True)
29
 
30
  controlnet.to(device)
31
  torch.cuda.empty_cache()
32
 
33
 
34
- pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype=torch.float32, force_download=True)
35
  # pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype="auto")
36
  # pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype=torch.float16)
37
- # pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, force_download=True)
38
  pipeline.safety_checker = None
39
  pipeline.requires_safety_checker = False
40
 
 
24
 
25
  # controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float16)
26
  # controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype="auto")
27
+ # controlnet = ControlNetModel.from_pretrained(model_id, torch_dtype=torch.float32, force_download=True)
28
+ controlnet = ControlNetModel.from_pretrained(model_id, force_download=True)
29
 
30
  controlnet.to(device)
31
  torch.cuda.empty_cache()
32
 
33
 
34
+ # pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype=torch.float32, force_download=True)
35
  # pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype="auto")
36
  # pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id , controlnet=controlnet, torch_dtype=torch.float16)
37
+ pipeline = StableDiffusionControlNetPipeline.from_pretrained(base_model_id, controlnet=controlnet, force_download=True)
38
  pipeline.safety_checker = None
39
  pipeline.requires_safety_checker = False
40