This is a centralized multi-agent deep Q-network built on PyTorch.
Operate the model:
- python run.py -t -r -p
- -p enter the evaluation mode
- -t trains the existing model
- -t -r trains the model from scratch
-
./Envs folder includes two multi-shepherd environments totally. The multi_agent_Env2.py is built up based on the Strombom Model and velocity matching mechanism was added. The multi_agent_environment.py is built up based on the Reynold Dynamics. Each environment can be used by the model.
-
Model structure details are defined in the model.py.
-
Some pretrained model were stored in the ./model folder. And the other model you trained will also be stored in this folder. Remember to change the checkpoint name in the parameters.py!