Skip to content

Commit

Permalink
Merge pull request #5 from huggingface/fix_cursor_position
Browse files Browse the repository at this point in the history
Fix cursor position
  • Loading branch information
Cadene authored Apr 10, 2024
2 parents 824b228 + c1322ad commit 25dee43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym_pusht/envs/pusht.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _get_img(self, screen, width, height, render_action=False):
render_size = min(width, height)
if render_action and self._last_action is not None:
action = np.array(self._last_action)
coord = (action / 512 * 96).astype(np.int32)
coord = (action / 512 * [height, width]).astype(np.int32)
marker_size = int(8 / 96 * render_size)
thickness = int(1 / 96 * render_size)
cv2.drawMarker(
Expand Down

0 comments on commit 25dee43

Please sign in to comment.