Merge pull request #28 from zach-nervana/patch-1

remove unnecessary initialization of variable resized_screen
This commit is contained in:
Szymon Sidor
2017-06-23 17:05:25 -07:00
committed by GitHub

View File

@@ -130,7 +130,6 @@ class ProcessFrame84(gym.ObservationWrapper):
@staticmethod
def process(frame):
resized_screen = None
if frame.size == 210 * 160 * 3:
img = np.reshape(frame, [210, 160, 3]).astype(np.float32)
elif frame.size == 250 * 160 * 3: