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

when train, can't find sample00_rep00.npy #7

Open
dbdxnuliba opened this issue Sep 5, 2024 · 5 comments
Open

when train, can't find sample00_rep00.npy #7

dbdxnuliba opened this issue Sep 5, 2024 · 5 comments

Comments

@dbdxnuliba
Copy link

dbdxnuliba commented Sep 5, 2024

** we can only produce npy files like this by the command:
python retarget_motion_h1_all.py**
image
and how can I produce or get sample00_rep00.npy file,thanks

otherwise, when train, it shows 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'

2.Quesition2 how can we get sample01_rep01 data,as shown in the following fig
image

@JonnyDing
Copy link

@dbdxnuliba have you solve this error

@dbdxnuliba
Copy link
Author

Sorry, I haven't solved it yet, I've temporarily commented it out.

@JonnyDing
Copy link

@dbdxnuliba Agree that I think this is an example of the action library rather than the actual use. I also comment it
out

@HaoranZhangumich
Copy link

Hi, @dbdxnuliba I just wanna ask which line did you comment it out?

@cyugai
Copy link

cyugai commented Jan 13, 2025

Hi, @dbdxnuliba I just wanna ask which line did you comment it out?

I think is commenting the sample00_rep00 in the file motions_debug.yaml

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