Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix function name #210

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading