fix inference-cli[yolo-world]>=0.13.0 bug
This commit is contained in:
@@ -91,15 +91,6 @@ 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.
|
#### 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.
|
||||||
|
|
||||||
### ModuleNotFoundError: No module named 'supervision'
|
|
||||||
### ModuleNotFoundError: No module named 'inference.models'
|
|
||||||
### ImportError: cannot import name 'YOLOWorld' from 'inference.models'
|
|
||||||
One of the 3 errors encountered when running the Yolo-World node is due to the lack of dependency packages ```inference-cli[yolo-world]``` and ```inference-gpu[yolo-world]``` .
|
|
||||||
|
|
||||||
Solution:
|
|
||||||
* 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.
|
|
||||||
* Or manual install the dependency package ```inference-cli[yolo-world]``` and ```inference-gpu[yolo-world]```.
|
|
||||||
|
|
||||||
### 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
|
### 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
|
||||||
Solution:
|
Solution:
|
||||||
Reinstall the ```onnxruntime``` dependency package.
|
Reinstall the ```onnxruntime``` dependency package.
|
||||||
|
|||||||
@@ -84,16 +84,6 @@ git clone https://github.com/chflame163/ComfyUI_LayerStyle.git
|
|||||||
|
|
||||||
#### 以上3个依赖包的问题,请双击运行插件目录下的```repair_dependency.bat```(官方便携包)或者```repair_dependency_aki.bat```(秋叶整合包)自动修复。
|
#### 以上3个依赖包的问题,请双击运行插件目录下的```repair_dependency.bat```(官方便携包)或者```repair_dependency_aki.bat```(秋叶整合包)自动修复。
|
||||||
|
|
||||||
|
|
||||||
### ModuleNotFoundError: No module named 'supervision'
|
|
||||||
### ModuleNotFoundError: No module named 'inference.models'
|
|
||||||
### ImportError: cannot import name 'YOLOWorld' from 'inference.models'
|
|
||||||
运行Yolo-World 节点时出现以上3个错误之一,是由于缺少 ```inference-cli[yolo-world]``` 和 ```inference-gpu[yolo-world]``` 依赖包造成的。
|
|
||||||
|
|
||||||
解决方法:
|
|
||||||
* 请双击运行插件目录下的```repair_dependency.bat```(官方便携包)或者```repair_dependency_aki.bat```(秋叶整合包)自动修复。
|
|
||||||
* 或者手动安装 ```inference-cli[yolo-world]``` 和 ```inference-gpu[yolo-world]``` 依赖包。
|
|
||||||
|
|
||||||
### 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
|
### 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
|
||||||
解决方法:
|
解决方法:
|
||||||
请重新安装```onnxruntime```依赖包
|
请重新安装```onnxruntime```依赖包
|
||||||
|
|||||||
@@ -17,9 +17,6 @@ for /f "delims=" %%i in (%requirements_txt%) do (
|
|||||||
%python_exec% -s -m pip install "%%i"
|
%python_exec% -s -m pip install "%%i"
|
||||||
)
|
)
|
||||||
|
|
||||||
%python_exec% -s -m pip install "inference-cli[yolo-world]>=0.13.0"
|
|
||||||
%python_exec% -s -m pip install "inference-gpu[yolo-world]>=0.13.0"
|
|
||||||
|
|
||||||
echo .
|
echo .
|
||||||
echo Fixing Dependency Package...
|
echo Fixing Dependency Package...
|
||||||
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
|
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
|
||||||
|
|||||||
@@ -16,9 +16,6 @@ for /f "delims=" %%i in (%requirements_txt%) do (
|
|||||||
%python_exec% -s -m pip install "%%i"
|
%python_exec% -s -m pip install "%%i"
|
||||||
)
|
)
|
||||||
|
|
||||||
%python_exec% -s -m pip install "inference-cli[yolo-world]>=0.13.0"
|
|
||||||
%python_exec% -s -m pip install "inference-gpu[yolo-world]>=0.13.0"
|
|
||||||
|
|
||||||
echo .
|
echo .
|
||||||
echo Fixing Dependency Package...
|
echo Fixing Dependency Package...
|
||||||
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
|
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "comfyui_layerstyle"
|
name = "comfyui_layerstyle"
|
||||||
description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress."
|
description = "A set of nodes for ComfyUI it generate image like Adobe Photoshop's Layer Style. the Drop Shadow is first completed node, and follow-up work is in progress."
|
||||||
version = "1.0.48"
|
version = "1.0.49"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "opencv-contrib-python", "pymatting", "segment_anything", "timm", "addict", "yapf", "colour-science", "wget", "mediapipe", "loguru", "typer_config", "fastapi", "rich", "google-generativeai", "diffusers", "omegaconf", "tqdm", "transformers", "kornia", "image-reward", "ultralytics", "blend_modes", "blind-watermark", "qrcode", "pyzbar", "transparent-background", "huggingface_hub", "accelerate", "bitsandbytes", "torchscale", "wandb", "hydra-core", "psd-tools", "inference-cli[yolo-world]", "inference-gpu[yolo-world]", "onnxruntime"]
|
dependencies = ["numpy", "pillow", "torch", "matplotlib", "Scipy", "scikit_image", "opencv-contrib-python", "pymatting", "segment_anything", "timm", "addict", "yapf", "colour-science", "wget", "mediapipe", "loguru", "typer_config", "fastapi", "rich", "google-generativeai", "diffusers", "omegaconf", "tqdm", "transformers", "kornia", "image-reward", "ultralytics", "blend_modes", "blind-watermark", "qrcode", "pyzbar", "transparent-background", "huggingface_hub", "accelerate", "bitsandbytes", "torchscale", "wandb", "hydra-core", "psd-tools", "inference-cli[yolo-world]", "inference-gpu[yolo-world]", "onnxruntime"]
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ set "python_exec=..\..\..\python_embeded\python.exe"
|
|||||||
echo Fixing Dependency Package...
|
echo Fixing Dependency Package...
|
||||||
|
|
||||||
echo Installing with ComfyUI Portable
|
echo Installing with ComfyUI Portable
|
||||||
%python_exec% -s -m pip install "inference-cli[yolo-world]>=0.13.0"
|
|
||||||
%python_exec% -s -m pip install "inference-gpu[yolo-world]>=0.13.0"
|
|
||||||
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
|
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
|
||||||
for /f "delims=" %%i in (%requirements_txt%) do (
|
for /f "delims=" %%i in (%requirements_txt%) do (
|
||||||
%python_exec% -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple "%%i"
|
%python_exec% -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple "%%i"
|
||||||
|
|||||||
@@ -6,8 +6,6 @@ set "python_exec=..\..\python\python.exe"
|
|||||||
echo Fixing Dependency Package...
|
echo Fixing Dependency Package...
|
||||||
|
|
||||||
echo Installing with ComfyUI Portable
|
echo Installing with ComfyUI Portable
|
||||||
%python_exec% -s -m pip install "inference-cli[yolo-world]>=0.13.0"
|
|
||||||
%python_exec% -s -m pip install "inference-gpu[yolo-world]>=0.13.0"
|
|
||||||
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
|
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
|
||||||
|
|
||||||
for /f "delims=" %%i in (%requirements_txt%) do (
|
for /f "delims=" %%i in (%requirements_txt%) do (
|
||||||
|
|||||||
+3
-1
@@ -31,9 +31,11 @@ pyzbar
|
|||||||
transparent-background
|
transparent-background
|
||||||
huggingface_hub>=0.23.3
|
huggingface_hub>=0.23.3
|
||||||
accelerate
|
accelerate
|
||||||
|
onnxruntime
|
||||||
bitsandbytes>=0.41.1
|
bitsandbytes>=0.41.1
|
||||||
torchscale
|
torchscale
|
||||||
wandb
|
wandb
|
||||||
psd-tools
|
psd-tools
|
||||||
hydra-core
|
hydra-core
|
||||||
onnxruntime
|
inference-cli>=0.13.0
|
||||||
|
inference-gpu[yolo-world]>=0.13.0
|
||||||
|
|||||||
Reference in New Issue
Block a user