iamNCJ / DiLightNet

Official Code Release for [SIGGRAPH 2024] DiLightNet: Fine-grained Lighting Control for Diffusion-based Image Generation
https://dilightnet.github.io
MIT License
134 stars 7 forks source link

A question about var "mask" and "mask _for_bg" in “infer_image.py” #5

Closed YoungQuasimodo closed 1 month ago

YoungQuasimodo commented 2 months ago

It appears that "mask" and "mask _for_bg" serve a similar purpose in the infer_image.py, they seem to have overlapping functionality, Can mask_for_bg replace mask to simplify the code and reduce redundancy?

iamNCJ commented 2 months ago

Hi, thanks for your interest! mask is a predicted or input mask to segment the foreground for mono-view mesh reconstruction, while mask_for_bg is the mask produced by blender after mesh smoothing and anti-aliasing. Thus, these two masks are not the same and serve for different purposes.