From e36f5a779d90ac063a3a45063c8ec93472f9d446 Mon Sep 17 00:00:00 2001 From: ZHO-ZHO-ZHO <140084057+ZHO-ZHO-ZHO@users.noreply.github.com> Date: Fri, 22 Mar 2024 22:34:18 +0800 Subject: [PATCH] =?UTF-8?q?20240322=20=20=20V1.0=20=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20=E5=9B=BE=E5=83=8F=E5=92=8C=E8=A7=86?= =?UTF-8?q?=E9=A2=91=20=E6=B7=B1=E5=BA=A6=E4=BC=B0=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 100 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 98 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d05fbd3..63a45d2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,98 @@ -# ComfyUI-DepthFM -Unofficial implementation of DepthFM for ComfyUI + +![DF](https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM/assets/140084057/3b979e1c-ac6d-4010-aa71-502b65f3513f) + + + +# DepthFM IN COMFYUI + +Unofficial implementation of [DepthFM](https://github.com/CompVis/depth-fm) for ComfyUI + + +https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM/assets/140084057/4d4b1e53-130e-449a-a065-5c066355d7b4 + + +## 项目介绍 | Info + +- 对 [DepthFM](https://github.com/CompVis/depth-fm) 的非官方实现 + +- DepthFM:CompVis 推出的 高效 + 多功能 深度估计模型 + +- 版本:V1.0 同时支持图像和视频深度估计 + + +![Dingtalk_20240322220914](https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM/assets/140084057/6ceb051e-8eac-4cff-acfc-bfb9921a9686) + + +## 节点说明 | Features + +- DepthFM 模型加载 | 🌆DepthFM ModelLoader + - 手动下载 [depthfm-v1](https://ommer-lab.com/files/depthfm/depthfm-v1.ckpt) 放入 `/ComfyUI/models/depthfm` 中 + +- 单图深度估计 | 🌆DepthFM + - steps:普通建议 2-4 步,精细建议 10 步 + - ensemble_size:越高越准确,高值对显存要求高,一般建议 2-4 左右 + - 注意:图像尺寸需为 64 倍数 + +- 多图/视频深度估计| 🌆DepthFM Literative + - 同时支持 图像 和 视频 + - steps:普通建议 2-4 步,精细建议 10 步 + - ensemble_size:越高越准确,高值对显存要求高,一般建议 2-4 左右 + - - 注意:图像/视频尺寸需为 64 倍数 + + +![Dingtalk_20240322221331](https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM/assets/140084057/bff49c26-d55b-4a43-8962-0237d9dd2c0c) + + + + +## 安装 | Install + +- 推荐使用管理器 ComfyUI Manager 安装(On The Way) + +- 手动安装: + 1. `cd custom_nodes` + 2. `git clone https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM` + 3. `cd custom_nodes/ComfyUI-DepthFM` + 4. `pip install -r requirements.txt` + 5. 重启 ComfyUI + + +## 工作流 | Workflows + +V1.0(注:工作流中的着色节点来自于[ComfyUI-Marigold](https://github.com/kijai/ComfyUI-Marigold),非必要) + + - [V1.0 DepthFM img](https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM/blob/main/DepthFM%20Workflows/%F0%9F%8C%86DepthFM%20Image%E3%80%90Zho%E3%80%91.json) + + ![Dingtalk_20240322212751](https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM/assets/140084057/d465eee6-f9f5-45e7-bdb9-0d8851e53d8b) + + + - [V1.0 DepthFM Literative Video](https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM/blob/main/DepthFM%20Workflows/%F0%9F%8C%86DepthFM%20Literative%20Video%E3%80%90Zho%E3%80%91.json) + + ![Dingtalk_20240322220239](https://github.com/ZHO-ZHO-ZHO/ComfyUI-DepthFM/assets/140084057/33ffe05f-26f7-4426-9dfa-ff9f7196cf69) + + + +## 更新日志 + +- 20240322 + + V1.0 同时支持 图像和视频 深度估计 + + 创建项目 + + +## 声明 + + 演示视频未经允许请勿搬运!!! + + +## Stars + +[![Star History Chart](https://api.star-history.com/svg?repos=ZHO-ZHO-ZHO/ComfyUI-DepthFM&type=Date)](https://star-history.com/#ZHO-ZHO-ZHO/ComfyUI-DepthFM&Date) + + +## Credits + +[DepthFM](https://github.com/CompVis/depth-fm) + +演示视频中芭蕾舞和东京场景原视频分别来自:https://www.youtube.com/watch?v=cU8-rheBciw 、https://openai.com/sora