I have followed the instructions and builds is done successfully. However, when I try to display the results, a black empty window opens for a couple of seconds and then closes and then terminal stands idle at the end of the following message body:
INFO: Analysed target //unreal:display (0 packages loaded).
INFO: Found 1 target...
Target //unreal:display up-to-date:
bazel-bin/unreal/display
INFO: Elapsed time: 0.237s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/unreal/display --env_type lab --env_name nav_maze_static_01 --use_pixel_change True --use_value_replay True --use_reward_pINFO: Build completed successfully, 1 total action
/usr/local/lib/python2.7/dist-packages/requests/init.py:91: RequestsDependencyWarning: urllib3 (1.24.1) or chardet (2.3.0) doesn't match a supported version!
RequestsDependencyWarning)
/usr/local/lib/python2.7/dist-packages/requests/init.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
2019-01-02 13:05:30.170104: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
Failed to get file attribute.
WARNING:tensorflow:From /home/behroozmb/lab/unreal/model/model.py:55: init (from tensorflow.python.ops.rnn_cell_impl) is deprecated and will be removed in a future version.
Instructions for updating:
This class is deprecated, please use tf.nn.rnn_cell.LSTMCell, which supports all the feature this cell currently has. Please replace the existing code with tf.nn.rnn_cell.LSTMCell(name='basic_lstm_cell').
WARNING:tensorflow:From /home/behroozmb/lab/unreal/model/model.py:216: calling reduce_mean (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
WARNING:tensorflow:From /home/behroozmb/lab/unreal/model/model.py:223: calling reduce_max (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
Instructions for updating:
keep_dims is deprecated, use keepdims instead
Using deprecated observation format: 'RGB_INTERLACED'
Could not find old checkpoint
Traceback (most recent call last):
File "/home/behroozmb/.cache/bazel/_bazel_behroozmb/bb2529cc1fa3397d81b46cf47dc2b994/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/unreal/display.runfiles/org_deepmind_lab/unreal/display.py", line 333, in
tf.app.run()
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "/home/behroozmb/.cache/bazel/_bazel_behroozmb/bb2529cc1fa3397d81b46cf47dc2b994/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/unreal/display.runfiles/org_deepmind_lab/unreal/display.py", line 314, in main
display.update(sess)
File "/home/behroozmb/.cache/bazel/_bazel_behroozmb/bb2529cc1fa3397d81b46cf47dc2b994/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/unreal/display.runfiles/org_deepmind_lab/unreal/display.py", line 108, in update
self.process(sess)
File "/home/behroozmb/.cache/bazel/_bazel_behroozmb/bb2529cc1fa3397d81b46cf47dc2b994/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/unreal/display.runfiles/org_deepmind_lab/unreal/display.py", line 250, in process
last_action_reward)
File "/home/behroozmb/lab/unreal/model/model.py", line 374, in run_base_policy_value_pc_q
self.base_initial_lstm_state1 : self.base_lstm_state_out[1]} )
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1328, in do_run
run_metadata)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1348, in do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.FailedPreconditionError: Attempting to use uninitialized value net-1/base_policy/W_base_fc_p
[[node net-1/base_policy/W_base_fc_p/read (defined at /home/behroozmb/lab/unreal/model/model.py:441) = IdentityT=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
Caused by op u'net_-1/base_policy/W_base_fc_p/read', defined at:
File "/home/behroozmb/.cache/bazel/_bazel_behroozmb/bb2529cc1fa3397d81b46cf47dc2b994/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/unreal/display.runfiles/org_deepmind_lab/unreal/display.py", line 333, in
tf.app.run()
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "/home/behroozmb/.cache/bazel/_bazel_behroozmb/bb2529cc1fa3397d81b46cf47dc2b994/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/unreal/display.runfiles/org_deepmind_lab/unreal/display.py", line 287, in main
display = Display(display_size)
File "/home/behroozmb/.cache/bazel/_bazel_behroozmb/bb2529cc1fa3397d81b46cf47dc2b994/execroot/org_deepmind_lab/bazel-out/k8-fastbuild/bin/unreal/display.runfiles/org_deepmind_lab/unreal/display.py", line 99, in init
for_display=True)
File "/home/behroozmb/lab/unreal/model/model.py", line 49, in init
self._create_network(for_display)
File "/home/behroozmb/lab/unreal/model/model.py", line 58, in _create_network
self._create_base_network()
File "/home/behroozmb/lab/unreal/model/model.py", line 101, in _create_base_network
self.base_pi = self._base_policy_layer(self.base_lstm_outputs) # policy output
File "/home/behroozmb/lab/unreal/model/model.py", line 152, in _base_policy_layer
W_fc_p, b_fc_p = self._fc_variable([256, self._action_size], "base_fc_p")
File "/home/behroozmb/lab/unreal/model/model.py", line 441, in _fc_variable
weight = tf.get_variable(name_w, weight_shape, initializer=fc_initializer(input_channels))
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 1487, in get_variable
aggregation=aggregation)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 1237, in get_variable
aggregation=aggregation)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 540, in get_variable
aggregation=aggregation)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 492, in _true_getter
aggregation=aggregation)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 922, in _get_single_variable
aggregation=aggregation)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 183, in call
return cls._variable_v1_call(*args, **kwargs)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 146, in _variable_v1_call
aggregation=aggregation)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 125, in
previous_getter = lambda **kwargs: default_variable_creator(None, **kwargs)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variable_scope.py", line 2444, in default_variable_creator
expected_shape=expected_shape, import_scope=import_scope)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 187, in call
return super(VariableMetaclass, cls).call(*args, **kwargs)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 1329, in init
constraint=constraint)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/variables.py", line 1491, in _init_from_args
self._snapshot = array_ops.identity(self._variable, name="read")
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 81, in identity
return gen_array_ops.identity(input, name=name)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 3454, in identity
"Identity", input=input, name=name)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
return func(*args, **kwargs)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 3274, in create_op
op_def=op_def)
File "/home/behroozmb/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1770, in init
self._traceback = tf_stack.extract_stack()
FailedPreconditionError (see above for traceback): Attempting to use uninitialized value net_-1/base_policy/W_base_fc_p
[[node net_-1/base_policy/W_base_fc_p/read (defined at /home/behroozmb/lab/unreal/model/model.py:441) = IdentityT=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
^CProcess Process-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/home/behroozmb/lab/unreal/environment/lab_environment.py", line 29, in worker
command, arg = conn.recv()
KeyboardInterrupt
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 325, in _exit_function
p.join()
File "/usr/lib/python2.7/multiprocessing/process.py", line 145, in join
res = self._popen.wait(timeout)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 154, in wait
return self.poll(0)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 135, in poll
pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/usr/lib/python2.7/multiprocessing/util.py", line 325, in _exit_function
p.join()
File "/usr/lib/python2.7/multiprocessing/process.py", line 145, in join
res = self._popen.wait(timeout)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 154, in wait
return self.poll(0)
File "/usr/lib/python2.7/multiprocessing/forking.py", line 135, in poll
pid, sts = os.waitpid(self.pid, flag)
Any idea how can I solve this problem. Is the main root of problem the build process or the display process.
Thanks