安装 DINOv2 依赖的 torchvision pip install torchvision pillow requests psycopg2-binary 手动安装 C:\Users\Administrator\.cache\torch 模型代码压缩包 (GitHub): https://github.com/facebookresearch/dinov2/archive/main.zip .cache/torch/hub/ 目录下,并解压 模型权重文件 (768维大模型 vitb14): https://dl.fbaipublicfiles.com/dinov2/dinov2_vitl14/dinov2_vitb14_pretrain.pt 将权重文件 .pth 放入:/root/.cache/torch/hub/checkpoints/ 目录下 【二筛】 安装 LightGlue pip install git+https://github.com/cvg/LightGlue.git