Loading

NeurIPS 2022 - The Neural MMO Challenge

Imitation Learning for the Neural MMO Challenge

Tutorial of imitation learning

temmie

Tutorial of imitation learning

Installation

Clone the repository of IL baseline.

git clone http://gitlab.aicrowd.com/temmie/nmmo-imitation-learning.git

Install required packages.

cd nmmo-imitation-learning
pip install -r requirements.txt

Download replays

  1. Download replay files from Resources.

  2. Put .lzma files to the directory: ./dataset/replays/

    .
    |-- README.md
    |-- dataset
    |   `-- replays
    |       |-- replay-0-0.lzma
    |       |-- replay-0-1.lzma
    |       `-- ...

Prepare datasets

Parse replay files to training samples.

python prepare_dataset.py --replays_dir ./dataset/replays --npy_save_dir ./dataset/npy --num_workers 4

Train model

python imitation_learning.py --batch_size 1024 --num_workers 4 --learning_rate 0.001 --npy_save_dir ./dataset/npy

Evaluation

python eval.py --checkpoint_path checkpoints/model.pth

Submission

For successful submission, you must copy ./neural_mmo/, model checkpoint and submission.py to neurips2022-nmmo-starter-kit/my-submission/.

cp -r ./neural_mmo  "your-path-to-neurips2022-nmmo-starter-kit"/my-submission/
cp -r ./checkpoints "your-path-to-neurips2022-nmmo-starter-kit"/my-submission/
cp submission.py    "your-path-to-neurips2022-nmmo-starter-kit"/my-submission/

Important to do: Add offline: true in neurips2022-nmmo-starter-kit/aicrowd.json.

{
    "challenge_id" : "neurips-2022-the-neural-mmo-challenge",
    "authors" : [],
    "offline": true,
    "description" : "Brief description for your submission"
}

Submit your submission to AIcrowd gitlab.

cd "your-path-to-neurips2022-nmmo-starter-kit"
python tool.py submit <unique-submission-name>

Comments

You must login before you can post a comment.

Execute