Unverified Commit 0b13e0a3 authored by Zhen Li's avatar Zhen Li Committed by GitHub
Browse files

Update inference_pmv2_t2i_adapter.py

parent a08b7284
...@@ -32,7 +32,7 @@ if device == "mps": ...@@ -32,7 +32,7 @@ if device == "mps":
output_dir = "./outputs" output_dir = "./outputs"
os.makedirs(output_dir, exist_ok=True) 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") openpose = OpenposeDetector.from_pretrained("lllyasviel/ControlNet")
# load adapter # load adapter
...@@ -112,4 +112,4 @@ images = pipe( ...@@ -112,4 +112,4 @@ images = pipe(
).images ).images
for idx, img in enumerate(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"))
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment