MCPcopy Create free account
hub / github.com/Farama-Foundation/ViZDoom / preprocess

Function preprocess

examples/python/learning_tensorflow.py:63–68  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

61
62
63def preprocess(img):
64 img = skimage.transform.resize(img, resolution)
65 img = img.astype(np.float32)
66 img = np.expand_dims(img, axis=-1)
67
68 return tf.stack(img)
69
70
71def initialize_game():

Callers 3

runFunction · 0.70
testFunction · 0.70

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected