Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/dm_control
/ to_pixels
Method
to_pixels
dm_control/_render/base.py:152–154 ·
view source on GitHub ↗
Converts the buffer to pixels.
(self, buffer)
Source
from the content-addressed store, hash-verified
150
yield
ctx
151
152
def
to_pixels(self, buffer):
153
""
"Converts the buffer to pixels."
""
154
return
np.flipud(buffer)
155
156
@abc.abstractmethod
157
def
_platform_init(self, max_width, max_height):
Callers
2
render
Method · 0.80
render
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected