Premium Only Content
Neural Network 3D Visualization
Written in C++ using OpenGL for 3D rendering.
This is a demo of an app I wrote to learn more about how neural networks do feed-forward and back-propagation operations. Feed-forward, I had a pretty good handle on but knew nothing about how to do back-propagation and wanted to learn the math behind the process.
All of the AI code and the 3D renderer are written from scratch.
The AI code runs in a separate thread on the CPU and is not GPU accelerated at all. Speed is currently throttled at 1 image per second. Full speed is 20ish images per second.
You can fly around in space in real time using the mouse and WSAD keys for movement. The rotating view for most of the video was just a hard coded animation just for visual aesthetics.
Dataset is the MNIST numbers dataset that can be found online. The dataset contains 70,000 images handwritten digits with each image being 28 pixels high and 28 pixels wide along with a file containing the labels that correspond to each number.
Training is done in real-time as you're flying around but in this video the neural network image I loaded had trained for 20 epochs.
Project was heavily inspired by:
Denis Dmitriev: https://www.youtube.com/watch?v=3JQ3hYko51Y
and
Marijn van Vliet: https://www.youtube.com/watch?v=Tsvxx-GGlTg
I will eventually upload the code to GitHub, but I'd like to take some time to fix a few issues first and clean things up a bit. Just some nit picky things. =)
Update: Ok, so I'm probably not going to get around to fixing up the code so I've just released it as is. Keep in mind, I was learning as I was writing this, so there may be things that just don't make sense or a couple parts of the code that just aren't used, stuff like that. Oh and the specular reflections in the shaders are just wrong. I'm not a big user of const correctness, something I'm working on. =) Other than that, enjoy!
FYI: you will need to source the data files for the mnist dataset yourself. I wasn't sure what the license was on that, so I did not include them in the repo. You can google around and find it I'm sure.
Filenames are:
train-images.idx3-ubyte
train-labels.idx1-ubyte
Just get those files and put them in the mnistdata directory.
Code can be found at:
-
2:48
Steven Crowder
10 hours agoCROWDER CLASSICS: What’s This? | Nightmare Before Kwanzaa (Nightmare Before Christmas Parody)
174K12 -
LIVE
LFA TV
11 hours agoLFA TV CHRISTMAS EVE REPLAY
830 watching -
51:35
Dr Steve Turley
1 day ago $11.75 earnedROSEANNE BARR - Her Journey, TRUMP, and the MAGA GOLDEN AGE! [INTERVIEW]
28.3K47 -
57:38
The Tom Renz Show
4 hours agoMerry Christmas - The Tom Renz Show Christmas
46.2K8 -
2:59:10
Wendy Bell Radio
15 hours agoThe Bridge Too Far
136K194 -
1:03:45
Donald Trump Jr.
1 day agoHappy Festivus: Airing Our Grievances and Stopping The Swamp w/Sean Davis | TRIGGERED Ep.201
404K527 -
1:30:30
Game On!
18 hours ago $7.48 earnedTop 5 things you need to know for Sports Christmas!
59.3K4 -
1:58:10
Robert Gouveia
1 day agoMatt Gaetz REJECTS Report, Sues Committee; Luigi Fan Club Arrives; Biden Commutes; Festivus Waste
284K225 -
1:31:40
Adam Does Movies
1 day ago $15.68 earnedThe Best & Worst Christmas Movies! - LIVE!
109K8 -
58:10
Kimberly Guilfoyle
1 day agoAmerica is Back & The Future is Bright: A Year in Review | Ep. 183
198K75