Commit dcbcdded authored by Jiangxin Dong's avatar Jiangxin Dong
Browse files

Upload New File

parent 9a87551d
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment