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

lidar-only model extract mesh #34

Open
tangtaogo opened this issue Oct 1, 2023 · 0 comments
Open

lidar-only model extract mesh #34

tangtaogo opened this issue Oct 1, 2023 · 0 comments

Comments

@tangtaogo
Copy link

tangtaogo commented Oct 1, 2023

Hi,
Thanks for your excellent work!
I have trained model with the lidaronly_filterobj.230814.yaml, but when I want to extract mesh:

Traceback (most recent call last):                                                                                                                                                                                                           
  File "code_single/tools/extract_mesh.py", line 157, in <module>
    main_function(bc.parse())
  File "code_single/tools/extract_mesh.py", line 125, in main_function
    extract_mesh(query_surf_fn, query_color_fn, bmin=aabb[:3], bmax=aabb[3:], N=args.N,
  File "/data/code/neuralsim/nr3d_lib/geometry/mesh.py", line 243, in extract_mesh
    colors = batchify_color(query_color_fn, verts.astype(np.float32), normals.astype(np.float32))
  File "/data/code/neuralsim/nr3d_lib/geometry/mesh.py", line 228, in batchify_color
    out_i = query_fn(x, v)
  File "code_single/tools/extract_mesh.py", line 110, in <lambda>
    query_color_fn = lambda x, v: model.forward(
  File "/data/code/neuralsim/nr3d_lib/profile.py", line 550, in <lambda>
    return lambda *args, **kwargs: _ProfileWrap(fn=arg)(*args, **kwargs)
  File "/data/nas_sync/code/neuralsim/nr3d_lib/profile.py", line 496, in __call__
    ret = self.fn(*args, **kwargs)
  File "/data/code/neuralsim/nr3d_lib/models/fields/neus/lotd_neus.py", line 159, in forward
    h_extra=raw_ret['h'], 
KeyError: 'h'

Can you help me?

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

1 participant