Skip to content

Commit

Permalink
fix kinfer model (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
WT-MM authored Dec 5, 2024
1 parent 44dea1f commit 74cb9d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file added examples/gpr_walking.kinfer
Binary file not shown.
Binary file removed examples/kinfer_policy.onnx
Binary file not shown.
6 changes: 3 additions & 3 deletions sim/sim2sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from tqdm import tqdm

from sim.h5_logger import HDF5Logger
from sim.model_export import ActorCfg, get_actor_policy
from model_export import ActorCfg, get_actor_policy
from kinfer.export.pytorch import export_to_onnx
from kinfer.inference.python import ONNXModel

Expand Down Expand Up @@ -334,7 +334,7 @@ def run_mujoco(
cycle_time=policy_cfg.cycle_time,
)

if args.load_model.endswith(".onnx"):
if args.load_model.endswith(".kinfer"):
policy = ONNXModel(args.load_model)
else:
actor_model, sim2sim_info, input_tensors = get_actor_policy(args.load_model, policy_cfg)
Expand Down Expand Up @@ -369,4 +369,4 @@ def run_mujoco(
args.log_h5,
args.render,
args.h5_out_dir,
)
)

0 comments on commit 74cb9d7

Please sign in to comment.