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

Failed to run imitation learning example #55

Open
jlee52 opened this issue Jan 11, 2025 · 0 comments
Open

Failed to run imitation learning example #55

jlee52 opened this issue Jan 11, 2025 · 0 comments

Comments

@jlee52
Copy link

jlee52 commented Jan 11, 2025

Hi,

I encountered an issue when running the imitation learning example with CUDA enabled.
Upon executing launcher.py with the USE_CUDA flag set to True, I received the following errors:

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!
Experiment failed with parameters:
{'env_id': 'HumanoidMuscle.walk', 'n_epochs': 400, 'n_steps_per_epoch': 100000, 'n_steps_per_fit': 1000, 'n_eval_episodes': 10, 'n_epochs_save': 25, 'gamma': 0.99, 'results_dir': './logs/loco_mujoco_evalution_2025-01-11_13-10-37/env_id___HumanoidMuscle.walk', 'use_cuda': True, 'seed': 0}
Traceback (most recent call last):

The only modification I made to launcher.py was enabling the USE_CUDA flag. For context, this example is being run in a virtual environment after a fresh installation of loco-mujoco. I attached full error logs, error_logs.txt.

I would appreciate any advice on how to resolve this issue and successfully run the script with CUDA enabled.

Thank you.

@jlee52 jlee52 changed the title Failed to train with imitation learning example launcher Failed to run imitation learning example Jan 11, 2025
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

1 participant