Skip to content

Commit

Permalink
Fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
metinc authored Nov 3, 2024
1 parent 1bcd006 commit 51b9e08
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 51b9e08

Please sign in to comment.