henry123-boy / SpaTracker

[CVPR 2024 Highlight] Official PyTorch implementation of SpatialTracker: Tracking Any 2D Pixels in 3D Space
Other
676 stars 22 forks source link

Question about 3D Visualization #31

Open Boey-li opened 1 month ago

Boey-li commented 1 month ago

Hello, thanks for the amazing work! I have similar questions with the #13 , where I can not reproduce the 3D visualization using the sintel_bandage_3d.npy and the blender script. I have met the issue

 File "/Users/baoyu/research/visualizer/create.py", line 62, in <module>
    obj = bpy.data.objects[basename]
KeyError: 'bpy_prop_collection[key]: key "assets/sintel_bandage_3d_2" not found'

Do you have any sense for such bug?

And I also tried to visualize the 3D tracking performance using Open3D and sintel_bandage_spatracker_tracks.npy but the results are not good as you showed in the website. Can you also provide the 3D visualization code using Open3D if possible?

Thanks!

mgladkova commented 5 days ago

Hello!

I also faced a similar issue and, after investigating the keys of bpy.data.objects dict, the solution was to extract the filename's stem: obj = bpy.data.objects[basename[basename.rfind('/')+1:]] Hope it helps!

52THANOS commented 1 day ago

Hello! 你好!

I also faced a similar issue and, after investigating the keys of bpy.data.objects dict, the solution was to extract the filename's stem:我也遇到了类似的问题,在调查了 bpy.data.objects dict 的键后,解决方案是提取文件名的词干: obj = bpy.data.objects[basename[basename.rfind('/')+1:]] Hope it helps! 希望它有帮助!

i have some issues with 3d visualization. i wonder what bpy version did you use 1727148427783

mgladkova commented 1 day ago

I use the latest blender version 4.2.1 and launch the command as described in readme.

52THANOS commented 23 hours ago

I use the latest blender version 4.2.1 and launch the command as described in readme.我使用最新的 blender 版本 4.2.1 并按照自述文件中所述启动命令。

shoot! i rewrote some of the scripts to make it run. did you use the bpy or the scripting in blender4.2