chris-chris / pysc2-examples

StarCraft II - pysc2 Deep Reinforcement Learning Examples
Apache License 2.0
758 stars 355 forks source link

Make deep q work with PySC2 2.0 #30

Closed keeeeenw closed 4 years ago

keeeeenw commented 4 years ago

This commit is testing with PySC2 2.0, Starcraft 4.10, tensorflow 1.14 and baselines TOT with pull request 1034.

This change resolves the following issues:

  1. mse is missing from baselines.a2c.utils
  2. BatchInput is removed from baselines
  3. mlp and cnn_to_mlp are removed from baselines
  4. The BatchInput dimension and various dimensions need to be changed to resolve https://github.com/chris-chris/pysc2-examples/issues/23
  5. Change screen to feature_screen
  6. players need to be specified as part of the SC2Env parameter
  7. agent_interface_format should be used to specify the screen and minimap size.
keeeeenw commented 4 years ago

There is one more bug to fix for deepq_mineral_shards to work properly. The learn() function is currently returning a tuple of ActWrapper which is not handled properly by the client. I will put up the fix shortly.