Deep_reinforcement_learning_Course icon indicating copy to clipboard operation
Deep_reinforcement_learning_Course copied to clipboard

Deep Q Learning - Doom

Open aneekdas96 opened this issue 7 years ago • 4 comments

state, stacked_frames = stack_frames(stacked_frames, state, True) File "doom_rl.py", line 80, in stack_frames frame = preprocess_frame(state) File "doom_rl.py", line 71, in preprocess_frame preprocessed_frame = transform.resize(normalized_frame, [84,84]) File "C:\Users\dcane\Anaconda3\envs\tf_gpu\lib\site-packages\skimage\transform_warps.py", line 169, in resize preserve_range=preserve_range) File "C:\Users\dcane\Anaconda3\envs\tf_gpu\lib\site-packages\skimage\transform_warps.py", line 896, in warp _clip_warp_output(image, warped, order, mode, cval, clip) File "C:\Users\dcane\Anaconda3\envs\tf_gpu\lib\site-packages\skimage\transform_warps.py", line 648, in _clip_warp_output min_val = input_image.min() File "C:\Users\dcane\Anaconda3\envs\tf_gpu\lib\site-packages\numpy\core_methods.py", line 32, in _amin return umr_minimum(a, axis, None, out, keepdims, initial) ValueError: zero-size array to reduction operation minimum which has no identity

aneekdas96 avatar Dec 20 '18 18:12 aneekdas96

Has someone managed to solve this? Im having the same problem. It is rather similar to #23, however the solution did not solve it for me.

CodeGrinder96 avatar Feb 08 '19 15:02 CodeGrinder96

Has someone managed to solve this? Im having the same problem. It is rather similar to #23, however the solution did not solve it for me.

I am also having simmilar problem on windows 10 and anaconda environenment, any fixes will be highly appreciated

sourabhMajumdar avatar Mar 17 '19 20:03 sourabhMajumdar

I think I had this problem to, the issue is that the frames you get have the color channel first instead of last. If you want check if you have the same issue, print the shape of the frames in preprocessing_frame. Because the grayscaling might screw up your frame because the color channel is first. To solve it just transpose the frame

Florisbruinsma avatar Jul 01 '19 11:07 Florisbruinsma

I think I had this problem to, the issue is that the frames you get have the color channel first instead of last. If you want check if you have the same issue, print the shape of the frames in preprocessing_frame. Because the grayscaling might screw up your frame because the color channel is first. To solve it just transpose the frame

Hi Could you post a code solution as to how I could transpose the frame?

David-Sangojinmi avatar Feb 10 '20 22:02 David-Sangojinmi