Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/00why00/JoDiffusion
/ bitget
Function
bitget
utils/utils.py:87–88 ·
view source on GitHub ↗
(byteval, idx)
Source
from the content-addressed store, hash-verified
85
86
def
color_map(n: int = 256, normalized: bool = False):
87
def
bitget(byteval, idx):
88
return
(byteval & (1 << idx)) != 0
89
90
dtype =
'float32'
if
normalized
else
'uint8'
91
cmap = np.zeros((n, 3), dtype=dtype)
Callers
1
color_map
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected