google-deepmind / google-deepmind/lab

What is the range of depth information in lab

Open
#160 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
7.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

def preprocess_frame(self, rgbd):
rgb = rgbd[:, :, 0:3]
d = rgbd[:, :, 3] # 84*84
d = d[16:-16, :] # crop
d = d[:, 2:-2] # crop
d = d[::13, ::5] # subsample
d = d.flatten()
d = np.power(d/255.0, 10)
d = np.digitize(d, [0,0.05,0.175,0.3,0.425,0.55,0.675,0.8,1.01])
d -= 1
return rgb, d

d[0-8] or d[1-9] ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.