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

Running Trained models with 'play_with_ai or play_gr_football.py #1

Open
synopi opened this issue Nov 14, 2023 · 0 comments
Open

Running Trained models with 'play_with_ai or play_gr_football.py #1

synopi opened this issue Nov 14, 2023 · 0 comments

Comments

@synopi
Copy link

synopi commented Nov 14, 2023

I'm having issues playing against the trained model, i've tried the below methods but haven't been successful. Can y'all point me in the right direction please. This is after training using the mappo config

python light_malib/scripts/play_gr_football.py --model_0 "/home/Desktop/GRF_MARL/logs/gr_football/full_game_5_vs_5_hard_mappo/2023-11-12-20-49-10/agent_0/agent_0-default-1/best"
[2023-11-13 15:06:39,267][WARNING] use model type: gr_football.basic_centralized_critic_pool_obs
[2023-11-13 15:06:39,296][WARNING] use model type: gr_football.built_in_5
Traceback (most recent call last):
File "Desktop/GRF_MARL/light_malib/scripts/play_gr_football.py", line 91, in
env = GRFootballEnv(0, None, cfg.rollout_manager.worker.envs[0])
File "Desktop/GRF_MARL/light_malib/envs/gr_football/env.py", line 57, in init
assert official_reward in ["scoring","checkpoints"],official_reward
AssertionError: checkpoints

and,

./play_with_ai.sh
AssertionError: Player type 'agent' can not be used with play_game.
Execution time was 0 seconds.

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