Antonio Serrano Muñoz commited on
Commit ·
59c7572
1
Parent(s): c95d51d
Add files
Browse filesFiles changed (3)
- README.md+84-1
- agent.pickleAdded+3
- agent.ptAdded+3
123---license: mit---1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586---library_name: skrltags:- deep-reinforcement-learning- reinforcement-learning- skrlmodel-index:- name: PPOresults:- metrics:- type: mean_rewardvalue: -8.89 +/- 10.3name: Total reward (mean)task:type: reinforcement-learningname: reinforcement-learningdataset:name: IsaacGymEnvs-FactoryTaskNutBoltScrewtype: IsaacGymEnvs-FactoryTaskNutBoltScrew---<!-- ---torch: -21.51 +/- 14.99jax: -35.77 +/- 0.39numpy: -8.89 +/- 10.3--- --># IsaacGymEnvs-FactoryTaskNutBoltScrew-PPOTrained agent for [NVIDIA Isaac Gym Preview](https://github.com/NVIDIA-Omniverse/IsaacGymEnvs) environments.- **Task:** FactoryTaskNutBoltScrew- **Agent:** [PPO](https://skrl.readthedocs.io/en/latest/api/agents/ppo.html)# Usage (with skrl)Note: Visit the skrl [Examples](https://skrl.readthedocs.io/en/latest/intro/examples.html) section to access the scripts.* PyTorch```pythonfrom skrl.utils.huggingface import download_model_from_huggingface# assuming that there is an agent named `agent`path = download_model_from_huggingface("skrl/IsaacGymEnvs-FactoryTaskNutBoltScrew-PPO", filename="agent.pt")agent.load(path)```* JAX```pythonfrom skrl.utils.huggingface import download_model_from_huggingface# assuming that there is an agent named `agent`path = download_model_from_huggingface("skrl/IsaacGymEnvs-FactoryTaskNutBoltScrew-PPO", filename="agent.pickle")agent.load(path)```# HyperparametersNote: Undefined parameters keep their values by default.```python# https://skrl.readthedocs.io/en/latest/api/agents/ppo.html#configuration-and-hyperparameterscfg = PPO_DEFAULT_CONFIG.copy()cfg["rollouts"] = 128 # memory_sizecfg["learning_epochs"] = 8cfg["mini_batches"] = 32 # 128 * 128 / 512cfg["discount_factor"] = 0.99cfg["lambda"] = 0.95cfg["learning_rate"] = 1e-4cfg["random_timesteps"] = 0cfg["learning_starts"] = 0cfg["grad_norm_clip"] = 0cfg["ratio_clip"] = 0.2cfg["value_clip"] = 0.2cfg["clip_predicted_values"] = Truecfg["entropy_loss_scale"] = 0.0cfg["value_loss_scale"] = 1.0cfg["kl_threshold"] = 0.016cfg["rewards_shaper"] = Nonecfg["state_preprocessor"] = RunningStandardScalercfg["state_preprocessor_kwargs"] = {"size": env.observation_space, "device": device}cfg["value_preprocessor"] = RunningStandardScalercfg["value_preprocessor_kwargs"] = {"size": 1, "device": device}```
123version https://git-lfs.github.com/spec/v1oid sha256:b2ab85cd58e3e0e4df41dc0e319a9f368b7b33f44434d9d38de31e5cfb1aafdesize 1202993123version https://git-lfs.github.com/spec/v1oid sha256:9f60e87bef672a33f656d3531c9ef247367cc2a5831d93586599d7d18cadbbb1size 622478README.md+84-1
agent.pickleAdded+3
agent.ptAdded+3