-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Canonical Animations as Objects #27
Comments
Here is some code I wrote for a generic model training class in manim: `from manim import * class ModelTraining(Scene):
` |
Here is an example of a simple transformer model implemented which inherits from this class: ` In the TransformerModelScene class, the prepare_data and add_transformer_model methods need to be implemented to prepare the data for the Transformer model and add the model to the scene, respectively. Finally, TransformerModelTraining is a scene that adds the TransformerModelScene to the animation. |
Interesting ideas! I'm especially excited by the idea of creating more animations like ForwardPass with similar syntax to how the animations are done in the core library. |
Manim has the ability to represent animations as classes. These classes can take parameters and they can wrap around a passed Mobject (in our case this could be a neural network) and then a mobject specific animation is run. You can override such animations like Create (see neural_network.py). It would be interesting to make a generic TrainModel animation that is implemented by various models and emulates the training procedure.
For now, I could implement these animations as functions in the
manim_ml/neural_network/animations
directory.The text was updated successfully, but these errors were encountered: