3DTopia / OpenLRM

An open-source impl. of Large Reconstruction Models
Apache License 2.0
925 stars 49 forks source link

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

Open linmi1 opened 5 months ago

linmi1 commented 5 months ago

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 commented 5 months ago

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

ZexinHe commented 5 months ago

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