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

How to use QMIX algorithm? #11

Open
leavehamal opened this issue Nov 17, 2023 · 1 comment
Open

How to use QMIX algorithm? #11

leavehamal opened this issue Nov 17, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@leavehamal
Copy link

When I was using the MADDPG example, I had an error replacing MADDPG_Agents with QMIX_Agents
mixer = QMIX_mixer(config.dim_state[0], config.hidden_dim_mixing_net, config.hidden_dim_hyper_net,
TypeError: 'NoneType' object is not subscriptable
I would like to know how to correctly use QMIX algorithm, hope the author can give an example, thank you

@wenzhangliu
Copy link
Collaborator

wenzhangliu commented Nov 17, 2023

Thank you for the advice. I have updated the ./examples folder by adding QMIX examples of SMAC environments. The examples can be found now at https://github.com/agi-brain/xuance/tree/master/examples/qmix.

You can run the examples of QMIX by typing the following command in the terminal:

python qmix_sc2.py --env sc2 --env 3m --seed 1 --test 0 --device "cuda:0" --benchmark 1 --config "./qmix_sc2_configs/3m.yaml"

or you can run it by just typing python qmix_sc2.py with default settings.

Hope this can help you!

@wenzhangliu wenzhangliu added the help wanted Extra attention is needed label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants