sc2_imitation_learning icon indicating copy to clipboard operation
sc2_imitation_learning copied to clipboard

Trouble Preparing Dataset?

Open windowshopr opened this issue 3 years ago • 1 comments

Just discovered this repo, and I'm extremely interested in getting started with SC2 RL, but I'm quickly finding that most of these repo's aren't maintained anymore/they're from versions of the games LONG ago, so I'm hoping to get some insight here.

Now, using this repo, and running Windows 10, Python 3.7.9, and SC2 version 5.0.9, I'm trying to download some replays and prepare the dataset for them. I used this command to download some 4.7.1 datasets (again note, I'm running version 5.0.9 of the game):

python -m scripts.download_replays --key XXXXXXXXXXXXXXXXX --secret XXXXXXXXXXXX --version 4.7.1 --filter_version delete

Using version 5.0.9 doesn't work as there are no replays available for that version.

Being that these are older versions of the replays, I'm only attempting to create a dataset from 2 of the replay files downloaded. I opened/viewed both replays manually to make sure that that version of the game and map were downloaded.

Then, I want to prepare the dataset from using the following command:

python -m scripts.build_dataset --gin_file ./configs/1v1/build_dataset.gin --replays_path ./replay --dataset_path ./data/datasets/1v1 --num_workers 1

My replay path is correct, and the script starts, but doesn't seem to "do" anything at the end. It runs without error, but I don't get a dataset file. My entire output (for 2 replays, 1 worker) looks like this:

image

My guess is it has something to do with versions of stuff, as I see a lot of people struggle with here, but maybe you'd have some insight into what I can troubleshoot? Would love to get this going. Thanks!!

windowshopr avatar Mar 26 '22 03:03 windowshopr

Hi! Could it be that both replays do not satisfy the filter constraints configured in configs/1v1/build_dataset.gin?

chscheller avatar May 10 '22 12:05 chscheller