Rename DA3 directory and document system status

This commit is contained in:
Codex
2026-05-20 12:40:53 +08:00
parent 4a0aebb2bd
commit e8a4ec8ad0
99 changed files with 267 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
- `Depth-Anything-V1-main/`Depth Anything V1根目录批处理脚本会调用其中的 `run.py`
- `Depth-Anything-V2-main/`Depth Anything V2根目录批处理脚本会调用其中的 `run.py`
- `Depth-Anything-3-main-待处理/`Depth Anything 3支持图片、图片目录、视频、COLMAP、GLB/NPZ 等导出。
- `Depth-Anything-V3-main/`Depth Anything 3支持图片、图片目录、视频、COLMAP、GLB/NPZ 等导出。
- `Data/`:默认输入样例目录。
- `1_Batch_Gen_All_Depth(跑之前删除结果文件夹).py`:批量跑 V1/V2 各 encoder输出灰度和彩色深度图对比。
- `2_Batch_Gen_All_PLY.py`:扫描批量深度图结果,把灰度深度图批量转为 PLY。
@@ -23,7 +23,7 @@ pip install numpy==1.26.4 opencv-python==4.11.0.86 matplotlib tqdm huggingface_h
pip install gradio==4.29.0 gradio_imageslider pillow_heif==0.22.0
pip install xformers==0.0.31.post1 --no-deps
cd Depth-Anything-3-main-待处理
cd Depth-Anything-V3-main
pip install -e . --no-deps
conda install -n Media_Depth -c nvidia cuda-nvcc=11.8 -y
@@ -66,7 +66,7 @@ python -c "import torch; print(torch.__version__); print(torch.cuda.is_available
### DA3
每个模型目录放到 `Depth-Anything-3-main-待处理/checkpoints/`,目录中应包含 `config.json``model.safetensors`
每个模型目录放到 `Depth-Anything-V3-main/checkpoints/`,目录中应包含 `config.json``model.safetensors`
- `DA3-SMALL`https://huggingface.co/depth-anything/DA3-SMALL
- `DA3-BASE`https://huggingface.co/depth-anything/DA3-BASE
@@ -93,7 +93,7 @@ python 2_Batch_Gen_All_PLY.py --img-path ./Data --z-scale 0.7 --brightness 1.0 -
DA3 单张图片:
```bash
cd Depth-Anything-3-main-待处理
cd Depth-Anything-V3-main
da3 image ../Data/09-19-54.mp4.00_02_12_09.Still001.png \
--model-dir checkpoints/DA3-SMALL \
--device cuda \
@@ -105,7 +105,7 @@ da3 image ../Data/09-19-54.mp4.00_02_12_09.Still001.png \
DA3 自动识别图片/目录/视频:
```bash
cd Depth-Anything-3-main-待处理
cd Depth-Anything-V3-main
da3 auto ../Data/09-19-54.mp4.00_02_12_09.Still001.png \
--model-dir checkpoints/DA3-SMALL \
--device cuda \
@@ -117,7 +117,7 @@ da3 auto ../Data/09-19-54.mp4.00_02_12_09.Still001.png \
DA3 视频:
```bash
cd Depth-Anything-3-main-待处理
cd Depth-Anything-V3-main
da3 video path/to/video.mp4 \
--fps 1 \
--model-dir checkpoints/DA3-SMALL \