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

IsaacGym gets stuck when run play.py #3

Open
Ke-Wang1017 opened this issue Aug 13, 2024 · 4 comments
Open

IsaacGym gets stuck when run play.py #3

Ke-Wang1017 opened this issue Aug 13, 2024 · 4 comments

Comments

@Ke-Wang1017
Copy link

Hi I followed the steps in Prepare dataset section, all steps ran well except the last command python play.py debug --task h1_view --motion_name motions_autogen_all.yaml. After I ran this the Isaacgym window pops up but then it is black and frozen. As the screen shots below show:
Screenshot from 2024-08-13 22-58-07
Screenshot from 2024-08-13 22-58-33
It seems it gets stuck on loading the policy, but the policy exists in the log/debug folder.
How can I solve this?

@dbdxnuliba
Copy link

hello, when I train the h1 ,it shows the error :

FileNotFoundError: [Errno 2] No such file or directory: '/home/nuli/rl/expressive-humanoid/ASE/ase/poselib/data/retarget_npy/sample00_rep00.npy'

(humanoid) nuli@nuli-Legion-Y9000P-IRX8:~/rl/expressive-humanoid/legged_gym/legged_gym/scripts$ python train.py debug --task h1_view --motion_name motions_debug.yaml --debug
Importing module 'gym_38' (/home/nuli/rl/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_38.so)
Setting GYM_USD_PLUG_INFO_PATH to /home/nuli/rl/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json
PyTorch version 2.4.1+cu121
Device count 1
/home/nuli/rl/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/src/gymtorch
Using /home/nuli/.cache/torch_extensions/py38_cu121 as PyTorch extensions root...
Emitting ninja build file /home/nuli/.cache/torch_extensions/py38_cu121/gymtorch/build.ninja...
Building extension module gymtorch...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
Loading extension module gymtorch...
2024-09-06 07:19:49,705 - INFO - logger - logger initialized
MOVING MOTION DATA TO GPU, USING CACHE: False
wandb: WARNING Disabling the wandb service is deprecated as of version 0.18.0 and will be removed in version 0.19.0.
Setting seed: 1
******************** Loading motion library ********************
Loading 1/24 motion files: /home/nuli/rl/expressive-humanoid/ASE/ase/poselib/data/retarget_npy/sample00_rep00.npy
Traceback (most recent call last):
File "train.py", line 72, in
train(args)
File "train.py", line 65, in train
env, env_cfg = task_registry.make_env(name=args.task, args=args)
File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/utils/task_registry.py", line 98, in make_env
env = task_class( cfg=env_cfg,
File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic_view_motion.py", line 18, in init
super().init(cfg, sim_params, physics_engine, sim_device, headless)
File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic_eval.py", line 12, in init
super().init(cfg, sim_params, physics_engine, sim_device, headless)
File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic.py", line 43, in init
self.init_motions(cfg)
File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic.py", line 118, in init_motions
self._load_motion(motion_file, cfg.motion.no_keybody)
File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic.py", line 157, in _load_motion
self._motion_lib = MotionLib(motion_file=motion_file,
File "/home/nuli/rl/expressive-humanoid/ASE/ase/utils/motion_lib.py", line 118, in init
self._load_motions(motion_file, no_keybody)
File "/home/nuli/rl/expressive-humanoid/ASE/ase/utils/motion_lib.py", line 274, in _load_motions
curr_motion = SkeletonMotion.from_file(curr_file)
File "/home/nuli/rl/expressive-humanoid/ASE/ase/poselib/poselib/core/backend/abstract.py", line 128, in from_file
d = np.load(path, allow_pickle=True).item()
File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/numpy/lib/npyio.py", line 405, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: '/home/nuli/rl/expressive-humanoid/ASE/ase/poselib/data/retarget_npy/sample00_rep00.npy'

but I there no file named sample00_rep00.npy under retarget_npy folder
image

so,do you meet such problem ,when train h1, could you please tell me how to get the data named sample00_rep00.npy,thanks

@Ke-Wang1017
Copy link
Author

hello, when I train the h1 ,it shows the error :

FileNotFoundError: [Errno 2] No such file or directory: '/home/nuli/rl/expressive-humanoid/ASE/ase/poselib/data/retarget_npy/sample00_rep00.npy'

(humanoid) nuli@nuli-Legion-Y9000P-IRX8:~/rl/expressive-humanoid/legged_gym/legged_gym/scripts$ python train.py debug --task h1_view --motion_name motions_debug.yaml --debug Importing module 'gym_38' (/home/nuli/rl/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/linux-x86_64/gym_38.so) Setting GYM_USD_PLUG_INFO_PATH to /home/nuli/rl/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/linux-x86_64/usd/plugInfo.json PyTorch version 2.4.1+cu121 Device count 1 /home/nuli/rl/IsaacGym_Preview_4_Package/isaacgym/python/isaacgym/_bindings/src/gymtorch Using /home/nuli/.cache/torch_extensions/py38_cu121 as PyTorch extensions root... Emitting ninja build file /home/nuli/.cache/torch_extensions/py38_cu121/gymtorch/build.ninja... Building extension module gymtorch... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) ninja: no work to do. Loading extension module gymtorch... 2024-09-06 07:19:49,705 - INFO - logger - logger initialized MOVING MOTION DATA TO GPU, USING CACHE: False wandb: WARNING Disabling the wandb service is deprecated as of version 0.18.0 and will be removed in version 0.19.0. Setting seed: 1 ******************** Loading motion library ******************** Loading 1/24 motion files: /home/nuli/rl/expressive-humanoid/ASE/ase/poselib/data/retarget_npy/sample00_rep00.npy Traceback (most recent call last): File "train.py", line 72, in train(args) File "train.py", line 65, in train env, env_cfg = task_registry.make_env(name=args.task, args=args) File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/utils/task_registry.py", line 98, in make_env env = task_class( cfg=env_cfg, File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic_view_motion.py", line 18, in init super().init(cfg, sim_params, physics_engine, sim_device, headless) File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic_eval.py", line 12, in init super().init(cfg, sim_params, physics_engine, sim_device, headless) File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic.py", line 43, in init self.init_motions(cfg) File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic.py", line 118, in init_motions self._load_motion(motion_file, cfg.motion.no_keybody) File "/home/nuli/rl/expressive-humanoid/legged_gym/legged_gym/envs/h1/h1_mimic.py", line 157, in _load_motion self._motion_lib = MotionLib(motion_file=motion_file, File "/home/nuli/rl/expressive-humanoid/ASE/ase/utils/motion_lib.py", line 118, in init self._load_motions(motion_file, no_keybody) File "/home/nuli/rl/expressive-humanoid/ASE/ase/utils/motion_lib.py", line 274, in _load_motions curr_motion = SkeletonMotion.from_file(curr_file) File "/home/nuli/rl/expressive-humanoid/ASE/ase/poselib/poselib/core/backend/abstract.py", line 128, in from_file d = np.load(path, allow_pickle=True).item() File "/home/nuli/anaconda3/envs/humanoid/lib/python3.8/site-packages/numpy/lib/npyio.py", line 405, in load fid = stack.enter_context(open(os_fspath(file), "rb")) FileNotFoundError: [Errno 2] No such file or directory: '/home/nuli/rl/expressive-humanoid/ASE/ase/poselib/data/retarget_npy/sample00_rep00.npy'

but I there no file named sample00_rep00.npy under retarget_npy folder image

so,do you meet such problem ,when train h1, could you please tell me how to get the data named sample00_rep00.npy,thanks

Hi I also find that there is no sample00_rep00.npy, i commented this one out and uses other files

@JonnyDing
Copy link

i meet the same error when i run python train.py debug --task h1_view --motion_name motions_debug.yaml --debug
error: FileNotFoundError: [Errno 2] No such file or directory: xxx.../ASE/ase/poselib/data/retarget_npy/sample00_rep00.npy

@HaoranZhangumich
Copy link

same issue here

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

No branches or pull requests

4 participants