Skip to content

Commit

Permalink
more improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Oct 16, 2024
1 parent 3702c50 commit 1d67431
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,15 @@ Additionally, you can use dot notation to override specific parameters:
```bash
minppo train configs/stompy_pro.yaml 'rl.num_env_steps=1000'
```

You can visualize the environment with:

```bash
minppo env stompy_pro
```

Finally, you can run inference on a trained model with:

```bash
minppo infer stompy_pro 'inference.model_path=path/to/model.pkl'
```
4 changes: 4 additions & 0 deletions minppo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

import argparse

import colorlogging

from minppo.env import main as env_main
from minppo.infer import main as infer_main
from minppo.train import main as train_main


def main() -> None:
colorlogging.configure()

parser = argparse.ArgumentParser(description="MinPPO CLI")
parser.add_argument("command", choices=["train", "env", "infer"], help="Command to run")
args, other_args = parser.parse_known_args()
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Training
tqdm
colorlogging

# Environment
brax
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@
install_requires=requirements,
tests_require=requirements_dev,
extras_require={"dev": requirements_dev},
entry_points={
"console_scripts": [
"minppo=minppo.cli:main",
],
},
)

0 comments on commit 1d67431

Please sign in to comment.