GLSO: Grammar-guided Latent Space Optimization for Sample-efficient Robot Design Automation (CoRL 22)
Official implementation
-
Set up the modified [RoboGrammar] repo following the instructions.
-
Install baysian-optimization from github
- pip3 install git+https://github.com/fmfn/BayesianOptimization
- Install required python packages for GLSO
- pip3 install -r requirements.txt
cd robot_utils
;
python3 collect_data.py -i500000 --grammar_file {PATH_TO_ROBOGRAMMAR}/data/designs/grammar_apr30.dot
python3 vae_train.py --save_dir sum_ls28_pred20 --data_dir new_train_data_loc_prune --gamma 20
python3 run_bo.py --model sum_ls28_pred20 --task FlatTerrainTask --log_dir log --no_noise --rd_explore
Look into sample.py for different visualization options.