Skip to content

Commit

Permalink
update install_requirements and repair_dependency scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chflame163 committed Sep 6, 2024
1 parent 4a9bde8 commit 5385ee3
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions install_requirements.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ for /f "delims=" %%i in (%requirements_txt%) do (

echo .
echo Fixing Dependency Package...
%python_exec% -s -m pip uninstall -y onnxruntime
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
for /f "delims=" %%i in (%repair_dependency_txt%) do (
%python_exec% -s -m pip install "%%i"
Expand Down
1 change: 1 addition & 0 deletions install_requirements_aki.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ for /f "delims=" %%i in (%requirements_txt%) do (

echo .
echo Fixing Dependency Package...
%python_exec% -s -m pip uninstall -y onnxruntime
%python_exec% -s -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless opencv-contrib-python-headless
for /f "delims=" %%i in (%repair_dependency_txt%) do (
%python_exec% -s -m pip install "%%i"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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.49"
version = "1.0.50"
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"]

Expand Down
2 changes: 2 additions & 0 deletions repair_dependency.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ set "python_exec=..\..\..\python_embeded\python.exe"
echo Fixing Dependency Package...

echo Installing with ComfyUI Portable
%python_exec% -s -m pip uninstall -y onnxruntime
%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"
)
Expand Down
1 change: 1 addition & 0 deletions repair_dependency_aki.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set "python_exec=..\..\python\python.exe"
echo Fixing Dependency Package...

echo Installing with ComfyUI Portable
%python_exec% -s -m pip uninstall -y onnxruntime
%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 (
Expand Down
2 changes: 2 additions & 0 deletions repair_dependency_list.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
image-reward
numpy<2
onnxruntime
huggingface_hub>=0.23.3
transformers>=4.43.3
protobuf>=4.25.3
Expand Down

0 comments on commit 5385ee3

Please sign in to comment.