DocGeoNet
DocGeoNet copied to clipboard
Questions about data normalization
- For training, is wc(3D coordinate map) normalized in the same way as wc in DewarpNet?(reference)
- After network inference, why is bm being multiplied by 0.99 as below? https://github.com/fh2019ustc/DocGeoNet/blob/5a56ab427af6748f96908ce089c5ceea0b6dfeed/inference.py#L29
I am sorry for the late reply.
- Yes
msk = ((wc[:, :, 0] != 0) & (wc[:, :, 1] != 0) & (wc[:, :, 2] != 0)).astype(np.uint8)
xmx, xmn, ymx, ymn, zmx, zmn = 1.2485291, -1.2410645, 1.2387834, -1.2280148, 0.63452387, -0.67187124
wc[:, :, 0] = (wc[:, :, 0] - zmn) / (zmx - zmn)
wc[:, :, 1] = (wc[:, :, 1] - ymn) / (ymx - ymn)
wc[:, :, 2] = (wc[:, :, 2] - xmn) / (xmx - xmn)
wc = cv2.bitwise_and(wc, wc, mask=msk)
- Please refer to this issue in DocTr.
Hope this helps! Good luck~