edbeeching / godot_rl_agents

An Open Source package that allows video game creators, AI researchers and hobbyists the opportunity to learn complex behaviors for their Non Player Characters or agents
MIT License
942 stars 69 forks source link

Unable to install RL agents. #24

Closed Jetpackjules11 closed 1 year ago

Jetpackjules11 commented 1 year ago

It says package not found:

(base) PS C:\Users\Jetpackjules\Downloads\godot_rl_agents-0.2.2> conda env create Collecting package metadata (repodata.json): done Solving environment: failed

ResolvePackageNotFound:

edbeeching commented 1 year ago

This is a windows issue that I will resolve in a version I will release in the coming weeks. Please refer to this github issue for a temporary fix: https://github.com/edbeeching/godot_rl_agents/issues/14#issuecomment-1105764165

Jetpackjules11 commented 1 year ago

That worked perfectly! I managed to finish the installation process.

But, when I try to launch the example projects.. I get this (nothing ahppens when I try to run them and ignore/fix dependencies):

image

And this when I click "open anyway" image

When I try to ignore all these errors and run the project anyway, a window opens then immediatly closes, and I get these messages: image

(This is for the JumperHard project, but the same issue occurs with all the others examples)

Am I missing a dependancy/something else?

Jetpackjules11 commented 1 year ago

Oops meant to keep it open sorry. (Look at message above)

yaelatletl commented 1 year ago

Check on the \plugin\addons\ directory, you will find a folder named godot_rl_agents you will find a file with the same name inside the res:://addons/ directory of the example you're trying to run, delete it and then place the folder there 😄

Jetpackjules11 commented 1 year ago

Thanks that fixed it!

Also encountered another issue (I seem to be a magnet for these)...

When I try to train or tun some of the examples, I recieve this message: image

Here is the text in a clearer format:---------------------------------------------------------------------------------- 2022-12-12 22:28:46,053 WARNING insufficient_resources_manager.py:122 -- Ignore this message if the cluster is autoscaling. You asked for 5.0 cpu and 1.0 gpu per trial, but the cluster only has 12.0 cpu and 0 gpu. Stop the tuning job and adjust the resources requested per trial (possibly via resources_per_trial or via num_workers for rllib) and/or add more resources to your Ray runtime. == Status == Current time: 2022-12-12 22:28:50 (running for 00:04:04.28) Memory usage on this node: 9.9/32.0 GiB Using FIFO scheduling algorithm. Resources requested: 0/12 CPUs, 0/0 GPUs, 0.0/14.19 GiB heap, 0.0/7.1 GiB objects Result logdir: C:\Users\Jetpackjules\ray_results\PPO/ball_chase Number of trials: 1/1 (1 PENDING) +-----------------------+----------+-------+ | Trial name | status | loc | |-----------------------+----------+-------| | PPO_godot_d669a_00000 | PENDING | | +-----------------------+----------+-------+

When I try to run the godot project, I just see the balls not moving... image

Is my GPU unsupported? (I have a AMD Radeon 5600XT)

Jetpackjules11 commented 1 year ago

UPDATE: I was actually able to get everything working with some slight changes for windows!

But I still can't get my GPU to be seen (I have to set GPUs to zero in config for the training to run)

edbeeching commented 1 year ago

Unfortunately, most deep learning frameworks only support NVidia GPUs. For simple envs such as this one, you should be ok with using the CPUs but you may struggle with more complicated environments. I will close it for now but feel free to reopen it if you have any other issues / questions