Open Eirikalb opened 1 month ago
Im facing the same issues, the transformers metric depth models do not work, let me know if you find a workaround.
inferring with:
pipe = pipeline("depth-estimation", model="depth-anything/Depth-Anything-V2-Small-hf")
produces a deoth map, like:
but
pipe = pipeline("depth-estimation", model="depth-anything/Depth-Anything-V2-Metric-Indoor-Small-hf")
does not produce a decent depth map:
same with the Outdoor versions of these models
@MoAbbasid it does produce a depth map with indoor and outdoor models as well, the issue was closed in #148. Just install transformers 4.45 , I have created a notebook in which you can test. https://colab.research.google.com/drive/1OoWfDRX3LEcIj7mni-f_-S8J-te3gkk0?usp=sharing
@Eirikalb if you update to transformers 4.45 then you get a depth map and values as well, if you use transformers 4.44 then the depth map is black and contains 0s I guess. I've just displayed the first row of the depth map
It seems that the hugging face models for metric depth are not producing depth values. https://huggingface.co/depth-anything/Depth-Anything-V2-Metric-Indoor-Base-hf If I download the raw model weights from this repo it also works nicely but would be nice to be able to use the transformers library.
If I use the disparity models they work just fine: