inoryy / reaver

Reaver: Modular Deep Reinforcement Learning Framework. Focused on StarCraft II. Supports Gym, Atari, and MuJoCo.
MIT License
554 stars 90 forks source link

Fail to run the demo #41

Open woshiqchi opened 3 years ago

woshiqchi commented 3 years ago

When I run the demo code shown on the readme page, there is a error occured as below. RuntimeError: v1.summary.FileWriter is not compatible with eager execution. Use tf.summary.create_file_writer,or a with v1.Graph().as_default(): context

woshiqchi commented 3 years ago

The demo code is:

import reaver as rvr

env = rvr.envs.SC2Env(map_name='MoveToBeacon') agent = rvr.agents.A2C(env.obs_spec(), env.act_spec(), rvr.models.build_fully_conv, rvr.models.SC2MultiPolicy, n_envs=4) agent.run(env)

inoryy commented 3 years ago

It's probably an incompatibility with the newer TensorFlow versions, try pinning it to 2.1.x.