thygate / stable-diffusion-webui-depthmap-script

High Resolution Depth Maps for Stable Diffusion WebUI
MIT License
1.65k stars 153 forks source link

Is it possible to get a depthmap without banding? Maybe create a PNG with more precision like 32bit(floating point)? #400

Open petermg opened 5 months ago

petermg commented 5 months ago

So I'm using this to create depth maps and then use that for mesh displacement in Blender. I've been getting the best results with dpt_beit_large_384 (midas 3.1), believe it or not. However I am getting steps on the mesh and when I look at the png file created, I see these "steps" as bands. Is there a way to create a depth map without this banding? I see the created depth map has a precision of 16bits. I'm guessing going 32bit would remove or improve the banding? How can I change the precision of the created PNG files to be 32bits?

Banding example: image