Comments (1)
(base) root@lang:~# pip show tensorflow-gpu
Name: tensorflow-gpu
Version: 2.2.0
Summary: TensorFlow is an open source machine learning framework for everyone.
Home-page: https://www.tensorflow.org/
Author: Google Inc.
Author-email: [email protected]
License: Apache 2.0
Location: /root/anaconda3/lib/python3.7/site-packages
Requires: keras-preprocessing, wheel, six, protobuf, tensorflow-estimator, wrapt, grpcio, google-pasta, h5py, absl-py, tensorboard, scipy, astunparse, opt-einsum, gast, termcolor, numpy
Required-b
and I changed some code to make it run on tensorflow 2.2:
/multi-agent-emergence-environments/ma_policy/load_policy.py
file:
def load_policy(path, env=None, scope='policy'):
'''
Load a policy.
Args:
path (string): policy path
env (Gym.Env): This will update the observation space of the
policy that is returned
scope (string): The base scope for the policy variables
'''
# TODO this will probably need to be changed when trying to run policy on GPU
# try change tf.get_default_session to tf.compat.v1.get_default_session
if tf.compat.v1.get_default_session() is None:
# try change tf.ConfigProto to tf.compat.v1.ConfigProto
tf_config = tf.compat.v1.ConfigProto(
inter_op_parallelism_threads=1,
intra_op_parallelism_threads=1)
# try change tf.ConfigProto to tf.compat.v1.ConfigProto
sess = tf.compat.v1.Session(config=tf_config)
sess.__enter__()
from multi-agent-emergence-environments.
Related Issues (20)
- ModuleNotFoundError: No module named 'gym.spaces.dict_space' HOT 2
- Jsonnet error when unrolling policy HOT 2
- How to training agents HOT 2
- Observation parameters
- How to determine successful installation?
- sorry, Delete this issue,please
- A
- Selling Out To Microsoft!!! MAJOR ISSUE...
- an ERROR was found!!
- Supporting project for everyone who wants to work with multi-agent-emergence-environments HOT 1
- How to run this project ?
- Where is the Leaderboard on this Env? Which is the SOTA algorithm?
- How do i solve this error ? No module named 'mae_envs' HOT 1
- Is there any memory requirement of running this project?
- [Suggestion] Switch to a free physics engine HOT 3
- gym.error.DoubleWrapperError: Attempted to double wrap with Wrapper: AgentGeomObsMask2D HOT 2
- Error when running the four environment files of multi-agent-emergence-environments
- Error when loading pre-trained policy HOT 1
- Can anyone reproduce the hide-and-seek training code for this environment? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multi-agent-emergence-environments.