Commit f6af2a91 authored by chenpangpang's avatar chenpangpang
Browse files

feat: 删除gradio页面不必要的信息

parent 2ba521b8
...@@ -301,7 +301,6 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F ...@@ -301,7 +301,6 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
""" """
description = r""" description = r"""
<b>官方Gradio demo</b> for <a href='https://github.com/InstantID/InstantID' target='_blank'><b>InstantID: 1张照片,无需训练,秒级生成个人写真</b></a>.<br>
用户指南:<br> 用户指南:<br>
1. 上传人物图片。 对于多人图像,我们只会检测最大的脸部。 确保脸部不要太小,并且没有明显遮挡或模糊。 1. 上传人物图片。 对于多人图像,我们只会检测最大的脸部。 确保脸部不要太小,并且没有明显遮挡或模糊。
2. (可选)上传另一个人的图像作为参考姿势。 如果没有上传,我们将使用第一张图像来提取姿势。 如果您在步骤1中使用了裁剪后的脸部,建议上传它以提取新的姿势。 2. (可选)上传另一个人的图像作为参考姿势。 如果没有上传,我们将使用第一张图像来提取姿势。 如果您在步骤1中使用了裁剪后的脸部,建议上传它以提取新的姿势。
...@@ -310,24 +309,6 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F ...@@ -310,24 +309,6 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
5. 分享美图给你的好友吧, enjoy😊! 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""" tips = r"""
### Usage tips of InstantID ### Usage tips of InstantID
1. If you're not satisfied with the similarity, try increasing the weight of "IdentityNet Strength" and "Adapter Strength." 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 ...@@ -444,7 +425,6 @@ def main(pretrained_model_name_or_path="wangqixun/YamerMIX_v8", enable_lcm_arg=F
cache_examples=True, cache_examples=True,
) )
gr.Markdown(article)
demo.queue().launch(server_name='0.0.0.0', share=True) demo.queue().launch(server_name='0.0.0.0', share=True)
......
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