Skip to content

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.

1 / 10
Not downloaded yet
original
Not downloaded yet
roundtrip
Not downloaded yet
original
Not downloaded yet
roundtrip
Not downloaded yet
original
Not downloaded yet
roundtrip
Not downloaded yet
original
Not downloaded yet
roundtrip
Not downloaded yet
original
Not downloaded yet
roundtrip
71 points79 comments
Open on Reddit
About this post
Posted
Archived
Score
71 · 90% up
Kind
Gallery · 10 files
ID
10lamdr

Author

142
posts
939
comments
102
media
View profile

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 :)

1 points

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).

2 points

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.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.