diff --git a/README.MD b/README.MD index 476105f..aa9a249 100644 --- a/README.MD +++ b/README.MD @@ -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. -### 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 Solution: Reinstall the ```onnxruntime``` dependency package. diff --git a/README_CN.MD b/README_CN.MD index 4d51d73..5085194 100644 --- a/README_CN.MD +++ b/README_CN.MD @@ -84,16 +84,6 @@ git clone https://github.com/chflame163/ComfyUI_LayerStyle.git #### 以上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```依赖包 diff --git a/install_requirements.bat b/install_requirements.bat index 8ca8b0c..657b969 100644 --- a/install_requirements.bat +++ b/install_requirements.bat @@ -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 "inference-cli[yolo-world]>=0.13.0" -%python_exec% -s -m pip install "inference-gpu[yolo-world]>=0.13.0" - echo . echo Fixing Dependency Package... %python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless diff --git a/install_requirements_aki.bat b/install_requirements_aki.bat index b0c1da1..09bc678 100644 --- a/install_requirements_aki.bat +++ b/install_requirements_aki.bat @@ -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 "inference-cli[yolo-world]>=0.13.0" -%python_exec% -s -m pip install "inference-gpu[yolo-world]>=0.13.0" - echo . echo Fixing Dependency Package... %python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless diff --git a/pyproject.toml b/pyproject.toml index 3280189..360859f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] 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." -version = "1.0.48" +version = "1.0.49" 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"] diff --git a/repair_dependency.bat b/repair_dependency.bat index 0d71387..4df808e 100644 --- a/repair_dependency.bat +++ b/repair_dependency.bat @@ -6,8 +6,6 @@ set "python_exec=..\..\..\python_embeded\python.exe" echo Fixing Dependency Package... 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 for /f "delims=" %%i in (%requirements_txt%) do ( %python_exec% -s -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple "%%i" diff --git a/repair_dependency_aki.bat b/repair_dependency_aki.bat index 79a3974..e726091 100644 --- a/repair_dependency_aki.bat +++ b/repair_dependency_aki.bat @@ -6,8 +6,6 @@ set "python_exec=..\..\python\python.exe" echo Fixing Dependency Package... 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 for /f "delims=" %%i in (%requirements_txt%) do ( diff --git a/requirements.txt b/requirements.txt index 47ec3b9..b1d4aa2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -31,9 +31,11 @@ pyzbar transparent-background huggingface_hub>=0.23.3 accelerate +onnxruntime bitsandbytes>=0.41.1 torchscale wandb psd-tools hydra-core -onnxruntime \ No newline at end of file +inference-cli>=0.13.0 +inference-gpu[yolo-world]>=0.13.0