Giter VIP home page Giter VIP logo

Comments (13)

helblazer811 avatar helblazer811 commented on May 14, 2024

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.

allg00d avatar allg00d commented on May 14, 2024

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.

allg00d avatar allg00d commented on May 14, 2024

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.

helblazer811 avatar helblazer811 commented on May 14, 2024

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.

allg00d avatar allg00d commented on May 14, 2024

from manimml.

helblazer811 avatar helblazer811 commented on May 14, 2024

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.

allg00d avatar allg00d commented on May 14, 2024

from manimml.

helblazer811 avatar helblazer811 commented on May 14, 2024

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.

allg00d avatar allg00d commented on May 14, 2024

from manimml.

helblazer811 avatar helblazer811 commented on May 14, 2024

Perhaps try running pip install -U manimpango

from manimml.

helblazer811 avatar helblazer811 commented on May 14, 2024

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.

helblazer811 avatar helblazer811 commented on May 14, 2024

I think this may be related.
ManimCommunity/ManimPango#106

from manimml.

AlieNiT avatar AlieNiT commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.