-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sd Web Unet Model Quantization and Black Formatting #445
Conversation
我觉得要考虑几个问题
|
|
如果用户不能使用量化,目前是在后台日志中输出提示信息。 |
根据刚才的线下讨论重新整理一下:
|
ret = gr.HTML( | ||
""" | ||
<div style="padding: 20px; border: 1px solid #e0e0e0; border-radius: 5px; background-color: #f9f9f9;"> | ||
<div style="font-size: 18px; font-weight: bold; margin-bottom: 15px; color: #d9534f;"> | ||
Error Message | ||
</div> | ||
<div class='error-message' style="padding: 10px; border: 1px solid #d9534f; border-radius: 5px; background-color: #f2dede;"> | ||
Error: Enterprise function is not supported on your system. | ||
</div> | ||
<p style="margin-top: 15px;"> | ||
If you need Enterprise Level Support for your system or business, please send an email to | ||
<a href="mailto:business@siliconflow.com" style="color: #31708f; text-decoration: none;">business@siliconflow.com</a>. | ||
<br> | ||
Tell us about your use case, deployment scale, and requirements. | ||
</p> | ||
<p> | ||
<strong>GitHub Issue:</strong> | ||
<a href="https://github.com/siliconflow/onediff/issues" style="color: #31708f; text-decoration: none;">https://github.com/siliconflow/onediff/issues</a> | ||
</p> | ||
</div> | ||
""" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以考虑用下面的语句实现 is_compiled 中的这段判断逻辑
return compiled_unet is not None and compiled_ckpt_name == ckpt_name
""" | ||
<div style="padding: 20px; border: 1px solid #e0e0e0; border-radius: 5px; background-color: #f9f9f9;"> | ||
<div style="font-size: 18px; font-weight: bold; margin-bottom: 15px; color: #d9534f;"> | ||
Error Message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我觉得这里可以不用 Error Message
吧,因为 Error 有点吓人。这里只是一个提示,其实并没有出错。可以换成 Hints 或者其它合适的词。
另外,就用默认的色系就行(包括背景色),红色感觉有点扎眼。我们首先是让用户用得舒服顺滑,其次才是引导用户转化。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
性能测试
下图 画红框处 Checkbox 选中代表使用模型量化,不选中代表不使用模型量化。