Skip to content

Commit

Permalink
Update inference_pmv2_t2i_adapter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Paper99 authored Jul 22, 2024
1 parent a08b728 commit 0b13e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inference_scripts/inference_pmv2_t2i_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
output_dir = "./outputs"
os.makedirs(output_dir, exist_ok=True)

photomaker_path = hf_hub_download(repo_id="TencentARC/PhotoMaker", filename="photomaker-v2.bin", repo_type="model")
photomaker_ckpt = hf_hub_download(repo_id="TencentARC/PhotoMaker-V2", filename="photomaker-v2.bin", repo_type="model")

openpose = OpenposeDetector.from_pretrained("lllyasviel/ControlNet")
# load adapter
Expand Down Expand Up @@ -112,4 +112,4 @@
).images

for idx, img in enumerate(images):
img.save(os.path.join(output_dir, f"output_pmv2_t2ia_{idx}.jpg"))
img.save(os.path.join(output_dir, f"output_pmv2_t2ia_{idx}.jpg"))

0 comments on commit 0b13e0a

Please sign in to comment.