Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ percentile_per_sample
Function
percentile_per_sample
diff2flow/dataset/depth_utils.py:103–104 ·
view source on GitHub ↗
(x, percentile)
Source
from the content-addressed store, hash-verified
101
102
103
def
percentile_per_sample(x, percentile):
104
return
np.percentile(x, percentile, axis=[*range(1, x.ndim)])
105
106
107
def
pad_vector_like_x(v, x):
Callers
1
colorize_depth_map
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected