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

Which part of your open-source code could be used for robotics task directly #11

Open
ThomasCai35 opened this issue Sep 2, 2024 · 1 comment

Comments

@ThomasCai35
Copy link

Thanks for your excellent work! Lately I've been trying to put the Theia model into real-life robotics tasks. Now I would love to ensure that which part of your open-sourced code could be used for robotics task directly. Thanks.

@elicassion
Copy link
Contributor

Hi @ThomasCai35

Theia feature is mainly used for robotics tasks, i.e. using Theia as a vision encoder.

import transformers
from transformers import AutoModel
import torch
model = AutoModel.from_pretrained("theaiinstitute/theia-base-patch16-224-cdiv", trust_remote_code=True)
fake_input = torch.zeros((1, 224 ,224, 3), dtype=torch.uint8)

theia_feature = model.forward_feature(fake_input)
# Theia / intermediate feature, mainly used for robot learning.
# To change different feature reduction methods, pass `feature_reduction_method` argument in AutoModel.from_pretrained() method

You can also find the above in our quick start guide.

Good luck and have fun!

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

2 participants