Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
63
def
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
71
def
initialize_game():
Callers
3
run
Function · 0.70
test
Function · 0.70
learning_tensorflow.py
File · 0.70
Calls
1
resize
Method · 0.45
Tested by
no test coverage detected