Skip to content

Commit

Permalink
Merge pull request #210 from metinc/patch-1
Browse files Browse the repository at this point in the history
Fix function name
  • Loading branch information
Ivan-267 authored Nov 4, 2024
2 parents 1bcd006 + 51b9e08 commit b01f9db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/sb3_imitation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from stable_baselines3.common.evaluation import evaluate_policy
from stable_baselines3.common.vec_env.vec_monitor import VecMonitor

from godot_rl.wrappers.onnx.stable_baselines_export import export_ppo_model_as_onnx
from godot_rl.wrappers.onnx.stable_baselines_export import export_model_as_onnx
from godot_rl.wrappers.sbg_single_obs_wrapper import SBGSingleObsEnv

parser = argparse.ArgumentParser(allow_abbrev=False)
Expand Down Expand Up @@ -109,7 +109,7 @@ def handle_onnx_export():
if args.onnx_export_path is not None:
path_onnx = pathlib.Path(args.onnx_export_path).with_suffix(".onnx")
print("Exporting onnx to: " + os.path.abspath(path_onnx))
export_ppo_model_as_onnx(learner, str(path_onnx), use_obs_array=True)
export_model_as_onnx(learner, str(path_onnx), use_obs_array=True)


def handle_model_save():
Expand Down

0 comments on commit b01f9db

Please sign in to comment.