MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / _grab_raw_image

Method _grab_raw_image

examples/DeepQNetwork/atari.py:105–110  ·  view source on GitHub ↗

:returns: the current 3-channel image

(self)

Source from the content-addressed store, hash-verified

103 return [ACTION_MEANING[i] for i in self.actions]
104
105 def _grab_raw_image(self):
106 """
107 :returns: the current 3-channel image
108 """
109 m = self.ale.getScreenRGB()
110 return m.reshape((self.height, self.width, 3))
111
112 def _current_state(self):
113 """

Callers 3

_current_stateMethod · 0.95
_restart_episodeMethod · 0.95
stepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected