Skip to content

Instantly share code, notes, and snippets.

@yenchenlin
Created June 25, 2019 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yenchenlin/4bf4f9e8523b2ea499ca20b4b70ea982 to your computer and use it in GitHub Desktop.
Save yenchenlin/4bf4f9e8523b2ea499ca20b4b70ea982 to your computer and use it in GitHub Desktop.
How to run Yen-Chen's code?

Environment

First, make sure we have the right environment. Comment out the conda command in ~/.bashrc and run

source ~/.bashrc
conda activate corl

After that, comment out the conda command and open a new tab will get back to python 2.7 environment.

Command

Change to the code repo:

cd ~/yenchen/savp-omnipush
  • Base pushing experiment with ours:
python control/cem_discretize_bottom_cost.py --n_steps 4 --n_repeat 10 --n_samples 400 --batch_size 20 --n_best 5
  • Base pushing experiment with baseline:
python control/cem_discretize_bottom_cost.py --n_steps 4 --n_repeat 10 --n_samples 400 --batch_size 20 --n_best 5 --checkpoint logs/baseline_omnipush_no_weight/ours_vae_l1
  • Multi-goal pushing experiment with ours:
python control/cem_discretize_multi_goal.py --n_steps 1 --n_repeat 10 --n_samples 400 --batch_size 20 --n_best 5
  • Multi-goal pushing experiment with baseline:
python control/cem_discretize_multi_goal.py --n_steps 1 --n_repeat 10 --n_samples 400 --batch_size 20 --n_best 5 --checkpoint logs/baseline_omnipush_no_weight/ours_vae_l1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment