gyhandy / 3D-Copy-Paste

[NeurIPS 2023] 3D Copy-Paste: Physically Plausible Object Insertion for Monocular 3D Detection
MIT License
41 stars 2 forks source link

Question about bpy and the 3d_copy_and_paste.py #4

Open RongkunYang opened 4 months ago

RongkunYang commented 4 months ago

Dear authors, thank you for the wonderful works. When I try to reproduce the experiment, I met two problem: (1) the version about the bpy, I found that bpy can only be installed by 2.91.0, other version will get build error. (2) running the 3d_copy_and_paste.py, I met the error at line 51: " bpy.ops.mesh.boundbox_add()" : site-packages/2.91/scripts/modules/bpy/ops.py", line 132, in call ret = _op_call(self.idname_py(), None, kw) AttributeError: Calling operator "bpy.ops.mesh.boundbox_add" error, could not be found Exception ignored in: <function CyclesRender.del at 0x7f0fea965290>

gyhandy commented 4 months ago

(1) I use blender3.0, (2)You can find how to add the function of the bounding box here: https://blender.stackexchange.com/questions/14070/create-and-export-bounding-boxes-for-objects

RongkunYang commented 4 months ago

OK, thank you for your quick answer, and I have installed the createBoundingbox plugin in the blender. I have two another questions: (1) where does the python script 3d_copy_and_paste.py to be ran, is it ran on the python environment installed on my computer, or on the python interpreter of Blender? (2) I install the plugin in Blender, if it is ran based on Blender's python interpreter, then I need to install all the imported package for Blender's python interpreter, then copy the 3d_copy_and_paste to Blender's Scriping Layout and run, right?

Thank you very much! Best wishes!

DavidNP96 commented 2 months ago

Hi @RongkunYang, were you able to replicate the results?