Skip to main content

Rewind Reward

Project description

ReWiND Reward - Pytorch (wip)

Implementation of ReWiND, "Language-Guided Rewards Teach Robot Policies without New Demonstrations", from USC / Amazon Robotics

Install

$ pip install rewind-reward-pytorch

Usage

import torch
from rewind_reward_pytorch import RewardModel

reward_model = RewardModel()

commands = [
  'pick up the blue ball and put it in the red tray',
  'pick up the red cube and put it in the green bin'
]

videos = torch.rand(2, 3, 16, 224, 224)

loss = reward_model(commands, videos, rewards = torch.randn(2, 16))

loss.backward()

# after much training

pred = reward_model(commands, videos)

assert pred.shape == (2, 16)

Citations

@article{Zhang2025ReWiNDLR,
    title   = {ReWiND: Language-Guided Rewards Teach Robot Policies without New Demonstrations},
    author  = {Jiahui Zhang and Yusen Luo and Abrar Anwar and Sumedh Anand Sontakke and Joseph J. Lim and Jesse Thomason and Erdem Biyik and Jesse Zhang},
    journal = {ArXiv},
    year    = {2025},
    volume  = {abs/2505.10911},
    url     = {https://api.semanticscholar.org/CorpusID:278714746}
}

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

rewind_reward_pytorch-0.0.17.tar.gz (909.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rewind_reward_pytorch-0.0.17-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file rewind_reward_pytorch-0.0.17.tar.gz.

File metadata

  • Download URL: rewind_reward_pytorch-0.0.17.tar.gz
  • Upload date:
  • Size: 909.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for rewind_reward_pytorch-0.0.17.tar.gz
Algorithm Hash digest
SHA256 21f9b162d22feb65eaeb5c475b9723369114ead51202d4404210f2b709c6c30e
MD5 65fb84ee9fa9a6f8d0611f781dce237f
BLAKE2b-256 0a86b999894645b40a7d272323b0ea0b914342912212dc233a1e5b01e62b79e4

See more details on using hashes here.

File details

Details for the file rewind_reward_pytorch-0.0.17-py3-none-any.whl.

File metadata

File hashes

Hashes for rewind_reward_pytorch-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 c39386508a792d67c6e0a9b3e7a494f86cd32d423f0dc1f97335bc57997092a1
MD5 bdd8b2a261707daba10963551c74191a
BLAKE2b-256 5383f7521c00f48007734edb02f9ca2f17ea0193350cc669aa714be7291aa32a

See more details on using hashes here.

Supported by

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