Skip to content
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

Feature: 请求支持lantent放大算法 #173

Closed
Tracked by #143
SurviveZ opened this issue Feb 9, 2023 · 5 comments · Fixed by #260
Closed
Tracked by #143

Feature: 请求支持lantent放大算法 #173

SurviveZ opened this issue Feb 9, 2023 · 5 comments · Fixed by #260
Labels
enhancement New feature or request help wanted Extra attention is needed stablediffusion related to Stable Diffusion backend

Comments

@SurviveZ
Copy link

SurviveZ commented Feb 9, 2023

Scope

Stable Diffusion WebUI (AUTOMATIC1111)

Describe the problem related to the feature request

部分模型要求使用Lantent放大算法来达到最佳效果

Describe the solution you'd like

在配置中可选择Lantent放大算法

Describe alternatives you've considered

Additional context

@MaikoTan
Copy link
Member

MaikoTan commented Feb 9, 2023

Hello, @SurviveZ

Merci for the issue!

I do a quick search for latent upscale and found there are several PR for this: AUTOMATIC1111/stable-diffusion-webui#5521 AUTOMATIC1111/stable-diffusion-webui#6299 AUTOMATIC1111/stable-diffusion-webui#6364

So it looks like that you could only use the latent upscaler with img2img and hires fix features? Could you explain to me how it works and which approach this feature is implemented you like?


你好 @SurviveZ

多谢你的议题!

我做了一个对于潜在的高档快速检索,然后找到了几个 PR:
AUTOMATIC1111/stable-diffusion-webui#5521 AUTOMATIC1111/stable-diffusion-webui#6299 AUTOMATIC1111/stable-diffusion-webui#6364

所以看起来你只能使用具有 img2imghires fix 功能的潜在升频器?您能向我解释一下它是如何工作的,以及您喜欢哪种实现此功能的方法吗?

@SurviveZ
Copy link
Author

SurviveZ commented Feb 9, 2023

你好,使用其他放大算法最终无法正常生成并发送图片,在webui上使用lantent则能够较快生成,这是主要原因.

@MaikoTan
Copy link
Member

你好,使用其他放大算法最终无法正常生成并发送图片,在webui上使用lantent则能够较快生成,这是主要原因.

I think that's because you have requestTimeout set with a small number (like the default value 60 seconds is too small for many consumer-level spec when generating large images), so maybe it works with a longer timeout like 2min or 5min or whatever.

我认为那是因为你 requestTimeout 设置了一个小数字(比如默认值 60 秒对于许多消费级规范来说太小了,当生成大图像),所以也许它可以使用更长的超时时间,如 2 分钟或 5 分钟或其他任何时间。


Thanks for the reply.
What I am asking is that whether the latent upscaler usable in upscale (or Extra in sd-webui) or not. Or should I make it only usable for hires fix and img2img?

谢谢你的回复。
我想问的其实是潜在升档器是否在高档 (或 sd-webui 中的 额外) 中可用。亦或我应该让它仅能用于高分辨率修复img2img吗?

@KotoriKoi
Copy link

KotoriKoi commented Feb 13, 2023

image

我想它可能是需要在配置项中添加lantent放大算法(这在webui中的upscale是可用的,并且它会影响图片效果),由于sd-webui的api中的get方法没有lantent,你可能需要手动添加它或者等待sd-webui更新,这是临时解决方法:

image

latent=['Latent','Latent (antialiased)','Latent (bicubic)','Latent (bicubic antialiased)','Latent (nearest)','Latent (nearest-exact)']
请注意它们含有空格。

@SurviveZ
Copy link
Author

image

我想它可能是需要在配置项中添加lantent放大算法(这在webui中的upscale是可用的,并且它会影响图片效果),由于sd-webui的api中的get方法没有lantent,你可能需要手动添加它或者等待sd-webui更新,这是临时解决方法:

image

latent=['Latent','Latent (antialiased)','Latent (bicubic)','Latent (bicubic antialiased)','Latent (nearest)','Latent (nearest-exact)'] 请注意它们含有空格。

请问这是在哪里修改呢?

@MaikoTan MaikoTan added the stablediffusion related to Stable Diffusion backend label Feb 13, 2024
@MaikoTan MaikoTan added enhancement New feature or request help wanted Extra attention is needed labels Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed stablediffusion related to Stable Diffusion backend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants