-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dc717c
commit ee4ad36
Showing
4 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pytest | ||
|
||
from godot_rl.core.godot_env import GodotEnv | ||
from godot_rl.main import get_args | ||
|
||
try: | ||
from godot_rl.wrappers.stable_baselines_wrapper import stable_baselines_training | ||
except ImportError as e: | ||
|
||
def stable_baselines_training(args, extras): | ||
print("Import error when trying to use sb3, this is probably not installed try pip install godot-rl[sb3]") | ||
|
||
|
||
def test_sb3_training(): | ||
args, extras = get_args() | ||
args.env = "gdrl" | ||
args.env_path = "examples/godot_rl_JumperHard/bin/JumperHard.x86_64" | ||
|
||
stable_baselines_training(args, extras, n_steps=10000) |