File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
from simpler_env .evaluation .maniskill2_evaluator import maniskill2_evaluator
8
8
from simpler_env .policies .octo .octo_server_model import OctoServerInference
9
9
from 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
11
11
12
12
try :
13
13
from simpler_env .policies .octo .octo_model import OctoInference
56
56
)
57
57
elif args .policy_model == "openvla" :
58
58
assert args .ckpt_path is not None
59
- model = OpenVALInference (
59
+ model = OpenVLAInference (
60
60
saved_model_path = args .ckpt_path ,
61
61
policy_setup = args .policy_setup ,
62
62
action_scale = args .action_scale ,
Original file line number Diff line number Diff line change 11
11
import cv2 as cv
12
12
13
13
14
- class OpenVALInference :
14
+ class OpenVLAInference :
15
15
def __init__ (
16
16
self ,
17
17
saved_model_path : str = "openvla/openvla-7b" ,
@@ -144,7 +144,7 @@ def step(
144
144
relative_gripper_action = self .previous_gripper_action - current_gripper_action
145
145
self .previous_gripper_action = current_gripper_action
146
146
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 ) :
148
148
self .sticky_action_is_on = True
149
149
self .sticky_gripper_action = relative_gripper_action
150
150
You can’t perform that action at this time.
0 commit comments