VisionDepth3D icon indicating copy to clipboard operation
VisionDepth3D copied to clipboard

Issue Loading DepthAnything V2 Giant Model

Open xmoto4 opened this issue 1 year ago • 5 comments

I'm encountering an issue when trying to load the DepthAnything V2 Giant model (depth_anything_v2_vitg_fp32.safetensors) in VisionDepth3D. The model download completes successfully, but the application fails during normalization with the following error:

⚠️ Standard HF load failed, trying normalization: Nap/depth_anything_v2_vitg does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_model.msgpack.
Fetching 3 files: 100%|███████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 33288.13it/s]
❌ Failed to load Hugging Face model after normalization: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'Nap\depth_anything_v2_vitg'.

xmoto4 avatar Oct 09 '25 16:10 xmoto4

Thank you for bringing this up to me, I have noticed some issues with the depth pipeline after last update, working on a fix at the moment, are you using the dev version or the release version?

VisionDepth avatar Oct 09 '25 17:10 VisionDepth

I'm getting the same thing. Didn't know there were different versions. I tried manually moving the VideoDepthAnything folder from 3.5 with the onxx version to 3.6 and it gives me an option for (local) VideoDepthAnything on the Depth Estimation tab but I get the same error as xmoto4 when I select it.

IgnorantGenius avatar Oct 10 '25 02:10 IgnorantGenius

are you using the latest version? wondering if this is bugged and need to repack https://github.com/VisionDepth/VisionDepth3D/releases/tag/Release-v3.6.2

VisionDepth avatar Oct 10 '25 02:10 VisionDepth

I did get the latest version and it fixed the issue with the local onnx version not being loaded, so I can still use it, but I still get that same error if I select video depth anything onnx and try to download.

IgnorantGenius avatar Oct 10 '25 03:10 IgnorantGenius

ok thanks for the input, I will release the patch shortly

VisionDepth avatar Oct 10 '25 03:10 VisionDepth