AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.72k stars 26.92k forks source link

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

Closed tkgix closed 1 year ago

tkgix commented 1 year ago

Is there an existing issue for this?

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

tetsuoo-online commented 1 year ago

up

FloydianSound commented 1 year ago

i think if you had a model with .vae.ptweights 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 commented 1 year ago

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 commented 1 year ago

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

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

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

Thank you. Your advice was very helpful.

Aphrora117 commented 1 year ago

I meet the same problem.