Giter VIP home page Giter VIP logo

pysc2_rl's Introduction

pysc2_rl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pysc2_rl's Issues

TypeError: Can't index by type: <class 'NoneType'>; only int, string or slice

when i run CollectMineral(ppo)-->stata_group:
state = np.dstack((marine_map, mineral_map)).reshape(32322)
came out:
E0330 17:18:23.828569 81116 _logging.py:54] close status: 16896
W0330 17:18:26.929746 81116 sc_process.py:200] Killing the process.
Traceback (most recent call last):
File "E:/Anaconda/Lib/site-packages/pysc2/agents/pysc2_rl-master/CollectMineral(ppo)/CollectMineral.py", line 143, in
train()
File "E:/Anaconda/Lib/site-packages/pysc2/agents/pysc2_rl-master/CollectMineral(ppo)/CollectMineral.py", line 71, in train
state = obs2state(obs)
File "E:\Anaconda\Lib\site-packages\pysc2\agents\pysc2_rl-master\CollectMineral(ppo)\state_group.py", line 33, in obs2state
state = np.dstack((marine_map, mineral_map)).reshape(32322)
File "C:\Users\ASUS\AppData\Roaming\Python\Python36\site-packages\numpy\lib\shape_base.py", line 699, in dstack
return _nx.concatenate([atleast_3d(_m) for _m in tup], 2)
File "C:\Users\ASUS\AppData\Roaming\Python\Python36\site-packages\numpy\lib\shape_base.py", line 699, in
return _nx.concatenate([atleast_3d(_m) for _m in tup], 2)
File "C:\Users\ASUS\AppData\Roaming\Python\Python36\site-packages\numpy\core\shape_base.py", line 199, in atleast_3d
result = ary[:,:, newaxis]
File "E:\Anaconda\lib\site-packages\pysc2\lib\named_array.py", line 145, in getitem
index = _get_index(obj, index)
File "E:\Anaconda\lib\site-packages\pysc2\lib\named_array.py", line 207, in _get_index
"Can't index by type: %s; only int, string or slice" % type(index))
TypeError: Can't index by type: <class 'NoneType'>; only int, string or slice

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.