OpenLRM icon indicating copy to clipboard operation
OpenLRM copied to clipboard

Matrix multiplication: not supported between 'Matrix' and 'Vector' types

Open linmi1 opened this issue 1 year ago • 2 comments

I tried the blender_script.py,get the logs:

Connected to pydev debugger (build 232.10227.11) =================== CYCLES =================== Data are loaded, start creating Blender stuff glTF import finished in 0.18s Failed to render ./dataset/input/bb7a8d3861f04ab68d0e09120ce11f3a.glb Matrix multiplication: not supported between 'Matrix' and 'Vector' types and I find the problem is from if not ignore_matrix: coord = obj.matrix_world @ coord my package mathutils is 3.3.0 and bpy is 4.0.0 with torch ==2.1.2

linmi1 avatar Apr 15 '24 15:04 linmi1

If I set ignore_matrix is True , I can run the codes correctly by changing some codes,I wonder if this setting will influence my result

linmi1 avatar Apr 15 '24 15:04 linmi1

Hi,

Thanks to @RiccardoLincetto, it looks like you should run with blender cli to work. Plz refer to this https://github.com/3DTopia/OpenLRM/issues/44.

The blender script here is designed to be used with this repo, in which you should use the blender script like this.

blender -b -P scripts/blender_script.py

ZexinHe avatar May 06 '24 10:05 ZexinHe