Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepdrive/deepdrive
/ _image_op
Function
_image_op
tf_utils.py:12–17 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
10
11
12
def
_image_op(x):
13
y = x ** 0.45
# gamma correction
14
y = tf.clip_by_value(y, 0, 1)
15
y = y * 255.
16
y = tf.cast(y, tf.uint8)
17
return
y
18
19
20
def
_depth_op(x):
Callers
1
tf_utils.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected