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

Improve docs adding "--gym-packages" argument #445

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

turbotimon
Copy link

@turbotimon turbotimon commented Apr 23, 2024

Description

improve doc adding "--gym-packages" argument

source:

parser.add_argument(
"--gym-packages",
type=str,
nargs="+",
default=[],
help="Additional external Gym environment package modules to import",

Motivation and Context

  • I have raised an issue to propose this change (required for new features and bug fixes)

Types of changes

  • Documentation (update in the documentation)

Checklist:

  • I've read the CONTRIBUTION guide (required)
  • I have updated the documentation accordingly.

Copy link
Member

@araffin araffin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, but I guess we should deprecate --gym-packages, see #390 (package:env_id might already be working)

@turbotimon
Copy link
Author

turbotimon commented Apr 23, 2024

package:env_id is the first thing I tried, but unfortunately it does not work yet (v2.3.0)...

ENV_NAME = 'gym_environment:gym_environment/GridWorld-v0' # My custom environment

# Works
from gymnasium import make_vec
env = make_vec(ENV_NAME) 

# ValueError: gym_environment:gym_environment/GridWorld-v0 not found in gym registry ....
import sys
from rl_zoo3.train import train
sys.argv = ["python", "--algo", "ppo", "--env", ENV_NAME]
train() 

(You could try using this template for custom env)

araffin and others added 2 commits July 29, 2024 10:40
Co-authored-by: Quentin Gallouédec <45557362+qgallouedec@users.noreply.github.com>
@araffin araffin changed the title improve docs adding "--gym-packages" argument Improve docs adding "--gym-packages" argument Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants