remove unnecessary initialization of variable resized_screen
This commit is contained in:
@@ -130,7 +130,6 @@ class ProcessFrame84(gym.ObservationWrapper):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def process(frame):
|
def process(frame):
|
||||||
resized_screen = None
|
|
||||||
if frame.size == 210 * 160 * 3:
|
if frame.size == 210 * 160 * 3:
|
||||||
img = np.reshape(frame, [210, 160, 3]).astype(np.float32)
|
img = np.reshape(frame, [210, 160, 3]).astype(np.float32)
|
||||||
elif frame.size == 250 * 160 * 3:
|
elif frame.size == 250 * 160 * 3:
|
||||||
|
Reference in New Issue
Block a user