(深度估计学习)Win11复现DepthFM

目录

论文链接:https://depthfm.github.io/

讲解链接:https://www.php.cn/faq/734404.html

1. 系统配置

本人系统:Win11 CUDA12.2 python3.11.5

这里附上几个CUDA安装链接:

  1. 安装CUDA和CudaNN
  2. CUDA Toolkit 12.2 Update 2 Downloads
  3. cuDNN Archive,这里我选择的:Download cuDNN v8.9.7 (December 5th, 2023), for CUDA 12.x
  4. windows下切换不同版本cuda

2. 拉取代码,配置环境

首先,克隆 github 仓库

shell 复制代码
git clone [email protected]:CompVis/depth-fm.git
cd depth-fm

下载权重

shell 复制代码
Invoke-WebRequest -Uri "https://ommer-lab.com/files/depthfm/depthfm-v1.ckpt" -OutFile "checkpoints/depthfm-v1.ckpt"                          

创建 conda 环境。这里我之前的环境是cuda11.8就失败了,然后换到了cuda12.2

python 复制代码
conda env create -f environment.yml

3.开始深度预测

python 复制代码
python inference.py \
   --num_steps 2 \
   --ensemble_size 4 \
   --img assets/dog.png \
   --ckpt checkpoints/depthfm-v1.ckpt

但是此时报错了:
OSError: runwayml/stable-diffusion-v1-5 does not appear to have a file named config.json.

在项目的issue中找到了解决方法:https://github.com/CompVis/depth-fm/issues/16

一句命令解决huggingface.co无法下载模型问题

在windows里面直接设置环境变量

接下来重新运行python inference.py

4.运行结果

相关推荐
虾球xz1 小时前
CppCon 2015 学习:Concurrency TS Editor’s Report
开发语言·c++·学习
Moonnnn.1 小时前
【电赛培训课程】运算放大器及其应用电路设计
笔记·学习
pop_xiaoli2 小时前
UI学习—cell的复用和自定义cell
学习·ui·ios
rui锐rui2 小时前
大模型学习
学习
YKPG3 小时前
C++学习-入门到精通【14】标准库算法
c++·学习·算法
potender3 小时前
前端基础学习html+css+js
前端·css·学习·html·js
靡樊3 小时前
Socket编程UDP\TCP
网络·c++·学习·tcp/ip·udp
余渔鱼11233 小时前
ajax学习手册
学习·ajax·okhttp
东京老树根4 小时前
SAP学习笔记 - 开发24 - 前端Fiori开发 Filtering(过滤器),Sorting and Grouping(排序和分组)
笔记·学习
viperrrrrrrrrr75 小时前
大数据学习(130)-zookeeper
大数据·学习·zookeeper