Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

training from pixels #3

Closed
haoyu-x opened this issue Apr 3, 2022 · 1 comment
Closed

training from pixels #3

haoyu-x opened this issue Apr 3, 2022 · 1 comment

Comments

@haoyu-x
Copy link

haoyu-x commented Apr 3, 2022

Hi, thanks for the great project!

I installed the repo, and I ran the training example from states, it works well.

but when I ran the training example from pixels,

python tools/train.py task=FrankaPickPixels

the error:

Traceback (most recent call last):
  File "tools/train.py", line 39, in train
    ppo = process_ppo(env, cfg, cfg_dict, cfg.logdir, cfg.cptdir)
  File "/home/haoyux/mvp/mvp/utils/hydra_utils.py", line 211, in process_ppo
    num_gpus=cfg.num_gpus
  File "/home/haoyux/mvp/mvp/ppo/ppo.py", line 80, in __init__
    policy_cfg
  File "/home/haoyux/mvp/mvp/ppo/actor_critic.py", line 197, in __init__
    emb_dim=emb_dim
  File "/home/haoyux/mvp/mvp/ppo/actor_critic.py", line 149, in __init__
    assert pretrain_type == "none" or os.path.exists(pretrain_path)
AssertionError

Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
@ir413
Copy link
Owner

ir413 commented Apr 3, 2022

Hi @haoyu-x, the default configs assume that the pre-trained models are placed in /tmp/pretrained (e.g., see here). Alternatively, you can set the pre-trained models path from the command line, e.g., something like:

python tools/train.py task=FrankaPickPixels train.encoder.pretrain_dir=/path/to/pretrained/models

Please see the readme for the pre-trained models download links.

@ir413 ir413 closed this as completed Apr 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants