(JAIR'2022) A mini-scale reproduction code of the AlphaStar program. Note: the original AlphaStar is the AI proposed by DeepMind to play StarCraft II. JAIR = Journal of Artificial Intelligence Research.
(base) zhq@Ubuntu20:~/Doctor/RL_Project/mini-AlphaStar$ python run.py
pygame 2.0.1 (SDL 2.0.14, Python 3.8.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
run init
cudnn available
cudnn version 7605
==> Making model..
The number of parameters of model is 2638715
==> Preparing data..
0%| | 0/1 [00:00<?, ?it/s]replay_path: ./data/replay_data_tensor_new/d55bf6b94d417716ca9caf36f065727efe93aa0059893e1000e9a5afb79a98a2.pt
100%|████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 1.54it/s]
0%| | 0/1 [00:00<?, ?it/s]replay_path: ./data/replay_data_tensor_new/d55bf6b94d417716ca9caf36f065727efe93aa0059893e1000e9a5afb79a98a2.pt
100%|█████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 47127.01it/s]
Traceback (most recent call last):
File "run.py", line 47, in <module>
sl_train_by_tensor.test(on_server=P.on_server)
File "/home/zhq/Doctor/RL_Project/mini-AlphaStar/alphastarmini/core/sl/sl_train_by_tensor.py", line 463, in test
main_worker(DEVICE)
File "/home/zhq/Doctor/RL_Project/mini-AlphaStar/alphastarmini/core/sl/sl_train_by_tensor.py", line 161, in main_worker
val_set = ConcatDataset(val_list)
File "/home/zhq/anaconda3/lib/python3.8/site-packages/torch/utils/data/dataset.py", line 200, in __init__
assert len(datasets) > 0, 'datasets should not be an empty iterable' # type: ignore
AssertionError: datasets should not be an empty iterable
您好,我又来了,前一段时间一直在做别的事情,最近打算赶紧研究下mini-AlphaStar。让人惊喜的是mini-AlphaStar已经更新到1.04了!然后我按照readme操作了一番,遇到了如下的问题:
(1)我按照知乎里说的,下载了与我的StarCraftII相同版本的回放文件,然后将回放文件复制到 ./data/replays/,然后运行 transform_replay_data.test,结果在 ./data/replay_data_tensor_new文件夹内没有生成任何文件,并输出如下信息
(2) 在步骤(1)中文件转换没有成功,然后我对 ./data/replays/ 中的文件进行过滤,只保留 人族v人族 的回放文件,并将过滤后的回放文件保存在 ./data/filtered_replays_1/ 中。然后运行 transform_replay_data.test,结果 replay_data_tensor_new/文件夹中只生成了一个.pt文件。然后假设到目前为之没有错误,继续运行 sl_train_by_tensor.test,但是出了错误,输出如下:
(3) 直接运行rl_vs_computer_wo_replay.test,则提示如下错误信息
(4) 运行 rl_train_with_replay.test进行 rl训练,则提示如下错误