如何安装一个comfyui插件?ComfyUI_MiniCPM-V-2_6-int4为例

devtools/2024/10/18 12:19:14/

‍‍

#### 确认插件 requirements 里的依赖包都已经安装成功

Ensure all dependencies listed in the plugin requirements are successfully installed.

67497425ccb4eeed4ed05f9d4a0e0595.png

#### 启动 ComfyUI 时的报错信息

When starting ComfyUI via cmd, you may encounter error messages.

288859e7bfc2525c3c85854d418f73cb.png

#### 安装缺少的依赖

Install any missing dependencies using the following command:

```

python_embeded\python.exe -s -m pip install decord

```

注意:`python_embeded\python.exe` 的路径需要是你的 ComfyUI 所使用的 Python 环境。  

Note: The path `python_embeded\python.exe` should be the Python environment used by ComfyUI.

#### 安装成功后,再重新启动 ComfyUI

After successful installation, restart ComfyUI.

#### 模型下载

Model Download:

在仓库的 README.md 里找到下载模型的说明,如果网络正常将自动下载,如果需要手动下载,可以查看代码。  

Refer to the README.md in the repository for model download instructions. It will automatically download if the network is normal. For manual download, check the code.

67ffc022ef17315be64ad3f7bb5d5d37.png

#### 如果碰到网络问题,可以尝试添加:

If you encounter network issues, you can try adding:

1f03e6ea68bcae0f9c7b1273bb5b7465.png

#### 手动下载方式

Manual Download Method:

在代码里找到下载模型的代码,参考所显示的地址,手动到 Hugging Face 下载。  

Find the code for model download in the codebase and manually download it from Hugging Face at:  

[Hugging Face MiniCPM-V-2\_6-int4](https://huggingface.co/openbmb/MiniCPM-V-2_6-int4/tree/main)

c19a4ce86c279b4c6fd6af2a0ee89a67.png

#### 下载完成后,尝试运行工作流

After downloading, try running the workflow.

#### 如果发现报错:

If you encounter errors:

e81d34e1350df922c0777379c0d202f8.png

需要安装 bitsandbytes  

Install `bitsandbytes`.

5c56ae0387f51d322cef6b7dd26222a4.png

需要安装 accelerate  

Install `accelerate`.

安装完成后,再次重启 ComfyUI,运行成功:  

After installation, restart ComfyUI again and it should run successfully.

d4540918d8e6cb8d1ecae30faf09dcfa.png

#### 最后,我做了个优化版本,主要优化的地方:

Finally, I have made an optimized version with the following improvements:

1.  路径读取支持通过配置文件设置。  

    Path reading supports configuration file settings.

2.  精简节点和参数,复用已有的节点。  

    Simplified nodes and parameters, reusing existing nodes.

#### 在 Mixlab-nodes 的 Image 目录下可以找到:

You can find it under the `Image` directory of `Mixlab-nodes`:

MiniCPM\_VQA\_Simple 节点  

`MiniCPM_VQA_Simple` node.

798a37254770415ab9a78370786b4e38.png


http://www.ppmy.cn/devtools/99307.html

相关文章

Tensorflow实现深度学习案例7:咖啡豆识别

本文为为🔗365天深度学习训练营内部文章 原作者:K同学啊 一、前期工作 1. 导入数据 from tensorflow import keras from tensorflow.keras import layers,models import numpy as np import matplotlib.pyplot as plt import os,PIL,p…

一款好看的WordPress REST API 主题

介绍: 主题特色: 使用Nuxtjs WordPress Rest Api 实现前后端分离,可完成多端部署; 主题支持自动切换黑夜模式。 使用说明: service 目录为wordpress主题文件,需要拷贝到wordpress主题目录下&#xff0…

【Python机器学习】NLP分词——利用分词器构建词汇表(一)

在NLP中,分词(也称切词)是一种特殊的文档切分过程。而文档切分能够将文本切分成更小的文本块或片段,其中含有更集中的信息内容。文档切分可以是将文本分成段落,将段落分成句子,将句子分成短语,或…

linux memory cgroup的memory.move_charge_at_immigrate含义

1.内核文档 上面的例子说明: 最开始某个进程是在cgroup A中,后面要迁移到cgroup B中,那么进程的内存计数是否要完全迁入B中,就是通过memory.move_charge_at_immigrate控制,如果目标cgroup也就是B设置了1到该字段中&am…

深入了解SOCKS v5协议:代理通信的安全通道

在当今的互联网世界,代理服务器在网络通信中扮演着不可或缺的角色。无论是为了绕过地理限制、增强隐私保护,还是实现复杂的网络管理需求,代理服务器都发挥着重要作用。而在众多代理协议中,SOCKS v5协议因其灵活性和广泛应用&#…

《黑神话·悟空》游戏开发教程来了,全部开源。。。

你好,我是郭震 黑神话悟空游戏,官网说明使用UE5引擎开发. 这篇文章发一个UE5游戏开发的系统教程。 1 开发悟空游戏的UE5 UE5,即 Unreal Engine 5,是由 Epic Games 开发的一款高度先进的游戏引擎。 UE5 是 Unreal Engine 系列的最新…

TCP,UDP,wireshark抓包

loop本地回环: Loop本地回环,通常指的是以127开头的IP地址段(127.0.0.1 – 127.255.255.254),其中127.0.0.1是最常用的一个地址,被称为本地回环地址(Loop back address)。这个地址不…

Kafka·Producer

Producer发送原理 拦截器进行拦截 对key和value进行序列化 org.apache.kafka.clients.producer.KafkaProducer#doSend 分区选择 计算消息要发送到topic的哪个分区上 若指定了分区,则使用指定的值没有指定的话则使用分区器计算得到或者使用hash取余的方式 暂存…