《Depth Anything V3》 网址:https://github.com/ByteDance-Seed/Depth-Anything-3 # 1. 配置 gh repo clone ByteDance-Seed/Depth-Anything-3 cd Depth-Anything-3 conda create -n da3 python=3.12 -y conda activate da3 conda install -c nvidia cudatoolkit=11.8 conda install -c nvidia cuda-nvcc=11.8 conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit # 0. 请确认 11.8 编译器确实存在于您的 Conda 环境文件夹中: If this prints a path (e.g., /home/.../envs/REG/bin/nvcc), proceed to step 1 ls $CONDA_PREFIX/bin/nvcc # 1. Force the shell to prioritize your Conda bin directory export PATH=$CONDA_PREFIX/bin:$PATH # 2. Explicitly tell the build script where CUDA is located export CUDA_HOME=$CONDA_PREFIX # 3. Check the version again - it MUST say 11.8 now nvcc -V # cuda version need to be same with `nvcc --version` for gsplat pip install torch==2.7.1 torchvision==0.22.1 --index-url https://download.pytorch.org/whl/cu118 pip install -e . pip install --no-build-isolation 'git+https://github.com/nerfstudio-project/gsplat.git@0b4dddf04cb687367602c01196913cde6a743d70' # 2. 下载深度预训练模型 mkdir checkpoints mkdir checkpoints/DA3MONO-LARGE https://huggingface.co/depth-anything/DA3MONO-LARGE mkdir checkpoints/DA3METRIC-LARGE mkdir checkpoints/DA3-SMALL mkdir checkpoints/DA3-BASE mkdir checkpoints/DA3-LARGE mkdir checkpoints/DA3-GIANT mkdir checkpoints/DA3NESTED-GIANT-LARGE