huggingface / huggingface/deep-rl-class
Unit 1: Part : Train our agent
- Dominant language
- MDX
- Stars
- 5k
- Forks
- 811
- PR merge metrics
- No merged PRs in 30d
Description
**!agents-learn ./config/ppo/Huggy.yaml --env=./trained-envs-executables/linux/Huggy/Huggy --run-id="Huggy1" --no-graphics**
when I **run the command** in codlab above, it comes to some erros. And I don't know how to solve it.
`
Traceback (most recent call last):
File "/usr/local/bin/mlagents-learn", line 33, in
sys.exit(load_entry_point('mlagents', 'console_scripts', 'mlagents-learn')())
File "/usr/local/bin/mlagents-learn", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/content/ml-agents/ml-agents/mlagents/trainers/learn.py", line 2, in
from mlagents import torch_utils
File "/content/ml-agents/ml-agents/mlagents/torch_utils/__init__.py", line 1, in
from mlagents.torch_utils.torch import torch as torch # noqa
File "/content/ml-agents/ml-agents/mlagents/torch_utils/torch.py", line 63, in
set_torch_config(TorchSettings(device=None))
File "/content/ml-agents/ml-agents/mlagents/torch_utils/torch.py", line 56, in set_torch_config
torch.set_default_dtype(torch.cuda.FloatTensor)
File "/usr/local/lib/python3.10/dist-packages/torch/__init__.py", line 1009, in set_default_dtype
_C._set_default_dtype(d)
TypeError: invalid dtype object: only floating-point types are supported as the default type
`
Is there any one can help me? If you can solve this question , please comment it. I will appeciate you!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.