Skip to content
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

Change perceiver to have history #293

Merged
merged 5 commits into from
Sep 16, 2024

Conversation

NishanthJKumar
Copy link
Collaborator

No description provided.

@@ -618,21 +619,24 @@ def __init__(self) -> None:
self._curr_env: Optional[BaseEnv] = None
self._waiting_for_observation = True
self._ordered_objects: List[Object] = [] # list of all known objects
self._state_history: Deque[State] = deque(

Choose a reason for hiding this comment

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

Use a list for simplicity for both of these histories -- appending to the end is O(1) in both cases of List vs. Deque

# and beyond.
curr_prompt = prompt[:]
curr_prompt_imgs = [
imgs_timestep[0] for imgs_timestep in imgs_history[-1]
Copy link

@ashay-bdai ashay-bdai Sep 15, 2024

Choose a reason for hiding this comment

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

This is only giving it the latest state's image, right?

Do we not want imgs_history[-2:] here?
Another thing is -- depending on what sequence of skills we run, we may be in completely different locations/orientations between timestep t-1 and t, so actually giving the images for, say, front-left camera from t-1 and t may not be useful. Say the front-left image at t has objects A and B in it, and the right image has objects A and B in it at t-1. Then we might want to give the right image from t-1 and the front-left image from t...

Also, I think we should add a flag to pass in ALL the images, not just imgs_timestep[0]? Or we can discuss if we'll need this.

@ashay-bdai ashay-bdai merged commit 37b5245 into vlm-pipeline-testing Sep 16, 2024
2 of 6 checks passed
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