Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IceClear/StableSR
/ bgr2rgb
Function
bgr2rgb
scripts/util_image.py:212–212 ·
view source on GitHub ↗
(im)
Source
from the content-addressed store, hash-verified
210
return
rlt.permute([0, 3, 1, 2])
211
212
def
bgr2rgb(im):
return
cv2.cvtColor(im, cv2.COLOR_BGR2RGB)
213
214
def
rgb2bgr(im):
return
cv2.cvtColor(im, cv2.COLOR_RGB2BGR)
215
Callers
2
imread
Function · 0.85
jpeg_compress
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected