File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 77from simpler_env .evaluation .maniskill2_evaluator import maniskill2_evaluator
88from simpler_env .policies .octo .octo_server_model import OctoServerInference
99from simpler_env .policies .rt1 .rt1_model import RT1Inference
10- from simpler_env .policies .openvla .openvla_model import OpenVALInference
10+ from simpler_env .policies .openvla .openvla_model import OpenVLAInference
1111
1212try :
1313 from simpler_env .policies .octo .octo_model import OctoInference
5656 )
5757 elif args .policy_model == "openvla" :
5858 assert args .ckpt_path is not None
59- model = OpenVALInference (
59+ model = OpenVLAInference (
6060 saved_model_path = args .ckpt_path ,
6161 policy_setup = args .policy_setup ,
6262 action_scale = args .action_scale ,
Original file line number Diff line number Diff line change 1111import cv2 as cv
1212
1313
14- class OpenVALInference :
14+ class OpenVLAInference :
1515 def __init__ (
1616 self ,
1717 saved_model_path : str = "openvla/openvla-7b" ,
@@ -144,7 +144,7 @@ def step(
144144 relative_gripper_action = self .previous_gripper_action - current_gripper_action
145145 self .previous_gripper_action = current_gripper_action
146146
147- if np .abs (relative_gripper_action ) > 0.5 and self .sticky_action_is_on is False :
147+ if np .abs (relative_gripper_action ) > 0.5 and ( not self .sticky_action_is_on ) :
148148 self .sticky_action_is_on = True
149149 self .sticky_gripper_action = relative_gripper_action
150150
You can’t perform that action at this time.
0 commit comments