update install requirements script

This commit is contained in:
macro chen
2024-12-05 22:03:50 +08:00
parent 0c1ae5a872
commit bfb5f3376c
2 changed files with 6 additions and 34 deletions
+1 -30
View File
@@ -68,8 +68,6 @@ Some JSON workflow files in the ```workflow``` directory, That's examples of
  for ComfyUI official portable package, type:
```
..\..\..\python_embeded\python.exe -s -m pip install .\whl\docopt-0.6.2-py2.py3-none-any.whl
..\..\..\python_embeded\python.exe -s -m pip install .\whl\hydra_core-1.3.2-py3-none-any.whl
..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt
.\repair_dependency.bat
```
@@ -77,8 +75,6 @@ Some JSON workflow files in the ```workflow``` directory, That's examples of
  for Aki ComfyUI package, type:
```
..\..\python\python.exe -s -m pip install .\whl\docopt-0.6.2-py2.py3-none-any.whl
..\..\python\python.exe -s -m pip install .\whl\hydra_core-1.3.2-py3-none-any.whl
..\..\python\python.exe -s -m pip install -r requirements.txt
.\repair_dependency.bat
```
@@ -99,18 +95,6 @@ If the node cannot load properly or there are errors during use, please check th
This warning message indicates that the ini file cannot be found and does not affect usage. If you do not want to see these warnings, please modify all ```*.ini.example``` files in the plugin directory to ```*.ini```.
### ModuleNotFoundError: No module named 'psd_tools'
This error is that the ```psd_tools``` were not installed correctly.
Solution:
* Close ComfyUI and open the terminal window in the plugin directory and execute the following command:
```../../../python_embeded/python.exe -s -m pip install psd_tools```
If error occurs during the installation of psd_tool, such as ```ModuleNotFoundError: No module named 'docopt'``` , please download [docopt's whl](https://www.piwheels.org/project/docopt/) and manual install it.
execute the following command in terminal window:
```../../../python_embeded/python.exe -s -m pip install path/docopt-0.6.2-py2.py3-none-any.whl``` the ```path``` is path name of whl file.
### Cannot import name 'guidedFilter' from 'cv2.ximgproc'
This error is caused by incorrect version of the ```opencv-contrib-python``` package,or this package is overwriteen by other opencv packages.
@@ -118,6 +102,7 @@ This error is caused by incorrect version of the ```opencv-contrib-python``` pac
### NameError: name 'guidedFilter' is not defined
The reason for the problem is the same as above.
#### For the issues with the above, please double click ```repair_dependency.bat``` (for Official ComfyUI Protable) or ```repair_dependency_aki.bat``` (for ComfyUI-aki-v1.x) in the plugin folder to automatically fix them.
### Cannot import name 'VitMatteImageProcessor' from 'transformers'
@@ -127,7 +112,6 @@ This error is caused by the low version of ```transformers``` package.
This error is caused by the low version of ```protobuf``` package.
#### For the issues with the above three dependency packages, please double click ```repair_dependency.bat``` (for Official ComfyUI Protable) or ```repair_dependency_aki.bat``` (for ComfyUI-aki-v1.x) in the plugin folder to automatically fix them.
### onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page
@@ -157,19 +141,6 @@ Solution:
When this error has occurred, please check the network environment.
### UnboundLocalError: local variable 'clip_processor' referenced before assignment
### UnboundLocalError: local variable 'text_model' referenced before assignment
If this error occurs when executing ```JoyCaption2``` node and it has been confirmed that the model file has been placed in the correct directory,
please check the ```transformers``` dependency package version is at least 4.43.2 or higher.
If ```transformers``` version is higher than or equal to 4.45.0, and also have error message:
```
Error loading models: De️️scriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
......
```
Please try downgrading the ```protobuf``` dependency package to 3.20.3, or set environment variables: ```PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python```.
## Update
+5 -4
View File
@@ -60,11 +60,13 @@ git clone https://github.com/chflame163/ComfyUI_LayerStyle.git
```
..\..\..\python_embeded\python.exe -s -m pip install -r requirements.txt
.\repair_dependency.bat
```
  秋叶整合包输入以下命令:
```
..\..\python\python.exe -s -m pip install -r requirements.txt
.\repair_dependency.bat
```
* 重新打开ComfyUI。
@@ -80,18 +82,17 @@ git clone https://github.com/chflame163/ComfyUI_LayerStyle.git
这个警告信息是找不到ini文件的提示,不影响使用。如果不想看到这些警告,请修改插件目录下所有的 ```*.ini.example``` 文件名为```*.ini```。
### Cannot import name 'guidedFilter' from 'cv2.ximgproc'
这个错误是```opencv-contrib-python```没有正确安装,或者安装后又安装了其他opencv包导致。
这个错误是```opencv-contrib-python```没有正确安装,或者安装后又安装了其他opencv包导致。
### NameError: name 'guidedFilter' is not defined
问题原因同上。
#### 以上问题,请双击运行插件目录下的```repair_dependency.bat```(官方便携包)或者```repair_dependency_aki.bat```(秋叶整合包)自动修复。
### Cannot import name 'VitMatteImageProcessor' from 'transformers'
这个错误是由于```transformers``` 版本过低造成的
### insightface 加载缓慢
这是由于```protobuf``` 版本过低造成的。
#### 以上3个依赖包的问题,请双击运行插件目录下的```repair_dependency.bat```(官方便携包)或者```repair_dependency_aki.bat```(秋叶整合包)自动修复。
这是由于```protobuf``` 版本过低造成的。
### onnxruntime::python::CreateExecutionProviderInstance CUDA_PATH is set but CUDA wasn't able to be loaded. Please install the correct version of CUDA and cuDNN as mentioned in the GPU requirements page
解决方法: