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

Question about 3D Visualization #31

Open
Boey-li opened this issue Aug 15, 2024 · 9 comments
Open

Question about 3D Visualization #31

Boey-li opened this issue Aug 15, 2024 · 9 comments

Comments

@Boey-li
Copy link

Boey-li commented Aug 15, 2024

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
Copy link

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
Copy link

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
Copy link

mgladkova commented Sep 24, 2024

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

@52THANOS
Copy link

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

@g8392
Copy link

g8392 commented Sep 28, 2024

I am having error in 4.2.1:

File "/media/ed/FSSD/DATA/GITHUB/SpaTracker/blender_vis/create.py", line 38, in
rgb = data[:,:,[3,4,5]]
~~~~^^^^^^^^^^^^^
IndexError: index 3 is out of bounds for axis 2 with size 3

Blender quit

@ppuskas
Copy link

ppuskas commented Oct 29, 2024

I am having error in 4.2.1:

File "/media/ed/FSSD/DATA/GITHUB/SpaTracker/blender_vis/create.py", line 38, in rgb = data[:,:,[3,4,5]] ~~~~^^^^^^^^^^^^^ IndexError: index 3 is out of bounds for axis 2 with size 3

Blender quit

I am also getting something similar with

IndexError: index 7 is out of bounds for axis 0 with size 7

@qinghew
Copy link

qinghew commented Nov 17, 2024

I am having error in 4.2.1:
File "/media/ed/FSSD/DATA/GITHUB/SpaTracker/blender_vis/create.py", line 38, in rgb = data[:,:,[3,4,5]] ~~~~^^^^^^^^^^^^^ IndexError: index 3 is out of bounds for axis 2 with size 3
Blender quit

I am also getting something similar with

IndexError: index 7 is out of bounds for axis 0 with size 7

use another saved npy

@qinghew
Copy link

qinghew commented Nov 17, 2024

if the input is relative path, basename = args.input.split('.')[0] will split the first "." in "./vis_blender..." out. And basename will equal " ".

@qinghew
Copy link

qinghew commented Nov 17, 2024

my blender version is 4.2.1
refer:

  1. Asking about the visualization code #13 (comment)
  2. Question about 3D Visualization #31 (comment)

when edit the code "basename = basename.split('\')[-1]", it is related to your path.
for example, my path is "/user/xxx/data_process/vis_blender/vis_results/s023_04061_3d.npy", the code should be :
basename = basename.split('/')[-1]

  1. if you meet the error:
    Traceback (most recent call last):
    File "/Users/qinghewang/Documents/codes/data_process/vis_blender/create.py", line 79, in
    group_input = node_tree.nodes['Group Input']
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
    KeyError: 'bpy_prop_collection[key]: key "Group Input" not found'

change the language to English

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

6 participants