google-research

Форк
0

..
/
hierarchical_foresight 
README.md

Hierarchical Visual Foresight (HVF)

This directory contains code for the paper "Hierarchical Foresight: Self-Supervised Learning of Long-Horizon Tasks via Visual Subgoal Generation" Suraj Nair, Chelsea Finn

Usage

From the google_research directory, run:

virtualenv -p python3.6 hvf
source hvf/bin/activate
pip install -r hierarchical_foresight/requirements.txt

Generate Data

Run python -m hierarchical_foresight.generate_data --savepath=SAVEPATH

Train SV2P

Train a video prediction model using the open source tensor2tensor library. Run git clone https://github.com/tensorflow/tensor2tensor and follow instructions under "Adding a Dataset".

Once you have a trained model on your problem, modify hierarchical_foresight/env/subgoal_env.py to use your model/problem.

Train VAE, TDM, TAP

Train the conditional variation autoencoder python -m hierarchical_foresight.train_vae --datapath=DATAPATH --savedir=SAVEDIR

Train the temporal distance cost function python -m hierarchical_foresight.train_tdm --datapath=DATAPATH --savedir=SAVEDIR

Train the time agnostic prediction baseline python -m hierarchical_foresight.train_tap --datapath=DATAPATH --savedir=SAVEDIR

Run HVF

python -m hierarchical_foresight.meta_cem --difficulty=m --cost=pixel --numsg=1 --horizon=50 --gt_goals=1 --phorizon=15 --envtype=maze --vaedir=VAEDIR --tdmdir=TDMDIR --tapdir=TAPDIR

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.