Skip to content

[BUG FIX] [MISC] Fix draw_debug tutorial types #1413

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RaiaN
Copy link

@RaiaN RaiaN commented Jul 14, 2025

Description

Simple fix for draw_debug tutorial types as it currently seems to be broken due to the following error:

assert trans.shape[:-1] == R.shape[:-2]
AttributeError: 'tuple' object has no attribute 'shape'

Motivation and Context

Looking to contribute to Genesis development. First step is to ensure all tutorials are working fine.

How Has This Been / Can This Be Tested?

Run draw_debug script without errors.

@YilingQiao
Copy link
Collaborator

Thanks, I will merge it after a few other PRs are merged. Then I can update it to the main branch.

Copy link
Collaborator

@duburcqa duburcqa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you rather modify draw_debug_line to systematically cast input to numpy using np.asarray(start, dtype=np.float32) (same for end and probably color?).

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

Successfully merging this pull request may close these issues.

3 participants