Commit
·
906d6d8
1
Parent(s):
b340c4e
load checkpoints
Browse files
.DS_Store
CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
|
|
{checkpoints → .checkpoints}/ControlNetModel/config.json
RENAMED
File without changes
|
{checkpoints → .checkpoints}/ControlNetModel/diffusion_pytorch_model.safetensors
RENAMED
File without changes
|
{checkpoints → .checkpoints}/ip-adapter.bin
RENAMED
File without changes
|
handler.py
CHANGED
@@ -19,7 +19,7 @@ from depth_anything.util.transform import Resize, NormalizeImage, PrepareForNet
|
|
19 |
from insightface.app import FaceAnalysis
|
20 |
from pipeline_stable_diffusion_xl_instantid_full import StableDiffusionXLInstantIDPipeline, draw_kps
|
21 |
from controlnet_aux import OpenposeDetector
|
22 |
-
|
23 |
|
24 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
25 |
if device.type != 'cuda':
|
@@ -39,8 +39,8 @@ class EndpointHandler():
|
|
39 |
# )
|
40 |
# hf_hub_download(repo_id="InstantX/InstantID", filename="ip-adapter.bin", local_dir="./checkpoints")
|
41 |
|
42 |
-
face_adapter = f"
|
43 |
-
controlnet_path = f"
|
44 |
|
45 |
# transform = Compose([
|
46 |
# Resize(
|
|
|
19 |
from insightface.app import FaceAnalysis
|
20 |
from pipeline_stable_diffusion_xl_instantid_full import StableDiffusionXLInstantIDPipeline, draw_kps
|
21 |
from controlnet_aux import OpenposeDetector
|
22 |
+
from huggingface_hub import hf_hub_download
|
23 |
|
24 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
25 |
if device.type != 'cuda':
|
|
|
39 |
# )
|
40 |
# hf_hub_download(repo_id="InstantX/InstantID", filename="ip-adapter.bin", local_dir="./checkpoints")
|
41 |
|
42 |
+
face_adapter = f".checkpoints/ip-adapter.bin"
|
43 |
+
controlnet_path = f".checkpoints/ControlNetModel"
|
44 |
|
45 |
# transform = Compose([
|
46 |
# Resize(
|