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

No Examples folder #16

Open
RDaneelOlivav opened this issue Sep 15, 2023 · 0 comments
Open

No Examples folder #16

RDaneelOlivav opened this issue Sep 15, 2023 · 0 comments

Comments

@RDaneelOlivav
Copy link

RDaneelOlivav commented Sep 15, 2023

Is there some kind of branch or tag with the examples?
Any example of how to fine-tune it?
Any schematics of the different values what they correspond to and how flexible this is for different morphology of the robots?
Any simulation of the robot used is available?

For example my assumptions here seem wrong:

import torch 
from rt2.model import RT2
from icecream import ic
# Load model
model = RT2()

# Example inputs
video = torch.randn(2, 3, 6, 224, 224)
instructions = [
    'bring me that apple sitting on the table',
    'please pass the butter'
]

# Get evaluation logits
train_logits = model.train(video, instructions)
model.model.eval()
eval_logits = model.eval(video, instructions, cond_scale=3.)

# Assuming softmax gives the probabilities of each action
probabilities = torch.nn.functional.softmax(eval_logits, dim=-1)

# Get the most probable action index
predicted_action_indices = torch.argmax(probabilities, dim=-1)

ic(predicted_action_indices)

# Assuming you have a list of action names corresponding to indices
actions = ["action1", "action2", "..."]  # Replace with actual action names
predicted_actions = [actions[index] for index in predicted_action_indices]

print(predicted_actions)

Also, what kind of video input we are setting here with random values ?

Many question hope you can answer them :)

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
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

No branches or pull requests

1 participant