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

Custom training xyz and region loss debugging #84

Open
cnalty opened this issue Dec 6, 2023 · 1 comment
Open

Custom training xyz and region loss debugging #84

cnalty opened this issue Dec 6, 2023 · 1 comment

Comments

@cnalty
Copy link

cnalty commented Dec 6, 2023

I'm trying to train on a custom dataset, and I'm having trouble with some of the losses. I'm getting loss_coor_x,y,z is always 0 (even on the first iteration), and loss_region stays constant throughout the entirety of my training. I'm assuming this has something to do with my object renders not coming out correctly, so I've tried running egl_renderer.py's main replacing the models with my dataset's models. However, I run into an error about not having some robotPose file. If I set robot name to an empty string I get this error:

Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/chris/PycharmProjects/gdrnpp_bop2022/lib/egl_renderer/egl_renderer.py", line 1573, in
renderer = EGLRenderer(
File "/home/chris/PycharmProjects/gdrnpp_bop2022/lib/egl_renderer/egl_renderer.py", line 305, in init
self.grid = self.generate_grid()
File "/home/chris/PycharmProjects/gdrnpp_bop2022/lib/egl_renderer/egl_renderer.py", line 349, in generate_grid
positionAttrib = GL.glGetAttribLocation(self.shader_programs["shader_simple"], "aPosition")
KeyError: 'shader_simple'

Is this the way I should try to debug my rendering, or should I go about it some other way?

@shanice-l
Copy link
Owner

Hi, I assume the problem existed in the format of the CAD model. You can try to use the script to verify the XYZ map.

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

2 participants