helblazer811 / ManimML

ManimML is a project focused on providing animations and visualizations of common machine learning concepts with the Manim Community Library.
MIT License
2.35k stars 140 forks source link

How to fix Error: AnimationGroup(Group) has a run_time of 0 second? #45

Open NoDeHat269 opened 4 months ago

NoDeHat269 commented 4 months ago

image

chengyitang commented 3 months ago

Same error here. I simply set a random positive default value for 'run_time' in /manim/animation/composition.py file at line 58 and it works.

截圖 2024-06-09 04 12 32

NoDeHat269 commented 3 months ago

Thank you. it works normally on ubuntu :v This error only occurs in windows

PaoloReyes commented 3 months ago

Just add run_time=run_time in line 334 of neural_network.py

image

That way you can pass the run time of your forward pass

image
helblazer811 commented 3 months ago

Thanks for the fix. Sorry I couldn't get to this very promptly. I've been traveling for a conference. I'll look into merging the fix into the main branch and updating pip.

atakansite commented 2 months ago

Same error here. I simply set a random positive default value for 'run_time' in /manim/animation/composition.py file at line 58 and it works.

截圖 2024-06-09 04 12 32

Thanks for the fix. This error also occurs in Ubuntu 22.04

rusenbb commented 2 months ago

Same error here. I simply set a random positive default value for 'run_time' in /manim/animation/composition.py file at line 58 and it works.

截圖 2024-06-09 04 12 32

same here, solved my problem on MacOS 14.5