Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|