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
InstantID
Commits
f6af2a91
Commit
f6af2a91
authored
Jul 26, 2024
by
chenpangpang
Browse files
feat: 删除gradio页面不必要的信息
parent
2ba521b8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
InstantID/gradio_demo/app.py
InstantID/gradio_demo/app.py
+0
-20
No files found.
InstantID/gradio_demo/app.py
View file @
f6af2a91
...
...
@@ -301,7 +301,6 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
"""
description
=
r
"""
<b>官方Gradio demo</b> for <a href='https://github.com/InstantID/InstantID' target='_blank'><b>InstantID: 1张照片,无需训练,秒级生成个人写真</b></a>.<br>
用户指南:<br>
1. 上传人物图片。 对于多人图像,我们只会检测最大的脸部。 确保脸部不要太小,并且没有明显遮挡或模糊。
2. (可选)上传另一个人的图像作为参考姿势。 如果没有上传,我们将使用第一张图像来提取姿势。 如果您在步骤1中使用了裁剪后的脸部,建议上传它以提取新的姿势。
...
...
@@ -310,24 +309,6 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
5. 分享美图给你的好友吧, enjoy😊!
"""
article
=
r
"""
---
📝 **Citation**
<br>
If our work is helpful for your research or applications, please cite us via:
```bibtex
@article{wang2024instantid,
title={InstantID: Zero-shot Identity-Preserving Generation in Seconds},
author={Wang, Qixun and Bai, Xu and Wang, Haofan and Qin, Zekui and Chen, Anthony},
journal={arXiv preprint arXiv:2401.07519},
year={2024}
}
```
📧 **Contact**
<br>
If you have any questions, please feel free to open an issue or directly reach us out at <b>haofanwang.ai@gmail.com</b>.
"""
tips
=
r
"""
### Usage tips of InstantID
1. If you're not satisfied with the similarity, try increasing the weight of "IdentityNet Strength" and "Adapter Strength."
...
...
@@ -444,7 +425,6 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
cache_examples
=
True
,
)
gr
.
Markdown
(
article
)
demo
.
queue
().
launch
(
server_name
=
'0.0.0.0'
,
share
=
True
)
...
...
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