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

Function preprocess

examples/python/learning_pytorch.py:58–63  ·  view source on GitHub ↗

Down samples image to resolution

(img)

Source from the content-addressed store, hash-verified

56
57
58def preprocess(img):
59 """Down samples image to resolution"""
60 img = skimage.transform.resize(img, resolution)
61 img = img.astype(np.float32)
62 img = np.expand_dims(img, axis=0)
63 return img
64
65
66def create_simple_game():

Callers 3

testFunction · 0.70
runFunction · 0.70

Calls 1

resizeMethod · 0.45

Tested by

no test coverage detected