tttoaster commited on
Commit
8c7cb04
1 Parent(s): 7db361a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]