Skip to main content

rtx - Pytorch

Project description

Multi-Modality

RT-X

Pytorch implementation of the models RT-1-X and RT-2-X from the paper: "Open X-Embodiment: Robotic Learning Datasets and RT-X Models"

Here we implement both model architectures, RTX-1 and RTX-2

Paper Link

Appreciation

  • Lucidrains
  • Agorians

Install

pip install rtx-torch

Usage

  • RTX1 Usage takes in text and videos
import torch
from rtx.rtx1 import RTX1

model = RTX1()

video = torch.randn(2, 3, 6, 224, 224)

instructions = ["bring me that apple sitting on the table", "please pass the butter"]

# compute the train logits
train_logits = model.train(video, instructions)

# set the model to evaluation mode
model.model.eval()

# compute the eval logits with a conditional scale of 3
eval_logits = model.run(video, instructions, cond_scale=3.0)
print(eval_logits.shape)
  • RTX-2 takes in images and text and interleaves them to form multi-modal sentences:
import torch
from rtx import RTX2

# usage
img = torch.randn(1, 3, 256, 256)
text = torch.randint(0, 20000, (1, 1024))

model = RTX2()
output = model(img, text)
print(output)

License

MIT

Citations

Todo

  • Integrate Efficient net with RT-1 and RT-2
  • create training script for both models
  • Provide a table of all the datasets

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtx_torch-0.0.4.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

rtx_torch-0.0.4-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file rtx_torch-0.0.4.tar.gz.

File metadata

  • Download URL: rtx_torch-0.0.4.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

File hashes

Hashes for rtx_torch-0.0.4.tar.gz
Algorithm Hash digest
SHA256 911beb8e75f1fa84f5ef7c185d566b1f8a9938836e892d4fab6e797fbcf043fb
MD5 eb1eaef2d753ff66199501deebd357e4
BLAKE2b-256 c1362a965b04e640a331c1ef47dbc59359a97c231ed1fd354e7738caf72fda34

See more details on using hashes here.

File details

Details for the file rtx_torch-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: rtx_torch-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/22.4.0

File hashes

Hashes for rtx_torch-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 52a95a7acff593d2e4f751a5d56035ad9fe646e3c3d61be1e729a97f77172d8e
MD5 abdcc95c46da54e5f50361a60c3fe37d
BLAKE2b-256 477066cb73cc8b001ff921a6309bd67eb8fa2b47fc5b61c435521219644ada72

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page