Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -186,7 +186,7 @@ class LLMService:
|
|
186 |
self.visual_encoder.to(self.vit_sd_device, dtype=self.dtype)
|
187 |
|
188 |
model_id_or_path = "stablediffusionapi/realistic-vision-v51"
|
189 |
-
self.vae_pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16)
|
190 |
self.vae_pipe = self.vae_pipe.to(self.vit_sd_device)
|
191 |
|
192 |
self.boi_token_id = self.tokenizer.encode(BOI_TOKEN, add_special_tokens=False)[0]
|
|
|
186 |
self.visual_encoder.to(self.vit_sd_device, dtype=self.dtype)
|
187 |
|
188 |
model_id_or_path = "stablediffusionapi/realistic-vision-v51"
|
189 |
+
self.vae_pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, safety_checker=None, torch_dtype=torch.float16)
|
190 |
self.vae_pipe = self.vae_pipe.to(self.vit_sd_device)
|
191 |
|
192 |
self.boi_token_id = self.tokenizer.encode(BOI_TOKEN, add_special_tokens=False)[0]
|