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

DeprecationWarning: screen_size_px and minimap_size_px are deprecated. #20

Open
YuWentao95 opened this issue Sep 10, 2018 · 3 comments
Open

Comments

@YuWentao95
Copy link

YuWentao95 commented Sep 10, 2018

Hi! I tried to run the train_mineral_shards.py using pycharm on the windows 7, the error is :
Traceback (most recent call last):
File "D:\Anaconda3\lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "D:\Anaconda3\lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\Administrator.SC-201608140925\Desktop\pysc2-examples-master\common\vec_env\subproc_vec_env.py", line 20, in worker
minimap_size_px=(32, 32)) as env:
File "D:\Anaconda3\lib\site-packages\pysc2\env\sc2_env.py", line 182, in init
"screen_size_px and minimap_size_px are deprecated. Use the feature "
DeprecationWarning: screen_size_px and minimap_size_px are deprecated. Use the feature or rgb variants instead. Make sure to check your observations too since they also switched from screen/minimap to feature and rgb variants.
I hope someone can answer my question, thank you!

@Weihnachtshase
Copy link

I got the same issue

@mongolia19
Copy link

@YuWentao95
You should use the new way:
AGENT_INTERFACE_FORMAT = sc2_env.AgentInterfaceFormat(
feature_dimensions=sc2_env.Dimensions(screen=32, minimap=32)
)
pass this into the SC2Env constructor:
with sc2_env.SC2Env(
map_name="DefeatZerglingsAndBanelings",
step_mul=step_mul,
visualize=True,
game_steps_per_episode=steps * step_mul,
agent_interface_format=AGENT_INTERFACE_FORMAT) as env:

@braveryCHR
Copy link

mconv1 = layers.conv2d(tf.transpose(minimap, [0, 2, 3, 1]), num_outputs=16, kernel_size=8, stride=4, scope='mconv1')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants