Deadmon commited on
Commit
9366b85
·
verified ·
1 Parent(s): a1aed8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -31,7 +31,14 @@ noise_scheduler = DDIMScheduler(
31
  steps_offset=1,
32
  )
33
  vae = AutoencoderKL.from_pretrained(vae_model_path).to(dtype=torch.float16)
34
- pipe = pipeline.to(device)
 
 
 
 
 
 
 
35
 
36
  ip_model = IPAdapterFaceID(pipe, ip_ckpt, device)
37
  ip_model_plus = IPAdapterFaceIDPlus(pipe, image_encoder_path, ip_plus_ckpt, device)
 
31
  steps_offset=1,
32
  )
33
  vae = AutoencoderKL.from_pretrained(vae_model_path).to(dtype=torch.float16)
34
+ pipe = StableDiffusionPipeline.from_pretrained(
35
+ pipeline,
36
+ torch_dtype=torch.float16,
37
+ scheduler=noise_scheduler,
38
+ vae=vae,
39
+ feature_extractor=safety_feature_extractor,
40
+ safety_checker=safety_checker
41
+ ).to(device)
42
 
43
  ip_model = IPAdapterFaceID(pipe, ip_ckpt, device)
44
  ip_model_plus = IPAdapterFaceIDPlus(pipe, image_encoder_path, ip_plus_ckpt, device)