MCPcopy Create free account
hub / github.com/commaai/research / get_image

Function get_image

models/utils.py:17–18  ·  view source on GitHub ↗
(image_path, image_size, is_crop=True)

Source from the content-addressed store, hash-verified

15get_stddev = lambda x, k_h, k_w: 1/math.sqrt(k_w*k_h*x.get_shape()[-1])
16
17def get_image(image_path, image_size, is_crop=True):
18 return transform(imread(image_path), image_size, is_crop)
19
20def save_images(images, size, image_path, gray=False):
21 return imsave(inverse_transform(images), size, image_path, gray=gray)

Callers

nothing calls this directly

Calls 2

transformFunction · 0.85
imreadFunction · 0.85

Tested by

no test coverage detected