zhizdev / mvdfusion

[CVPR 2024] MVD-Fusion: Single-view 3D via Depth-consistent Multi-view Generation
https://mvd-fusion.github.io/
MIT License
110 stars 4 forks source link

Ask for scale of the depth input~ #14

Open YZsZY opened 2 weeks ago

YZsZY commented 2 weeks ago

Hi author, I notice that when rendering depth with blender, there is an action as follows:

map.offset[0] = -0.5
map.size[0] = 1 / (2.5 - 0.5)

I would like to ask why there is an offset of -0.5 and also how this range of 2.5 and 0.5 is taken into consideration~

Since the bbox range of the object is in [-0.5,0.5] and the radius of the viewpoint is 1.5, it feels like the depth range should be between [1.5-0.5,1.5+0.5]?

Looking forward to your answers~

zhizdev commented 1 week ago

Hi!

The blender settings produces the following effect

normalized_depth = 0.5 * ( original_depth − 0.5 )

The redo this effect, we simply do

original_depth = 2 * normalized_depth + .5

This converts between [0,1] and [.5, 2.5]