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

GPU and CPU give different results #36

Open
ZQX323 opened this issue Apr 11, 2023 · 2 comments
Open

GPU and CPU give different results #36

ZQX323 opened this issue Apr 11, 2023 · 2 comments

Comments

@ZQX323
Copy link

ZQX323 commented Apr 11, 2023

Hi Jason,

In order to get more contact information, I want to try to use CPU to run ASE. However, the results of CPU and GPU are somewhat different. You can see that during the CPU simulation, the friction between the robot's feet and the ground will be smaller, and there will be a slippery state, and when I print self._contact_forces under humanoid.py, the result is very wrong, basically 0. Do you have any idea about this?

command:
python ase/run.py --test --task HumanoidStrike --num_envs 16 --cfg_env ase/data/cfg/humanoid_sword_shield_strike.yaml --cfg_train ase/data/cfg/train/rlg/hrl_humanoid.yaml --motion_file ase/data/motions/reallusion_sword_shield/RL_Avatar_Idle_Ready_Motion.npy --llc_checkpoint ase/data/models/ase_llc_reallusion_sword_shield.pth --checkpoint ase/data/models/ase_hlc_strike_reallusion_sword_shield.pth --sim_device cpu --rl_device cpu

Besides I add a config['device_name'] = 'cpu' in init funtion under ase/learning/common_player.py to make sure policy also use cpu.

Thanks in advance!

@xbpeng
Copy link
Collaborator

xbpeng commented Apr 15, 2023

We've only tested this code on the GPU, so I've never tried running on the CPU before. I'm surprised that the results will be that different though. Maybe some settings are somehow not configured properly for the CPU simulator somewhere? Sorry I've never tried this before, so don't really have much insight to share on that.

@ZQX323
Copy link
Author

ZQX323 commented Apr 15, 2023

I haven't been able to figure out what the problem is. Nonetheless, thank you for your response.

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

2 participants