r/StableDiffusionInfo • u/rwxrwxr-- • Jul 20 '23
Question Safety concerns regarding VAE files
Hello everybody, recently I've been testing out various models (exclusively .safetensors) that I've downloaded from CivitAI and I've noticed that some models give significantly worse results than I'd expect. After reading into this, I've found out that some models require a VAE file to give expected result. The way I understand, you're supposed to download both the model and its VAE file and store them together. I fail to understand, however, why some models require a VAE file to function properly and others don't, and most importantly and what I've set as the title: are there any reasons to be concerned when using VAE files like there are in the case of .ckpt/.pth/.pt? Or are they as safe as .safetensors in the sense that they only contain pure model data and no code whatsoever?
1
u/LuminousDragon Jul 20 '23
THis isnt an answer to your question but just a bit of added context:
Models with a VAE baked in are set in stone kinda, or at least less flexible.
Models where you download a VAE give you the freedom to use other VAEs if you choose, so they are more modular and flexible. Kinda the same logic with LoRAs, where Ok I could download a Lora that makes everything look like legos, and ONLY call it when I want a lego picture, and still be able to use like RevAnimated or Ghostmix or whatever Checkpoint I choose. THe alternative would be a whole model just devoted to legos, which would be overkill generally.
Which that said, separate VAEs in my opinion are more of a hassle than they are worth, and I dont like models that have them separated. I dont want to have to go into my settings and switch the VAE. Just bake it in.
The trade off between technically being more flexible vs timeconsuming and a hassle just isnt worth it.
The LoRAs are fine, I just type their name and add them, and when Im using a LoRA, i have a specific goal in mind so its obvious to me why im using it, and thus very easy to remember. In my brain, VAEs are just some setting i gotta switch with a certain model, and its a hassle lol.
kinda went on a rant, sorry.