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

Issue running StarCraft II agent on CPU only setup #23

Open
y1han opened this issue Jan 28, 2019 · 3 comments
Open

Issue running StarCraft II agent on CPU only setup #23

y1han opened this issue Jan 28, 2019 · 3 comments
Labels

Comments

@y1han
Copy link

y1han commented Jan 28, 2019

First, if I run python -m reaver.run --env MoveToBeacon --agent a2c --n_envs 4 2> stderr.log I get UnimplementedError (see above for traceback): Generic conv implementation only supports NHWC tensor format for now. So I changed line67 in run.py into if not int(args.gpu)
And after that, this problem seems to be solved, but I got another Problem whenever the game loading is done:ValueError: Argument is out of range for 12/Attack_screen (3/queued [2]; 0/screen [0, 0]), got: [[1], [8, 40]] The Argument that is out of range is not the same each time. So is there something I overlooked? Thx

@inoryy
Copy link
Owner

inoryy commented Jan 28, 2019

GPU is required for StarCraft II agents, make sure you've installed tensorflow-gpu

@y1han
Copy link
Author

y1han commented Jan 28, 2019

So it's not possible to work without GPU?

@inoryy
Copy link
Owner

inoryy commented Jan 28, 2019

I tried to maintain CPU version for awhile but it gets really annoying keeping up with transpositions. The issue boils down to that I use NCHW format for GPU but as you can see from error only NHWC is supported on CPU. To fix it you'd need to transpose data before inputting and set data_format = channels_last in the model.

@inoryy inoryy changed the title It seems to have some problem running on macOS? Issue running StarCraft II agent on CPU only setup Jan 29, 2019
@inoryy inoryy added the bug label Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants