Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jiangxin Dong
SVMAP
Commits
dcbcdded
Commit
dcbcdded
authored
Jun 17, 2021
by
Jiangxin Dong
Browse files
Upload New File
parent
9a87551d
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils.py
0 → 100644
View file @
dcbcdded
def
postprocess
(
*
images
,
rgb_range
):
def
_postprocess
(
img
):
pixel_range
=
255
/
rgb_range
return
img
.
mul
(
pixel_range
).
clamp
(
0
,
255
).
round
().
div
(
pixel_range
)
return
[
_postprocess
(
img
)
for
img
in
images
]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment