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 import MimicVideo

model = MimicVideo(512, video_wrapper)

# states

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

joint_state = torch.randn(2, 32)

# action

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

# training

loss = model(
    prompts = [
        'put the package on the conveyer belt',
        'pass the butter'
    ],
    video = video,
    actions = actions,
    joint_state = joint_state
)

loss.backward()

# inference

actions = model.sample(
    prompts = 'peel the orange',
    video = video[:1],
    joint_state = joint_state[:1]
)

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.18.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.18-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mimic_video-0.0.18.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.18.tar.gz
Algorithm Hash digest
SHA256 dd6cc8f9c264fe47491eba3ae79c67a6730e38fa02fe25a794140aeb48c5f4d8
MD5 521668e14cfa77a5eb3da356f4b32865
BLAKE2b-256 21dfec4ac67d0fc332626daf69a319e597c32d66e582ce4229be5935dd486899

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mimic_video-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.18-py3-none-any.whl
Algorithm Hash digest
SHA256 df26fecb3138ae349351e35e0663a4fc3fd5751a22ee9322794228d939b78d9d
MD5 e0050358755af3f48e18bc16d664af93
BLAKE2b-256 3adfdc980a85daa88abb659062ea09d9a8bee7b34a165e9df8e0701487472bc0

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