isaac-sim / IsaacLab

Unified framework for robot learning built on NVIDIA Isaac Sim
https://isaac-sim.github.io/IsaacLab
Other
1.56k stars 498 forks source link

[Bug Report] Error in "Training an agent with SKRL on Isaac-Reach-Franka-v0" #117

Open ninebestwon opened 10 months ago

ninebestwon commented 10 months ago

Describe the bug

Error in "Training an agent with SKRL on Isaac-Reach-Franka-v0"

In Orbit Documentation, I did 'Getting Started >> Running existing scripts >> Reinforcement Learning >> Training an agent with SKRL on Isaac-Reach-Franka-v0'

Steps to reproduce

Traceback (most recent call last):
  File "source/standalone/workflows/skrl/train.py", line 52, in <module>
    from skrl.utils.model_instantiators import deterministic_model, gaussian_model, shared_model
ImportError: cannot import name 'deterministic_model' from 'skrl.utils.model_instantiators' (/home/vision/anaconda3/envs/orbit/lib/python3.7/site-packages/skrl/utils/model_instantiators/__init__.py)
2023-09-14 06:40:39 [5,416ms] [Warning] [carb.audio.context] 1 contexts were leaked
./orbit.sh: line 209: 21167 Segmentation fault      (core dumped) ${python_exe} $@

System Info

Describe the characteristic of your environment:

Toni-SM commented 10 months ago

Hi @kyuwon416

skrl-v1.0.0 introduced some breaking changes regarding to model instantiators. Current Isaac Orbit version only works for skrl<=0.10.2. When the PR https://github.com/NVIDIA-Omniverse/Orbit/pull/109 is approved, the latest version of skrl can be used in addition to its JAX support :)

Meanwhile, use the following command to install the old supported version:

orbit -p -m pip install skrl==0.10.2
berttggg commented 10 months ago

@Toni-SM Hi, I actually tried PR #109, and successfully ran the RL task. However, with exactly the same parameters and environments (same tasks), 1.0.0 and 0.10.2 their performance is quite different, in which in 0.10.2, my robot can successfully grasp the object, whereas 1.0.0 absolutely does not.

May I know if you have any clue? Is there anything I missed?