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
8f1a95d8
Unverified
Commit
8f1a95d8
authored
Jul 24, 2024
by
刘悦
Committed by
GitHub
Jul 24, 2024
Browse files
Fix model v2 link (#156)
fix model v2 link,default is v1 link
parent
77b17c4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
gradio_demo/app_v2.py
gradio_demo/app_v2.py
+1
-1
No files found.
gradio_demo/app_v2.py
View file @
8f1a95d8
...
...
@@ -40,7 +40,7 @@ ASPECT_RATIO_LABELS = list(aspect_ratios)
DEFAULT_ASPECT_RATIO
=
ASPECT_RATIO_LABELS
[
0
]
enable_doodle_arg
=
False
photomaker_ckpt
=
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"
)
torch_dtype
=
torch
.
bfloat16
if
torch
.
cuda
.
is_bf16_supported
()
else
torch
.
float16
if
device
==
"mps"
:
...
...
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