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
Release history Release notifications | RSS feed
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.21.tar.gz
(778.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mimic_video-0.0.21.tar.gz.
File metadata
- Download URL: mimic_video-0.0.21.tar.gz
- Upload date:
- Size: 778.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
720b3bd33ed99180ef97ee8c3be7da61b9bb8e78bcb26add0291554419a245c2
|
|
| MD5 |
6cf25b39bf18281f8f62d667d7e38b91
|
|
| BLAKE2b-256 |
da0f000f46955d9a8c461d37ffd202c1555fad3e15c583eea98168209125212d
|
File details
Details for the file mimic_video-0.0.21-py3-none-any.whl.
File metadata
- Download URL: mimic_video-0.0.21-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
026e5f5d64048afabecdd46e59de910981ae30f39323e31256cf227ca3e373e5
|
|
| MD5 |
a80206b2865af5e58b567f5610944d66
|
|
| BLAKE2b-256 |
01a1d940a1629c9ba1e1cde387967849d00cc8cef7cdc13bbd1a6759e414162d
|