svjack commited on
Commit
4887e9e
·
verified ·
1 Parent(s): 225e7bd

Update luciddreamer.py

Browse files
Files changed (1) hide show
  1. luciddreamer.py +5 -1
luciddreamer.py CHANGED
@@ -69,9 +69,13 @@ class LucidDreamer:
69
 
70
  bg_color = [1, 1, 1] if self.opt.white_background else [0, 0, 0]
71
  self.background = torch.tensor(bg_color, dtype=torch.float32, device='cuda')
72
-
 
73
  self.rgb_model = StableDiffusionInpaintPipeline.from_pretrained(
74
  'runwayml/stable-diffusion-inpainting', revision='fp16', torch_dtype=torch.float16).to('cuda')
 
 
 
75
  # 'stablediffusion/SD1-5', revision='fp16', torch_dtype=torch.float16).to('cuda')
76
  self.d_model = torch.hub.load('./ZoeDepth', 'ZoeD_N', source='local', pretrained=True).to('cuda')
77
  self.controlnet = None
 
69
 
70
  bg_color = [1, 1, 1] if self.opt.white_background else [0, 0, 0]
71
  self.background = torch.tensor(bg_color, dtype=torch.float32, device='cuda')
72
+
73
+ '''
74
  self.rgb_model = StableDiffusionInpaintPipeline.from_pretrained(
75
  'runwayml/stable-diffusion-inpainting', revision='fp16', torch_dtype=torch.float16).to('cuda')
76
+ '''
77
+ self.rgb_model = StableDiffusionInpaintPipeline.from_pretrained(
78
+ 'runwayml/stable-diffusion-inpainting', torch_dtype=torch.float16).to('cuda')
79
  # 'stablediffusion/SD1-5', revision='fp16', torch_dtype=torch.float16).to('cuda')
80
  self.d_model = torch.hub.load('./ZoeDepth', 'ZoeD_N', source='local', pretrained=True).to('cuda')
81
  self.controlnet = None