Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -16,9 +16,9 @@ image_encoder_path = "laion/CLIP-ViT-H-14-laion2B-s32B-b79K"
|
|
16 |
ip_ckpt = hf_hub_download(repo_id="h94/IP-Adapter-FaceID", filename="ip-adapter-faceid_sd15.bin", repo_type="model")
|
17 |
ip_plus_ckpt = hf_hub_download(repo_id="h94/IP-Adapter-FaceID", filename="ip-adapter-faceid-plusv2_sd15.bin", repo_type="model")
|
18 |
|
19 |
-
safety_model_id = "CompVis/stable-diffusion-safety-checker"
|
20 |
-
safety_feature_extractor = AutoFeatureExtractor.from_pretrained(safety_model_id)
|
21 |
-
safety_checker = StableDiffusionSafetyChecker.from_pretrained(safety_model_id)
|
22 |
|
23 |
device = "cuda"
|
24 |
|
@@ -37,8 +37,8 @@ pipe = StableDiffusionPipeline.from_pretrained(
|
|
37 |
torch_dtype=torch.float16,
|
38 |
scheduler=noise_scheduler,
|
39 |
vae=vae,
|
40 |
-
feature_extractor=safety_feature_extractor,
|
41 |
-
safety_checker=safety_checker
|
42 |
).to(device)
|
43 |
|
44 |
#pipe.load_lora_weights("h94/IP-Adapter-FaceID", weight_name="ip-adapter-faceid-plusv2_sd15_lora.safetensors")
|
|
|
16 |
ip_ckpt = hf_hub_download(repo_id="h94/IP-Adapter-FaceID", filename="ip-adapter-faceid_sd15.bin", repo_type="model")
|
17 |
ip_plus_ckpt = hf_hub_download(repo_id="h94/IP-Adapter-FaceID", filename="ip-adapter-faceid-plusv2_sd15.bin", repo_type="model")
|
18 |
|
19 |
+
#safety_model_id = "CompVis/stable-diffusion-safety-checker"
|
20 |
+
#safety_feature_extractor = AutoFeatureExtractor.from_pretrained(safety_model_id)
|
21 |
+
#safety_checker = StableDiffusionSafetyChecker.from_pretrained(safety_model_id)
|
22 |
|
23 |
device = "cuda"
|
24 |
|
|
|
37 |
torch_dtype=torch.float16,
|
38 |
scheduler=noise_scheduler,
|
39 |
vae=vae,
|
40 |
+
#feature_extractor=safety_feature_extractor,
|
41 |
+
#safety_checker=safety_checker
|
42 |
).to(device)
|
43 |
|
44 |
#pipe.load_lora_weights("h94/IP-Adapter-FaceID", weight_name="ip-adapter-faceid-plusv2_sd15_lora.safetensors")
|