simoninithomas / Deep_reinforcement_learning_Course

Implementations from the free course Deep Reinforcement Learning with Tensorflow and PyTorch
http://www.simoninithomas.com/deep-rl-course
3.77k stars 1.22k forks source link

Preprocessing returns a black screen #76

Closed EXJUSTICE closed 4 years ago

EXJUSTICE commented 4 years ago

Loving the tutorial man, trying something on Doom myself. However, I noticed that your preprocessing function using transform.resize returns a completely black screen.

Someone on stackoverflow suggested it was due to the normalization function (dividing by 255.0), but that had no effect. You can view it for yourself by calling cv2_imshow() to double check. The original game screens are fine, so im a bit confused, any ideas?

EXJUSTICE commented 4 years ago

Solved my own problem, essentially the transform.resize function converts data into pixels, which CV2 does not support. using matplotlib solves problem