| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Haoqi Yuan, Ruihai Wu, Andrew Zhao, Haipeng Zhang, Zihan Ding, Hao Dong, "DMotion: Robotic Visuomotor Control with Unsupervised Forward Model Learned from Videos", IROS 2021
Grid World:
python datagen/gridworld.py
Atari Pong: require gym[atari] to be installed.
python datagen/ataripong.py
Grid World:
python train.py --gpu 0 --dataset_name shape --data_path datagen/gridworld
Atari Pong:
python train.py --gpu 0 --dataset_name pong --data_path datagen/atari-pong
Set --gpu -1 if use cpu.
One transition sample for each action can be manually selected. In folder datagen/demonstration, we have one directory for each dataset to contain the demonstrations. Directory names are shape, pong, with respect to two datasets.
We provide you the demonstrations for all datasets. For example, for Grid World dataset, directory datagen/demonstration/shape contains a file demo.txt, in which each line consists of {img1, img2, action}, showing a transition of this action. Image files img1, img2 are placed in directory datagen/demonstration/shape.
You can either use the demonstrations provided by us, or arbitrarily replace them with samples in the generated dataset manually.
Grid World:
python test.py --gpu 0 --dataset_name shape --data_path datagen/gridworld
Atari Pong:
python test.py --gpu 0 --dataset_name pong --data_path datagen/atari-pong
Set --gpu -1 if use cpu. You can select the model for test using e.g., --test_model_path checkpoint/model_49.pth. The test program will sequentially run the test of feature map visualisation, visual forecasting conditioned on the agent's motion and quantitative test. If you want to disable them, add --visualize_feature 0, --visual_forecasting 0 or --quantitative 0, respectively.
Please visit https://github.com/stepjam/PyRep, and follow the installation on their page to install Pyrep and CoppeliaSim.
Create csv file logging the trajectory IDs and time step you wish to perform MPC on
| episode | start_idx | end_idx |
|---|---|---|
| 200 | 0 | 29 |
| 201 | 8 | 37 |
Run python -m rename_mpc --folders 1 to combine all json state files into one for MPC dataset. Change the --folders argument according to the maximum ID of the trajectories manually selected. Run python -m move_mpc to get all trajectories to the right place.
python -m mpc_multi
If you find this code useful for your research, please cite our paper:
@article{yuan2021robotic,
title={Robotic Visuomotor Control with Unsupervised Forward Model Learned from Videos},
author={Yuan, Haoqi and Wu, Ruihai and Zhao, Andrew and Zhang, Haipeng and Ding, Zihan and Dong, Hao},
journal={arXiv preprint arXiv:2103.04301},
year={2021}
}
| Back | FazBrowse Home | New Git URL |