Skip to content

Commit

Permalink
Merge pull request #40 from octo-models/fix_eval_finetuned
Browse files Browse the repository at this point in the history
Fix eval finetuned
  • Loading branch information
kpertsch authored Jan 23, 2024
2 parents 86df8bd + 57cc7d4 commit ae97d6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repos:
rev: 6.1.0
hooks:
- id: flake8
exclude: ^experiments/
exclude: ^experiments/|^examples/03_eval_finetuned.py
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
Expand Down
13 changes: 12 additions & 1 deletion examples/03_eval_finetuned.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,27 @@
Then run:
pip3 install opencv-python modern_robotics pyrealsense2 h5py_cache pyquaternion pyyaml rospkg pexpect mujoco==2.3.3 dm_control==1.0.9 einops packaging h5py
Finally modify the sys.path.append statement below to add the ACT repo to your path and start a virtual display:
Finally, modify the `sys.path.append` statement below to add the ACT repo to your path.
If you are running this on a head-less server, start a virtual display:
Xvfb :1 -screen 0 1024x768x16 &
export DISPLAY=:1
To run this script, run:
cd examples
python3 03_eval_finetuned.py --filetuned_path=<path_to_finetuned_aloha_checkpoint>
"""
import sys

from absl import app, flags, logging
import gym
import jax
import numpy as np
import wandb

sys.path.append("path/to/your/act")

from envs.aloha_sim_env import AlohaGymEnv # keep this to register ALOHA sim env

from octo.model.octo_model import OctoModel
from octo.utils.gym_wrappers import HistoryWrapper, RHCWrapper, UnnormalizeActionProprio

Expand Down

0 comments on commit ae97d6b

Please sign in to comment.