MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / _load_pixels

Function _load_pixels

dm_control/mujoco/testing/image_utils.py:192–195  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

190
191
192def _load_pixels(path):
193 image_bytes = assets.get_contents(path)
194 image = Image.open(io.BytesIO(image_bytes))
195 return np.array(image)
196
197
198def compute_rms(image1, image2):

Callers 1

iter_loadMethod · 0.85

Calls 1

get_contentsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…