nsfwalex commited on
Commit
ed72379
·
verified ·
1 Parent(s): 53e06ef

Update inference_manager.py

Browse files
Files changed (1) hide show
  1. inference_manager.py +4 -3
inference_manager.py CHANGED
@@ -203,12 +203,13 @@ class InferenceManager:
203
  else:
204
  vae = AutoencoderTiny.from_pretrained(use_vae, torch_dtype=torch.bfloat16)
205
  print(ckpt_dir)
206
- pipe = DiffusionPipeline.from_pretrained(
207
- ckpt_dir,
208
- vae=vae,
209
  #unet=unet,
210
  torch_dtype=torch.bfloat16,
211
  use_safetensors=True,
 
212
  #variant="fp16",
213
  #custom_pipeline = "lpw_stable_diffusion_xl",
214
  )
 
203
  else:
204
  vae = AutoencoderTiny.from_pretrained(use_vae, torch_dtype=torch.bfloat16)
205
  print(ckpt_dir)
206
+ pipe = StableDiffusionXLPipeline.from_pretrained(
207
+ cfg["model_id"],#ckpt_dir,!TEST! directly use hf path
208
+ #vae=vae,!TEST!remove vae
209
  #unet=unet,
210
  torch_dtype=torch.bfloat16,
211
  use_safetensors=True,
212
+ add_watermarker=False,
213
  #variant="fp16",
214
  #custom_pipeline = "lpw_stable_diffusion_xl",
215
  )