Trained Neural Network to behave like an Image effectively compressing it.
@tsoding122K followers
33,726 views
15 Comments
Comments from the original post on X (Twitter)

@compux72
How effective is it?
4 likes

@tsoding
For this specific image and this specific network: the uncompressed image is 784 bytes, the "compressed" one (the size of all the 32bit float weights and bias) is 268 bytes. I'm not super familiar with compression metrics. But we saved (1 - 268/784)*100 = 65% I guess
15 likes

@compux72
From my understanding lossy webp archives up to 35% compression (google search). So not bad
1 like

@compux72
This is interesting too
1 like

@tsoding
Oh! I haven't tried Recurrent Neural Networks yet! Thank you for reminding me about them! 👍
2 likes

@skalskip92
So your weights become your image representation?
3 likes

@AmdjedBensalah
what are you using to visualize & track ur NN this way?
1 like

@gers2017
can't get access to gpt? MAKE YOUR OWN
1 like

@ymsodev
I did some research projects on this in college — look for CPPN if you’re interested in this topic of compression with NN. Different activation functions have different effects, e.g., ReLU is great for sharp edges.
1 like

@crypt0lake
Is this an auto encoder then or am I missing something 🤔
1 like

@abiiranathan
And it's all written in holy C
1 like

@mode7studio
If this can do 3D, there's a dnn do 3D reconstruction but couldn't find it

@ZDSAlpha
Use sine functions with different periods on position, it will instantly converge. Supposing range of x and y is 0 to 1, use sin(pi*x), sin(2pi*x), sin(4pi*x) etc for both axis. It acts as positional encodings and lets you divide space into discrete chunks.

@at_ataee
How's the visualization done?

@benryantw
Tsoding god. We're not worthy.