Skip to content
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

ZeroDivisionError: float division by zero #5

Open
ruoxuer opened this issue Sep 19, 2024 · 6 comments
Open

ZeroDivisionError: float division by zero #5

ruoxuer opened this issue Sep 19, 2024 · 6 comments

Comments

@ruoxuer
Copy link

ruoxuer commented Sep 19, 2024

When executing >python run_render.py --uid ff7ab74a67a443e3bda61e69577f4e80, a problem occurred.

==================================================================
(venv) F:\AI\DrawingSpinUp\3_style_translator>python run_render.py --uid ff7ab74a67a443e3bda61e69577f4e80
'..' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
Traceback (most recent call last):
File "F:\AI\DrawingSpinUp\3_style_translator\run_render.py", line 90, in
print((end-start)/num_frame, num_frame)
ZeroDivisionError: float division by zero

help...555

@LordLiang
Copy link
Owner

It seems that blender doesn't work. Did you install blender?

@ruoxuer
Copy link
Author

ruoxuer commented Sep 19, 2024

It seems that blender doesn't work. Did you install blender?搅拌机似乎不起作用。你安装了 blender 吗?

Yes, I installed blender-3.3.1-windows-x64

@LordLiang
Copy link
Owner

It seems that blender doesn't work. Did you install blender?搅拌机似乎不起作用。你安装了 blender [吗?]

Yes, I installed blender-3.3.1-windows-x64

Did you change the install path of blender in run_render.py (line 38)?https://github.com/LordLiang/DrawingSpinUp/blob/main/3_style_translator/run_render.py
Make sure the install path is correct.

@ruoxuer
Copy link
Author

ruoxuer commented Sep 19, 2024

It seems that blender doesn't work. Did you install blender?搅拌机似乎不起作用。你安装了 blender [吗?]

Yes, I installed blender-3.3.1-windows-x64是的,我安装了 blender-3.3.1-windows-x64

Did you change the install path of blender in run_render.py (line 38)?https://github.com/LordLiang/DrawingSpinUp/blob/main/3_style_translator/run_render.py您是否在 run_render.py 中更改了 blender 的安装路径(第 38 行)?https://github.com/LordLiang/DrawingSpinUp/blob/main/3_style_translator/run_render.py Make sure the install path is correct.确保安装路径正确。

【parser.add_argument('--blender_install_path', default='../blender-3.3.1-windows-x64/blender', help='blender path')】

Thank you very much for your help. I checked the path and it was indeed Lunix before. I changed it to the correct path, Windows, but it still reports the same error. How strange.

@LordLiang
Copy link
Owner

LordLiang commented Sep 20, 2024

It seems that blender doesn't work. Did you install blender?搅拌机似乎不起作用。你安装了 blender [吗?]

Yes, I installed blender-3.3.1-windows-x64是的,我安装了 blender-3.3.1-windows-x64

Did you change the install path of blender in run_render.py (line 38)?https://github.com/LordLiang/DrawingSpinUp/blob/main/3_style_translator/run_render.py您是否在 run_render.py 中更改了 blender 的安装路径(第 38 行)?https://github.com/LordLiang/DrawingSpinUp/blob/main/3_style_translator/run_render.py Make sure the install path is correct.确保安装路径正确。

【parser.add_argument('--blender_install_path', default='../blender-3.3.1-windows-x64/blender', help='blender path')】

Thank you very much for your help. I checked the path and it was indeed Lunix before. I changed it to the correct path, Windows, but it still reports the same error. How strange.

在Unix/Linux和windows中文件路径的表示方法是不一样的,在Unix/Linux中,路径的分隔采用正斜杠'/';而在Windows中,路径分隔采用反斜杠'\',你可以试试'..\blender-3.3.1-windows-x64\blender'。如果相对路径不行还可以改成绝对路径试试。

@MartensCedric
Copy link

In my case, I was ssh'ed from WSL. I'm not even able to run blender -b without getting a segfault. I fixed this problem by just plugging a monitor to the computer I was ssh'ed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants