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

Errors when run gym_tvizdoom #3

Open
Tie-1 opened this issue Apr 3, 2022 · 1 comment
Open

Errors when run gym_tvizdoom #3

Tie-1 opened this issue Apr 3, 2022 · 1 comment

Comments

@Tie-1
Copy link

Tie-1 commented Apr 3, 2022

I followed install instructions from the [README]
After running
python train.py --num-workers=2 --env-id=TrackObjSmallMazeRandFlip-v2 --log-dir=save/to --max-global-steps=29999 --val-model-secs=30 --max-val-episodes=2
some errors appeared:

I tensorflow/core/common_runtime/simple_placer.cc:827] global/RNN/while/BasicLSTMCell/split/split_dim: (Const)/job:worker/replica:0/task:1/cpu:0
global/RNN/while/BasicLSTMCell/Linear/concat/concat_dim: (Const): /job:worker/replica:0/task:1/cpu:0
I tensorflow/core/common_runtime/simple_placer.cc:827] global/RNN/while/BasicLSTMCell/Linear/concat/concat_dim: (Const)/job:worker/replica:0/task:1/cpu:0
[2022-04-03 20:38:01,889] Called reset on <Unvectorize<VectorizeFilter[<class 'envs.DiagnosticsInfoI'>]<VizdoomRescale84x84x3<Vectorize<TimeLimit>>>>> before configuring. Configuring automatically with default arguments
[2022-04-03 20:38:01,910] Starting training at step=30175
[2022-04-03 20:38:01,923] reached 30175 steps. worker stopped.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/home/dell/anaconda3/envs/tracker/lib/python3.5/site-packages/gym/utils/closer.py", line 67, in close
closeable.close()
File "/home/dell/anaconda3/envs/tracker/lib/python3.5/site-packages/gym/core.py", line 188, in close
self.render(close=True)
File "/home/dell/anaconda3/envs/tracker/lib/python3.5/site-packages/gym/core.py", line 165, in render
return self._render(close=close)
File "/home/dell/hzt/tracker/gym-tvizdoom/gym_tvizdoom/envs/track_obj_small_maze_rand_flip_v2_env.py", line 122, in _render
return self._flip_screen(ret)
File "/home/dell/hzt/tracker/gym-tvizdoom/gym_tvizdoom/envs/track_obj_small_maze_rand_flip_v2_env.py", line 103, in _flip_screen
return np.fliplr(screen)
File "/home/dell/anaconda3/envs/tracker/lib/python3.5/site-packages/numpy/lib/twodim_base.py", line 81, in fliplr
raise ValueError("Input must be >= 2-d.")
ValueError: Input must be >= 2-d.
terminate called without an active exception
Aborted (core dumped)

Ubuntu 20.04
Python 3.7
tensorflow 0.12
I spent too much time on it, but still not fix it out, can you give me some advice? Thank you!

@whluo
Copy link
Owner

whluo commented Apr 8, 2022

I followed install instructions from the [README] After running python train.py --num-workers=2 --env-id=TrackObjSmallMazeRandFlip-v2 --log-dir=save/to --max-global-steps=29999 --val-model-secs=30 --max-val-episodes=2 some errors appeared:

I tensorflow/core/common_runtime/simple_placer.cc:827] global/RNN/while/BasicLSTMCell/split/split_dim: (Const)/job:worker/replica:0/task:1/cpu:0
global/RNN/while/BasicLSTMCell/Linear/concat/concat_dim: (Const): /job:worker/replica:0/task:1/cpu:0
I tensorflow/core/common_runtime/simple_placer.cc:827] global/RNN/while/BasicLSTMCell/Linear/concat/concat_dim: (Const)/job:worker/replica:0/task:1/cpu:0
[2022-04-03 20:38:01,889] Called reset on <Unvectorize<VectorizeFilter[<class 'envs.DiagnosticsInfoI'>]<VizdoomRescale84x84x3<Vectorize>>>> before configuring. Configuring automatically with default arguments
[2022-04-03 20:38:01,910] Starting training at step=30175
[2022-04-03 20:38:01,923] reached 30175 steps. worker stopped.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/home/dell/anaconda3/envs/tracker/lib/python3.5/site-packages/gym/utils/closer.py", line 67, in close
closeable.close()
File "/home/dell/anaconda3/envs/tracker/lib/python3.5/site-packages/gym/core.py", line 188, in close
self.render(close=True)
File "/home/dell/anaconda3/envs/tracker/lib/python3.5/site-packages/gym/core.py", line 165, in render
return self._render(close=close)
File "/home/dell/hzt/tracker/gym-tvizdoom/gym_tvizdoom/envs/track_obj_small_maze_rand_flip_v2_env.py", line 122, in _render
return self._flip_screen(ret)
File "/home/dell/hzt/tracker/gym-tvizdoom/gym_tvizdoom/envs/track_obj_small_maze_rand_flip_v2_env.py", line 103, in _flip_screen
return np.fliplr(screen)
File "/home/dell/anaconda3/envs/tracker/lib/python3.5/site-packages/numpy/lib/twodim_base.py", line 81, in fliplr
raise ValueError("Input must be >= 2-d.")
ValueError: Input must be >= 2-d.
terminate called without an active exception
Aborted (core dumped)

Ubuntu 20.04 Python 3.7 tensorflow 0.12 I spent too much time on it, but still not fix it out, can you give me some advice? Thank you!

Thanks for your interest. Have you strictly followed the instructions in this repo to set up the gym-tvizdoom?

https://bitbucket.org/pengsun000/gym-tvizdoom/src/master/

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

2 participants