Skip to content

Refactored eva-to-zarr.py#256

Open
ElmoPA wants to merge 1 commit intomainfrom
elmo/refactor-eva-proc
Open

Refactored eva-to-zarr.py#256
ElmoPA wants to merge 1 commit intomainfrom
elmo/refactor-eva-proc

Conversation

@ElmoPA
Copy link
Contributor

@ElmoPA ElmoPA commented Mar 4, 2026

No description provided.

Copy link
Contributor Author

ElmoPA commented Mar 4, 2026

@ElmoPA ElmoPA marked this pull request as ready for review March 4, 2026 23:28
@ElmoPA ElmoPA mentioned this pull request Mar 4, 2026
@ryanthecreator ryanthecreator force-pushed the elmo/refactor-eva-proc branch 3 times, most recently from aeb8955 to b7d2cf6 Compare March 8, 2026 03:51
episode_feats = EvaHD5Extractor.process_episode(
episode_path=raw_path,
arm=arm,
extrinsics=extrinsics,
Copy link
Collaborator

Choose a reason for hiding this comment

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

We no longer rely on extrinsics right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I forgot to remove it.

frames = []
episode_feats = EvaHD5Extractor.process_episode(
episode_path, arm=arm, extrinsics=extrinsics, prestack=prestack
episode_path, arm=arm, extrinsics=extrinsics
Copy link
Collaborator

Choose a reason for hiding this comment

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

still taking extrinsics?

.float()
)

if low_res:
Copy link
Collaborator

Choose a reason for hiding this comment

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

If deleting this, then also delete the low_res arg

)
out[f"left.{base_key}"] = left_translation_quat
out[f"right.{base_key}"] = right_translation_quat
out["left.gripper"] = arr[:, 6:7]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we intentionally writing left.gripper both here and in the above if statement?

_SPLIT_KEYS = {"obs_ee_pose", "cmd_ee_pose", "obs_joints", "cmd_joints"}

DATASET_KEY_MAPPINGS = {
"observations.state.eepose": "obs_ee_pose",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This says eepose, but in eva_utils the extractor it says ee_pose

            episode_feats["observations"]["state.ee_pose"] = (
                EvaHD5Extractor.get_ee_pose(
                    episode_feats["observations"]["state.joint_positions"],
                    arm,
                    left_extrinsics=left_extrinsics,
                    right_extrinsics=right_extrinsics,
                    no_rot=no_rot,
                )
            )

This seems like a pretty important bug?

Copy link
Collaborator

@SimarKareer SimarKareer left a comment

Choose a reason for hiding this comment

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

see comments

@ryanthecreator ryanthecreator force-pushed the elmo/refactor-eva-proc branch from b7d2cf6 to 4e6faae Compare March 8, 2026 22:22
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