-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Adds image extracted features observation term and cartpole examples for it #1191
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
Merged
jsmith-bdai
merged 33 commits into
isaac-sim:main
from
glvov-bdai:feature/preprocess_observation_updated
Oct 28, 2024
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
5d09fcb
Add Built In Feature Extraction
glvov-bdai f7ef078
Update environments.rst
glvov-bdai 12dadd1
Update environments.rst
glvov-bdai d907803
Update environments.rst
glvov-bdai bf2238a
convert obs to class
glvov-bdai 11abbcf
Merge branch 'isaac-sim:main' into feature/preprocess_observation_upd…
glvov-bdai 502b882
Update observations.py
garylvov ab42141
add vision transformer
garylvov df2b1ff
simplify MLP
garylvov a490961
change model
garylvov 2343e35
Update pyproject.toml
glvov-bdai f92957e
Merge branch 'isaac-sim:main' into feature/preprocess_observation_upd…
glvov-bdai 72a9fbf
update
glvov-bdai 9447165
Merge branch 'isaac-sim:main' into feature/preprocess_observation_upd…
glvov-bdai 5336ad6
Update feature_extractor.py
glvov-bdai 3744dde
update env names
glvov-bdai 953716b
Merge branch 'feature/preprocess_observation_updated' of https://gith…
glvov-bdai abb8743
consistent import ordering
glvov-bdai 1e81c87
Update observations.py
glvov-bdai c4cbb95
Update cartpole_camera_env_cfg.py
glvov-bdai a06033e
formatting
glvov-bdai 4c43aca
format but actually good this time
glvov-bdai 4f61f88
fix to inherit from obs group
glvov-bdai ecb65ce
Merge branch 'isaac-sim:main' into feature/preprocess_observation_upd…
glvov-bdai 27451f9
Merge branch 'main' into feature/preprocess_observation_updated
8829417
Merge branch 'main' into feature/preprocess_observation_updated
01bda48
Merge branch 'main' into feature/preprocess_observation_updated
glvov-bdai e9de97f
Merge branch 'main' into feature/preprocess_observation_updated
glvov-bdai cf79302
formatting
glvov-bdai ca775fa
Add changelog about cartpole renaming
glvov-bdai 05ac736
Update source/extensions/omni.isaac.lab/omni/isaac/lab/envs/mdp/obser…
glvov-bdai c1f412f
address James' comments
glvov-bdai 4bb7993
Merge branch 'main' into feature/preprocess_observation_updated
glvov-bdai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
79 changes: 79 additions & 0 deletions
79
.../omni/isaac/lab_tasks/manager_based/classic/cartpole/agents/rl_games_feature_ppo_cfg.yaml
This file contains hidden or 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,79 @@ | ||
| params: | ||
| seed: 42 | ||
|
|
||
| # environment wrapper clipping | ||
| env: | ||
| # added to the wrapper | ||
| clip_observations: 5.0 | ||
| # can make custom wrapper? | ||
| clip_actions: 1.0 | ||
|
|
||
| algo: | ||
| name: a2c_continuous | ||
|
|
||
| model: | ||
| name: continuous_a2c_logstd | ||
|
|
||
| # doesn't have this fine grained control but made it close | ||
| network: | ||
| name: actor_critic | ||
| separate: False | ||
| space: | ||
| continuous: | ||
| mu_activation: None | ||
| sigma_activation: None | ||
|
|
||
| mu_init: | ||
| name: default | ||
| sigma_init: | ||
| name: const_initializer | ||
| val: 0 | ||
| fixed_sigma: True | ||
| mlp: | ||
| units: [256] | ||
| activation: elu | ||
| d2rl: False | ||
|
|
||
| initializer: | ||
| name: default | ||
| regularizer: | ||
| name: None | ||
|
|
||
| load_checkpoint: False # flag which sets whether to load the checkpoint | ||
| load_path: '' # path to the checkpoint to load | ||
|
|
||
| config: | ||
| name: cartpole_features | ||
| env_name: rlgpu | ||
| device: 'cuda:0' | ||
| device_name: 'cuda:0' | ||
| multi_gpu: False | ||
| ppo: True | ||
| mixed_precision: False | ||
| normalize_input: True | ||
| normalize_value: True | ||
| value_bootstraop: True | ||
| num_actors: -1 # configured from the script (based on num_envs) | ||
| reward_shaper: | ||
| scale_value: 1.0 | ||
| normalize_advantage: True | ||
| gamma: 0.99 | ||
| tau : 0.95 | ||
| learning_rate: 3e-4 | ||
| lr_schedule: adaptive | ||
| kl_threshold: 0.008 | ||
| score_to_win: 20000 | ||
| max_epochs: 5000 | ||
| save_best_after: 50 | ||
| save_frequency: 25 | ||
| grad_norm: 1.0 | ||
| entropy_coef: 0.0 | ||
| truncate_grads: True | ||
| e_clip: 0.2 | ||
| horizon_length: 16 | ||
| minibatch_size: 2048 | ||
| mini_epochs: 8 | ||
| critic_coef: 4 | ||
| clip_value: True | ||
| seq_length: 4 | ||
| bounds_loss_coef: 0.0001 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.