Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
PhotoMaker-base
Commits
77b17c4f
Unverified
Commit
77b17c4f
authored
Jul 23, 2024
by
Clay Chai
Committed by
GitHub
Jul 24, 2024
Browse files
[fix] checkpoint path (#154)
* fix checkpoint path * fix checkpoint path in inference_pmv2_controlnet
parent
0b13e0a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
inference_scripts/inference_pmv2_contronet.py
inference_scripts/inference_pmv2_contronet.py
+2
-2
inference_scripts/inference_pmv2_ip_adapter.py
inference_scripts/inference_pmv2_ip_adapter.py
+2
-2
inference_scripts/inference_pmv2_t2i_adapter.py
inference_scripts/inference_pmv2_t2i_adapter.py
+2
-2
No files found.
inference_scripts/inference_pmv2_contronet.py
View file @
77b17c4f
...
...
@@ -61,9 +61,9 @@ pipe = PhotoMakerStableDiffusionXLControlNetPipeline.from_pretrained(
### Load PhotoMaker checkpoint
pipe
.
load_photomaker_adapter
(
os
.
path
.
dirname
(
photomaker_
path
),
os
.
path
.
dirname
(
photomaker_
ckpt
),
subfolder
=
""
,
weight_name
=
os
.
path
.
basename
(
photomaker_
path
),
weight_name
=
os
.
path
.
basename
(
photomaker_
ckpt
),
trigger_word
=
"img"
# define the trigger word
)
### Also can cooperate with other LoRA modules
...
...
inference_scripts/inference_pmv2_ip_adapter.py
View file @
77b17c4f
...
...
@@ -49,9 +49,9 @@ style_images = [load_image(f"./examples/statue.png")]
### Load PhotoMaker checkpoint
pipe
.
load_photomaker_adapter
(
os
.
path
.
dirname
(
photomaker_
path
),
os
.
path
.
dirname
(
photomaker_
ckpt
),
subfolder
=
""
,
weight_name
=
os
.
path
.
basename
(
photomaker_
path
),
weight_name
=
os
.
path
.
basename
(
photomaker_
ckpt
),
trigger_word
=
"img"
# define the trigger word
)
### Also can cooperate with other LoRA modules
...
...
inference_scripts/inference_pmv2_t2i_adapter.py
View file @
77b17c4f
...
...
@@ -62,9 +62,9 @@ pipe = PhotoMakerStableDiffusionXLAdapterPipeline.from_pretrained(
### Load PhotoMaker checkpoint
pipe
.
load_photomaker_adapter
(
os
.
path
.
dirname
(
photomaker_
path
),
os
.
path
.
dirname
(
photomaker_
ckpt
),
subfolder
=
""
,
weight_name
=
os
.
path
.
basename
(
photomaker_
path
),
weight_name
=
os
.
path
.
basename
(
photomaker_
ckpt
),
trigger_word
=
"img"
# define the trigger word
)
### Also can cooperate with other LoRA modules
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment