Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/richzhang/colorization
/ normalize_l
Method
normalize_l
colorizers/base_color.py:13–14 ·
view source on GitHub ↗
(self, in_l)
Source
from the content-addressed store, hash-verified
11
self.ab_norm = 110.
12
13
def
normalize_l(self, in_l):
14
return
(in_l-self.l_cent)/self.l_norm
15
16
def
unnormalize_l(self, in_l):
17
return
in_l*self.l_norm + self.l_cent
Callers
2
forward
Method · 0.80
forward
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected