AbdullahAlfaraj / Auto-Photoshop-StableDiffusion-Plugin

A user-friendly plug-in that makes it easy to generate stable diffusion images inside Photoshop using either Automatic or ComfyUI as a backend.
MIT License
6.7k stars 510 forks source link

Can't Choose VAE (comfyui as a backend) #456

Open MrSorSor opened 8 months ago

MrSorSor commented 8 months ago

i am facing an issue where when i use comfyui as a backend (not automatic1111).

when i click refresh on the main tab (stable diffusion tab) in the plugin in photoshop and then i got to settings tab in the plugin in photoshop i see that the VAE list is populated correctly.

now here multiple issues occur (keep in mind that i have the VAEs in the correct folder as they are appearing in the list (i have them in both the comfyui and automatic1111 folders)):

1- if i click the refresh button next to the VAE list then the list becomes empty, all the VAEs that were in the list are now gone and to get them back i have to hit refresh in the main tab of the plugin.

2- if i don't hit the refresh button next to the VAE list and i just choose a VAE (the VAEs are clickable in this case so i would click on one VAE and it would show a little check mark that it is in fact selected) in this case in reality the selected VAE is not really selected. i tried this in with SD1.5 VAE and SDXL VAE and both had a screwed up generation except in the case of possible temp solution that i found.

the possible temp solution that i found until this is fixed is the following: -apparently the plugin is actually finding the VAEs and it populates the list but choosing a VAE is the problem. -apparently the plugin automatically chooses the first VAE in the list as the active VAE and it works.

So to make the plugin choose the VAE you want just rename the VAE file to something that makes it appear first. (for example from sdxl_vae.safetensors to 1-sdxl_vae.safetensors) that would make it appear first in the list and make it usable.

i haven't tested this with automatic1111, this issue to my knowledge is with comfyui as a backend.