ironjr commited on
Commit
67d1bfd
1 Parent(s): 0dead1b

Upload luciddreamer.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. luciddreamer.py +4 -3
luciddreamer.py CHANGED
@@ -69,7 +69,7 @@ class LucidDreamer:
69
  self.background = torch.tensor(bg_color, dtype=torch.float32, device='cuda')
70
 
71
  self.rgb_model = StableDiffusionInpaintPipeline.from_pretrained(
72
- 'runwayml/stable-diffusion-inpainting', revision='fp16', torch_dtype=torch.float16).to('cuda')
73
  self.d_model = torch.hub.load('./ZoeDepth', 'ZoeD_N', source='local', pretrained=True).to('cuda')
74
  self.controlnet = None
75
  self.lama = None
@@ -84,7 +84,8 @@ class LucidDreamer:
84
  self.controlnet = None
85
  self.lama = None
86
  self.rgb_model = StableDiffusionInpaintPipeline.from_pretrained(
87
- 'runwayml/stable-diffusion-inpainting',
 
88
  revision='fp16',
89
  torch_dtype=torch.float16,
90
  safety_checker=None,
@@ -528,4 +529,4 @@ class LucidDreamer:
528
  })
529
 
530
  progress(1, desc='Baking Gaussians...')
531
- return traindata
 
69
  self.background = torch.tensor(bg_color, dtype=torch.float32, device='cuda')
70
 
71
  self.rgb_model = StableDiffusionInpaintPipeline.from_pretrained(
72
+ 'stablediffusion/SD1-5', revision='fp16', torch_dtype=torch.float16).to('cuda')
73
  self.d_model = torch.hub.load('./ZoeDepth', 'ZoeD_N', source='local', pretrained=True).to('cuda')
74
  self.controlnet = None
75
  self.lama = None
 
84
  self.controlnet = None
85
  self.lama = None
86
  self.rgb_model = StableDiffusionInpaintPipeline.from_pretrained(
87
+ # 'runwayml/stable-diffusion-inpainting',
88
+ 'stablediffusion/SD1-5',
89
  revision='fp16',
90
  torch_dtype=torch.float16,
91
  safety_checker=None,
 
529
  })
530
 
531
  progress(1, desc='Baking Gaussians...')
532
+ return traindata