Deep_reinforcement_learning_Course icon indicating copy to clipboard operation
Deep_reinforcement_learning_Course copied to clipboard

[Policy Gradients with Doom] - ValueError: cannot reshape array of size 9031680 into shape (1,84,84,4)

Open SamHSlva opened this issue 7 years ago • 1 comments

Hi, I have tried to run the Policy Gradient with Doom in my Desktop, but I am running into the following error:

Traceback (most recent call last): File "Doom_Grad.py", line 357, in <module> states_mb, actions_mb, rewards_of_batch, discounted_rewards_mb, nb_episodes_mb = make_batch(batch_size, stacked_frames) File "Doom_Grad.py", line 279, in make_batch feed_dict={PGNetwork.inputs_: state.reshape(1, *state_size)}) ValueError: cannot reshape array of size 9031680 into shape (1,84,84,4)

I was wondering if anyone could help me in this part.

SamHSlva avatar Oct 04 '18 19:10 SamHSlva

Did you write the preprocess function properly so that it can resize the array to 84 by 84?

AbhishekAndriod123 avatar Apr 09 '19 14:04 AbhishekAndriod123