-
Notifications
You must be signed in to change notification settings - Fork 1
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
More ruff fixes #77
More ruff fixes #77
Conversation
@@ -210,9 +211,6 @@ def cube_mesh(dimensions=jnp.ones(3), color=jnp.array([1.0, 0.0, 0.0])): | |||
def shape(self): | |||
return self.vertices.shape[:-1] | |||
|
|||
def __len__(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nishadgothoskar these were duplicates of code above
@@ -136,6 +138,7 @@ def _rasterize_bwd(self, saved_tensors, diffs): | |||
) | |||
dy, ddb = diffs | |||
|
|||
# Don't delete! This call has the side-effect of preventing JAX from complaining when we call `grad` on a `Renderer`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here's the comment I added addressing our issue from before
@@ -103,7 +105,7 @@ def downsize_images(ims, k): | |||
|
|||
|
|||
@jax.jit | |||
def xyz_from_depth(z: "Depth Image", fx, fy, cx, cy): | |||
def xyz_from_depth(z: rr.DepthImage, fx, fy, cx, cy): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was a bug, fixed this to refer to the correct type
@@ -24,17 +25,17 @@ def gt_informed_triangle_proposal(gt_triangle, mindepth, maxdepth, fx, fy, cx, c | |||
A, B, C = gt_triangle | |||
|
|||
# Origin of the camera frame | |||
O = jnp.zeros(3) | |||
origin = jnp.zeros(3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed an "ambiguous name" linter error
This PR: