Skip to main content

Mimic Video

Project description

Mimic Video (wip)

Implementation of Mimic-Video, Video-Action Models for Generalizable Robot Control Beyond VLAs

Appreciation

  • Pranoy for submitting a pull request for proprioception masking

Install

$ pip install mimic-video

Usage

import torch

# video wrapper
# but will be agnostic to the model

from mimic_video.cosmos_predict import CosmosPredictWrapper

video_wrapper = CosmosPredictWrapper(
    extract_layer = 1,
    random_weights = True,
    tiny = True
)

# mimic video

from mimic_video.mimic_video import MimicVideo

model = MimicVideo(512, video_wrapper)

# states

video = torch.rand(1, 3, 3, 32, 32)

joint_state = torch.randn(1, 32)

# action

actions = torch.randn(1, 32, 20)

# training

loss = model(prompts = '', video = video, actions = actions, joint_state = joint_state)
loss.backward()

# inference

actions = model.sample(prompts = 'pass the butter', video = video, joint_state = joint_state)

assert actions.shape == (1, 32, 20)

Contributing

First make sure pytest and test dependencies are installed with

$ pip install '.[test]'

Then add your test to tests/test_mimic_video.py and run

$ pytest tests

That's it

Citations

@inproceedings{Pai2025mimicvideoVM,
    title   = {mimic-video: Video-Action Models for Generalizable Robot Control Beyond VLAs},
    author  = {Jonas Pai and Liam Achenbach and Victoriano Montesinos and Benedek Forrai and Oier Mees and Elvis Nava},
    year    = {2025},
    url     = {https://api.semanticscholar.org/CorpusID:283920528}
}

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

mimic_video-0.0.16.tar.gz (778.7 kB view details)

Uploaded Source

Built Distribution

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

mimic_video-0.0.16-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file mimic_video-0.0.16.tar.gz.

File metadata

  • Download URL: mimic_video-0.0.16.tar.gz
  • Upload date:
  • Size: 778.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for mimic_video-0.0.16.tar.gz
Algorithm Hash digest
SHA256 cb152feb719f9b2907c1a78237befa6284e31af9deffc3c30800c232ab243ed0
MD5 6f090f8138a47c1367955a51af01caac
BLAKE2b-256 fc4d563775209277a92e91f446d8b121e8f2841d84fe4b338bad1ae9c05d37fd

See more details on using hashes here.

File details

Details for the file mimic_video-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: mimic_video-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for mimic_video-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 d525110db9f707f617495e344092a67ca1cb4ec7a66cc50b59cf6ba90e80bc5d
MD5 11e0b6ce926fee6728c388f7df66a825
BLAKE2b-256 e20d8bb3d206219b7640cbd93696626b5c495e44f09a7f5a1021f7f3d6471149

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