IHe-KaiI / RNHA_Dataset

The dataset of the paper "Relightable Neural Human Assets from Multi-view Gradient Illuminations".
Other
40 stars 0 forks source link

How to split normal and alpha #3

Open Ranqing opened 5 months ago

Ranqing commented 5 months ago

I attempt to extract normal from the 'normal_alpha.png' by this code.

b, g, r, a = cv2.split(normal_alpha_img)
normal = cv2.merge((b, g, r))
mask = a.copy()
mask[mask > 0] = 255

However, the normal of some data seems not correct as there are a lot of noise. For example, the normal and alpha_mask of ID "07zdgswb2b7qxij7" are shown as below. 2024-04-16 20-55-40 的屏幕截图

IHe-KaiI commented 4 months ago

Hi Ranqing,

The last channel of the 'nomral_alpha.png' is the mask. You can extract the mask with mask = normal_alpha[..., -1].

Best, Kai