Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ from omegaconf import OmegaConf
|
|
17 |
from cldm.hack import disable_verbosity, enable_sliced_attention
|
18 |
from huggingface_hub import snapshot_download
|
19 |
|
20 |
-
snapshot_download(repo_id="
|
21 |
-
snapshot_download(repo_id="
|
22 |
|
23 |
cv2.setNumThreads(0)
|
24 |
cv2.ocl.setUseOpenCL(False)
|
@@ -42,7 +42,7 @@ ddim_sampler = DDIMSampler(model)
|
|
42 |
|
43 |
if use_interactive_seg:
|
44 |
from iseg.coarse_mask_refine_util import BaselineModel
|
45 |
-
model_path = './
|
46 |
iseg_model = BaselineModel().eval()
|
47 |
weights = torch.load(model_path , map_location='cpu')['state_dict']
|
48 |
iseg_model.load_state_dict(weights, strict= True)
|
|
|
17 |
from cldm.hack import disable_verbosity, enable_sliced_attention
|
18 |
from huggingface_hub import snapshot_download
|
19 |
|
20 |
+
snapshot_download(repo_id="onlineformapro/anydoor-models-ofp", local_dir="./anydoor-models-ofp")
|
21 |
+
snapshot_download(repo_id="onlineformapro/anydoor-refine-ofp", local_dir="./anydoor-refine-ofp")
|
22 |
|
23 |
cv2.setNumThreads(0)
|
24 |
cv2.ocl.setUseOpenCL(False)
|
|
|
42 |
|
43 |
if use_interactive_seg:
|
44 |
from iseg.coarse_mask_refine_util import BaselineModel
|
45 |
+
model_path = './anydoor-refine-ofp/coarse_mask_refine.pth'
|
46 |
iseg_model = BaselineModel().eval()
|
47 |
weights = torch.load(model_path , map_location='cpu')['state_dict']
|
48 |
iseg_model.load_state_dict(weights, strict= True)
|