Comments (13)
I couldn't reproduce the issue, but I coded up what should hopefully be a workaround.
Try updating to the local branch by running
pip install git+https://github.com/helblazer811/ManimML.git
from manimml.
It got further, but ended up with the same exception.
Constructing layers
Current layer: Convolutional2DLayer
Current layer: Convolutional2DLayer
Current layer: Convolutional2DLayer
Current layer: FeedForwardLayer
Current layer: FeedForwardLayer
Now it is running into the same issue when it tries to construct NeuralNetwork at line 17 in the example.
from manimml.
BTW, this seems like it would great to use in my ML course at Berkeley. The students definitely struggle with visualizing this stuff.
from manimml.
Could you try putting print(DEFAULT_FONT_SIZE)
at the top of the script after the manim import. I'm wondering if it is not divisible by 3 and that is causing issues. I got 48 on my system.
from manimml.
from manimml.
Hmmm. Quite strange. The stack trace has the same error on line 10 of parent_layers.py?
I changed the division to integer division to see if that changes things.
Try installing again pip install git+https://github.com/helblazer811/ManimML.git
Also, integrating this into a course sounds amazing. Let me know if there is a way that I can help with that. I plan multiple extensions of this project in the future.
from manimml.
from manimml.
I think perhaps your system is using this manimpango dependency to render text instead of Latex, which is what my system is doing (I also have an M1 Macbook Pro).
Do you know what version of manimpango you have?
pip list | grep ManimPango
from manimml.
from manimml.
Perhaps try running pip install -U manimpango
from manimml.
I think it may be the ManimPango does not allow for non-integer sizes because of how it is coded under the hood. And the reason my code works is because it may not be using this dependency. Let me see if I can just ensure for the code you are running that the text font sizes are integer.
from manimml.
I think this may be related.
ManimCommunity/ManimPango#106
from manimml.
I also had the same issue with manimpango. I could not make it work even with downgrading manimpango (It caused a more serious issue).
For now I just tried to get away with casting both size
and line_spacing
.
from manimml.
Related Issues (20)
- Camera Moving Forward Pass HOT 2
- 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
- Wrong Image to Conv Animation
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.