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

Function cleanup

models/autoencoder.py:35–40  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

33
34
35def cleanup(data):
36 X = data[0][:64, -1]
37 X = np.asarray([cv2.resize(x.transpose(1, 2, 0), (160, 80)) for x in X])
38 X = X/127.5 - 1.
39 Z = np.random.normal(0, 1, (X.shape[0], z_dim))
40 return Z, X
41
42
43def generator(batch_size, gf_dim, ch, rows, cols):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected