Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
0134d7ab
Commit
0134d7ab
authored
Oct 06, 2023
by
comfyanonymous
Browse files
Generate update script with right settings.
parent
1497528d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
.github/workflows/windows_release_dependencies.yml
.github/workflows/windows_release_dependencies.yml
+15
-1
.github/workflows/windows_release_package.yml
.github/workflows/windows_release_package.yml
+5
-2
No files found.
.github/workflows/windows_release_dependencies.yml
View file @
0134d7ab
...
@@ -40,6 +40,18 @@ jobs:
...
@@ -40,6 +40,18 @@ jobs:
-
shell
:
bash
-
shell
:
bash
run
:
|
run
:
|
echo "@echo off
..\python_embeded\python.exe .\update.py ..\ComfyUI\
echo
echo This will try to update pytorch and all python dependencies, if you get an error wait for pytorch/xformers to fix their stuff
echo You should not be running this anyways unless you really have to
echo
echo If you just want to update normally, close this and run update_comfyui.bat instead.
echo
pause
..\python_embeded\python.exe -s -m pip install --upgrade torch torchvision torchaudio ${{ inputs.xformers }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r ../ComfyUI/requirements.txt pygit2
pause" > update_comfyui_and_python_dependencies.bat
python -m pip wheel --no-cache-dir torch torchvision torchaudio ${{ inputs.xformers }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r requirements.txt pygit2 -w ./temp_wheel_dir
python -m pip wheel --no-cache-dir torch torchvision torchaudio ${{ inputs.xformers }} --extra-index-url https://download.pytorch.org/whl/cu${{ inputs.cu }} -r requirements.txt pygit2 -w ./temp_wheel_dir
python -m pip install --no-cache-dir ./temp_wheel_dir/*
python -m pip install --no-cache-dir ./temp_wheel_dir/*
echo installed basic
echo installed basic
...
@@ -49,5 +61,7 @@ jobs:
...
@@ -49,5 +61,7 @@ jobs:
-
uses
:
actions/cache/save@v3
-
uses
:
actions/cache/save@v3
with
:
with
:
path
:
cu${{ inputs.cu }}_python_deps.tar
path
:
|
cu${{ inputs.cu }}_python_deps.tar
update_comfyui_and_python_dependencies.bat
key
:
${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
key
:
${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
.github/workflows/windows_release_package.yml
View file @
0134d7ab
...
@@ -35,11 +35,14 @@ jobs:
...
@@ -35,11 +35,14 @@ jobs:
-
uses
:
actions/cache/restore@v3
-
uses
:
actions/cache/restore@v3
id
:
cache
id
:
cache
with
:
with
:
path
:
cu${{ inputs.cu }}_python_deps.tar
path
:
|
cu${{ inputs.cu }}_python_deps.tar
update_comfyui_and_python_dependencies.bat
key
:
${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
key
:
${{ runner.os }}-build-cu${{ inputs.cu }}-${{ inputs.python_minor }}
-
shell
:
bash
-
shell
:
bash
run
:
|
run
:
|
mv cu${{ inputs.cu }}_python_deps.tar ../
mv cu${{ inputs.cu }}_python_deps.tar ../
mv update_comfyui_and_python_dependencies.bat ../
cd ..
cd ..
tar xf cu${{ inputs.cu }}_python_deps.tar
tar xf cu${{ inputs.cu }}_python_deps.tar
pwd
pwd
...
@@ -74,8 +77,8 @@ jobs:
...
@@ -74,8 +77,8 @@ jobs:
mkdir update
mkdir update
cp -r ComfyUI/.ci/update_windows/* ./update/
cp -r ComfyUI/.ci/update_windows/* ./update/
cp -r ComfyUI/.ci/update_windows_cu${{ inputs.cu }}/* ./update/
cp -r ComfyUI/.ci/windows_base_files/* ./
cp -r ComfyUI/.ci/windows_base_files/* ./
cp ../update_comfyui_and_python_dependencies.bat ./update/
cd ..
cd ..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment