Skip to content

Remove render mask and rescale#129

Merged
eugenevinitsky merged 1 commit into
mainfrom
ap_fixRendering
May 22, 2024
Merged

Remove render mask and rescale#129
eugenevinitsky merged 1 commit into
mainfrom
ap_fixRendering

Conversation

@aaravpandya

Copy link
Copy Markdown
Collaborator
  1. Rescale according to non-padding map objs.
  2. We remove render mask based on valid state. The reason is that we should not remove agents based on whether they are valid in the expert trajectory. Agents can be valid/invalid independent of what their state in the expert trajectories are. I also removed the valid state system since it was only introduced for this specific purpose.

Bugs introduced - While the renders are correct, but there is a zoom out effect. Currently we scale by (w/2, h/2) so that the entire maps fits in. One can change it to (w, h) or (w/1.25, h/1.25) based on how zoomed in you want the render. However, the more you zoom in the more chances to lose maps on the edges.

@eugenevinitsky

Copy link
Copy Markdown
Contributor

I don't fully understand comment 2. I would think we do want to remove agents if they are not valid in the expert trajectory?

Comment thread pygpudrive/env/viz.py
Comment on lines +78 to +79
adjusted_window_width = self.WINDOW_W/2 - self.padding_x
adjusted_window_height = self.WINDOW_H/2 - self.padding_y

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This here I don't understand why this showed up

@eugenevinitsky eugenevinitsky merged commit 71e6ec9 into main May 22, 2024
@aaravpandya aaravpandya deleted the ap_fixRendering branch October 4, 2024 03:20
wangbingke0 pushed a commit to wangbingke0/gpudrive that referenced this pull request Feb 13, 2026
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.

2 participants