Comments (2)
Vision Transformer
I think it would be interesting to visualize how the vision transformer works by splitting an image into a bunch of patches.
from manimml.
Self-Attention
This is the most important component (imo) to visualize property in the Transformer Architecture. I can think of two levels of visualization for this.
In-depth visualization
This visualization will show (1) the Key, Value, and Query feed-forward layers, (2) the matrices returned by these layers that are then multiplied, (3) the softmax operation combining the Key and Query into a score (4) the linear combination of the values into final values.
A high-level conceptual visualization
This is the layer that I think should be a NeuralNetworkLayer.
It should take in either text (broken down into tokens), an image (broken into patches), or vectors (output of a feed forward layer). These should then be passed into a self-attention layer. This layer should put the tokens (whatever type) onto the left and top side of a matrix visualization. The matrix visualization should be a 2D heatmap of the softmaxed (normalized) attention scores. Finally, the scores should be combined with the values to form the output of the self-attention module.
ImageToPatches
I will need to make a layer for splitting up an image into patches. The patches are necessary to represent the image as a sequence.
from manimml.
Related Issues (20)
- Layer Labeling and Dimension Labeling
- Nested Neural Networks HOT 1
- Clean up the namespace for layers HOT 1
- filename change in layers HOT 13
- Allow for passing layers as a dictionary. HOT 1
- Add a Convolutional Flatten Visualization
- Installing under Anaconda HOT 32
- correct the "First Neural Network" code HOT 4
- Make Canonical Animations as Objects HOT 3
- AttributeError: MaxPooling2DLayer object has no attribute 'padding' HOT 2
- Dropout Last Layer - Should have option to remove node removal HOT 5
- ManimML in docker HOT 3
- Color of Neural Networks HOT 3
- Misplacement of connections between neurons in NeuralNetworkScene HOT 5
- Increasing the size of the rendered NN HOT 3
- neural network title is fixed HOT 6
- missing "config" HOT 4
- 'size' has incorrect type (expected int, got float) HOT 13
- Wrong Image to Conv Animation
- Missing manim_ml.diffusion.random_walk, dependency of diffusion process example
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manimml.