Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Montealegre-Mora committed Jul 9, 2024
1 parent c40a3dc commit f725146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
parser = argparse.ArgumentParser()
parser.add_argument("-f", "--file", help="Path config file", type=str)
parser.add_argument("-pb", "--progress_bar", help="Use progress bar for training", type=bool, default=True)
parser.add_argument("-id", "--identifier", help="ID string for saving the agent", type=bool, default="0")
parser.add_argument("-id", "--identifier", help="ID string for saving the agent", type=str, default="0")
args = parser.parse_args()

import rl4caribou
Expand Down
2 changes: 1 addition & 1 deletion src/rl4caribou/utils/sb3.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def algorithm(algo):
}
return algos[algo]

def sb3_train(config_file, *, progress_bar, identifier, **kwargs):
def sb3_train(config_file, progress_bar=True, identifier="0", **kwargs):
with open(config_file, "r") as stream:
options = yaml.safe_load(stream)
options = {**options, **kwargs}
Expand Down

0 comments on commit f725146

Please sign in to comment.