Skip to content

Commit 6765d68

Browse files
Norm frame correction thanks to Mikołaj Walkowiak
1 parent 59ee2ef commit 6765d68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Deep Q Learning/Space Invaders/DQN Atari Space Invaders.ipynb

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"\n",
1616
"Our agent after 2 hours of training (as you can see it needs much more, but **for educational purposes we can see that's a good beginning**)\n",
1717
"\n",
18-
"<img src=\"https://raw.githubusercontent.com/simoninithomas/Deep_reinforcement_learning_Course/master/DQN/Space%20Invaders/assets/spaceinvaders.gif\" alt=\"Space invaders dqn\"/>\n",
18+
"<img src=\"https://raw.githubusercontent.com/simoninithomas/Deep_reinforcement_learning_Course/master/Deep%20Q%20Learning/Space%20Invaders/assets/spaceinvaders.gif\" alt=\"Space invaders dqn\"/>\n",
1919
"\n"
2020
]
2121
},
@@ -231,7 +231,8 @@
231231
" normalized_frame = cropped_frame/255.0\n",
232232
" \n",
233233
" # Resize\n",
234-
" preprocessed_frame = transform.resize(cropped_frame, [110,84])\n",
234+
" # Thanks to Mikołaj Walkowiak\n",
235+
" preprocessed_frame = transform.resize(normalized_frame, [110,84])\n",
235236
" \n",
236237
" return preprocessed_frame # 110x84x1 frame"
237238
]

0 commit comments

Comments
 (0)