Stable Diffusion works with images in a format that represents each 8x8 pixel patch with 4 numbers, and uses a pair of neural networks called a variational autoencoder (VAE) and a decoder to translate between images and this format. The gallery has 5 recent images passed into a VAE and then decoded.
Hey muh dude,
are you still around?
did you ever experiment with running the decode directly on what is in the sd1.5 base model?
I’m interested in that, and was hoping to find some pre written extraction code :)
No, but the Colab notebook mentioned in one of my comments in this post links to this newer Colab notebook that might do what you want (I didn't check).
intersting stuff, but didnt quite cover what I need.
Its too bad that the stuff I want to work with, is just PAST the stuff you did. I'm interested in the data path from (has been digested by the VAE) -> (gets stored in the model). But even more importantly, what bits are taken OUT of the model, from where, before being passed back out to the VAE decoder.
Everything I see always has "and now shove a bunch of random data into the pipeline, and magic happens".
Its tough to get a clear view behind the certain. Even when I'm directly reading the backend code. oof.
7 comments
Hey muh dude, are you still around? did you ever experiment with running the decode directly on what is in the sd1.5 base model? I’m interested in that, and was hoping to find some pre written extraction code :)
No, but the Colab notebook mentioned in one of my comments in this post links to this newer Colab notebook that might do what you want (I didn't check).
intersting stuff, but didnt quite cover what I need.
Its too bad that the stuff I want to work with, is just PAST the stuff you did. I'm interested in the data path from (has been digested by the VAE) -> (gets stored in the model). But even more importantly, what bits are taken OUT of the model, from where, before being passed back out to the VAE decoder.
Everything I see always has "and now shove a bunch of random data into the pipeline, and magic happens". Its tough to get a clear view behind the certain. Even when I'm directly reading the backend code. oof.
u/MindAccomplished3879
Here is the post. I am surprised this didn’t ever get expanded upon.