Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyricccco authored Nov 4, 2024
1 parent 03e1c61 commit 996c7e2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion utils/bgu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# -----------------------------------------------------------------------------------
# [ECCV2024] DualDn: Dual-domain Denoising via Differentiable ISP
# [Homepage] https://openimaginglab.github.io/DualDn/
# [Author] Originally Written by Ruikang Li, from MMLab, CUHK.
# [Usage] A robust differentiable ISP convert raw images to sRGB images, can be used in end-to-end training.
# [License] Absolutely open-source and free to use, please cite our paper if possible. :)
# -----------------------------------------------------------------------------------

import cv2
import numpy as np
from scipy.sparse import spdiags, vstack, hstack, block_diag, csc_matrix
Expand Down Expand Up @@ -418,4 +426,4 @@ def bguFit(input_fs, output_fs):
gamma = bguFit(input_fs, output_fs)
result_fs = bguSlice(gamma, input_fs)
result = (np.clip(result_fs, 0, 1) * 255).astype(np.uint8)
cv2.imwrite('/ailab/user/liruikang/DualDn/utils/result.jpg',result)
cv2.imwrite('/ailab/user/liruikang/DualDn/utils/result.jpg',result)

0 comments on commit 996c7e2

Please sign in to comment.