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

[Bug]: Set 'SD VAE' to 'None' not working #4851

Closed
1 task done
tkgix opened this issue Nov 19, 2022 · 5 comments
Closed
1 task done

[Bug]: Set 'SD VAE' to 'None' not working #4851

tkgix opened this issue Nov 19, 2022 · 5 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@tkgix
Copy link

tkgix commented Nov 19, 2022

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Thank you for your hard work.

I find and report a bug in 'Settings > Stable Diffusion > SD VAE'

After setting 'SD VAE' to None, it works normally when I first started WEBUI.
After selecting the file 'SD VAE' as something other than 'None', returning it to 'None' does not work as 'None', and the last selected VAE file is applied.

Here is log

Loading VAE weights from: \stable-diffusion-webui\models\Stable-diffusion\waifu-diffusion-v1-4.vae.pt
Applying cross attention optimization (Doggettx).
VAE Weights loaded.
★★★★ I chose 'None' ★★★★
Applying cross attention optimization (Doggettx).
VAE Weights loaded.
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:27<00:00, 1.38s/it]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:26<00:00, 1.33s/it]
★★★★ The image created here has the waifu-diffusion-v1-4.vae.pt file applied. ★★★★

Steps to reproduce the problem

  1. Move menu [ Settings > Stable Diffusion > SD VAE ]
  2. Select any vae.pt file.
  3. Select 'None'
  4. Move menu [ img2img ]
  5. Generate

What should have happened?

The vae.pt file must be applied as none.

Commit where the problem happens

lastest version

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No response

Additional information, context and logs

No response

@tkgix tkgix added the bug-report Report of a bug, yet to be confirmed label Nov 19, 2022
@tetsuoo-online
Copy link

up

@FloydianSound
Copy link

FloydianSound commented Nov 20, 2022

i think if you had a model with .vae.pt weights loaded, and you change the SD_VAE settings, you need to load another (several) models to clear them from your cache ? otherwise it would keep the same model+weights combination, that's what i had to do on another similar bug in the past.

the latest update fixed this for me, but i still swap models whenever i know there's .vae.pt and i want to make sure they load properly.

i just use the auto feature now, or force manually loading weights.vae.pt when it applies.

@tkgix
Copy link
Author

tkgix commented Nov 21, 2022

Thank you for your hard work.
I applied the final update and tested it again.

After I change SD VAE to 'NONE', it does not apply to the model immediately.

However, after changing the model (=checkpoint) to another one,
When I re-selected the model I had previously chosen, it was normally applied as 'None'.

Please review it.

@tkgix
Copy link
Author

tkgix commented Nov 21, 2022

.vae.pt 가중치가 로드된 모델이 있고 SD_VAE설정을 변경한 경우 캐시에서 모델을 지우려면 다른(여러) 모델을 로드해야 합니까? 그렇지 않으면 동일한 모델+가중치 조합을 유지할 것입니다. 이것이 제가 과거에 또 다른 유사한 버그에 대해 수행해야 했던 것입니다.

최신 업데이트로 이 문제가 해결되었지만 .vae.pt가 있다는 것을 알고 제대로 로드되는지 확인하고 싶을 때마다 여전히 모델을 교체합니다.

지금 이 기능을 사용 하거나 적용할 때 auto수동으로 강제 로드 합니다.weights.vae.pt

Thank you. Your advice was very helpful.

@Aphrora117
Copy link

I meet the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

5 participants