kijai / ComfyUI-DepthAnythingV2

Simple DepthAnythingV2 inference node for monocular depth estimation
167 stars 12 forks source link

Colors are a bit off compared to original repo, any ideas? #5

Closed C0nsumption closed 2 months ago

C0nsumption commented 2 months ago

This is the colormap from the normal repo:

normal

Find that when I try the color conversions from Marigold the results are much darker and not as accurate. Any ideas?

know the original repo uses Spectral_r colormap from matplotlib which seems to be the Spectral from Marigold reversed (its not as simple as inversion but you get me. the blue is where the red is.) spetral

kijai commented 2 months ago

the _r at end of colormap means reversed yes, if you invert the depth before the colorize node, the results should be identical.

C0nsumption commented 2 months ago

I had tried that earlier but only after the Colorize depthmap. That's why it didn't work. Worked perfect if placed before.

ComfyUI_temp_piaup_00003_

Worked like a charm. Thanks KJ