Skip to content
Closed
Show file tree
Hide file tree
Changes from 122 commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
9ffe113
fix mkdocs deployment
mauwii Oct 12, 2022
d748747
update path to python bin
mauwii Oct 12, 2022
d86fb2d
add trigger for current branch
mauwii Oct 12, 2022
fbe14e3
change path to python_bin for mac as well
mauwii Oct 12, 2022
6b52bbf
try to use setup-python@v4 instead of setting env
mauwii Oct 12, 2022
8ecd0f0
remove setup conda action
mauwii Oct 12, 2022
efc74af
try to use $CONDA
mauwii Oct 12, 2022
888b60b
remove overseen action
mauwii Oct 12, 2022
e833a43
change branch from master to main
mauwii Oct 12, 2022
8db85b9
sort out if then else for faster syntax
mauwii Oct 12, 2022
ae4cffc
remove more if functions
mauwii Oct 12, 2022
df51934
add updates to create-caches as well
mauwii Oct 12, 2022
0758cd9
eliminate the rest of if functions
mauwii Oct 12, 2022
6499927
try to unpin pytorch and torchvision
mauwii Oct 12, 2022
3c2ddee
restore pinned versions
mauwii Oct 12, 2022
8c75fcd
try switching from set-output to use env
mauwii Oct 12, 2022
0427383
update test-invoke-conda as well
mauwii Oct 12, 2022
4ea583d
fix env var creation
mauwii Oct 12, 2022
984d7c0
quote variable
mauwii Oct 12, 2022
43cd537
add second equal to compare
mauwii Oct 12, 2022
f7c2443
try another way to use outputs
mauwii Oct 12, 2022
e2ef595
fix outputs
mauwii Oct 12, 2022
4a6e018
pip install for mac before creating conda env
mauwii Oct 12, 2022
f238750
fix output variable
mauwii Oct 12, 2022
efdccbf
fix python bin path
mauwii Oct 12, 2022
e7d0c40
remove pip install for before creating conda env
mauwii Oct 12, 2022
cd21035
unpin streamlit version in conda mac env
mauwii Oct 12, 2022
51ff937
try to make git-workflows better readable
mauwii Oct 12, 2022
b353e34
remove 4gotten trigger
mauwii Oct 12, 2022
2c83de9
Update-gh-actions (#6)
mauwii Oct 12, 2022
8a8a952
use macos-latest
mauwii Oct 12, 2022
ea07bf1
try to update conda before creating mac env
mauwii Oct 12, 2022
31f33ec
better conda update trial
mauwii Oct 12, 2022
11338c7
re-pin streamlit version
mauwii Oct 12, 2022
2c41bba
re-added trigger to run workflow in current branch
mauwii Oct 12, 2022
0c97db9
try to find out if conda mac env could be updated
mauwii Oct 12, 2022
a6e9be9
install cmake, protobuf and rust b4 conda
mauwii Oct 12, 2022
0e3af49
add yes to conda update
mauwii Oct 12, 2022
766c655
lets try anaconda3-2022.05
mauwii Oct 12, 2022
a1c30c5
try environment.yml for mac as well
mauwii Oct 12, 2022
d09fdb7
reenable conda mac env, add pip install
mauwii Oct 12, 2022
8eedfd8
remove
mauwii Oct 12, 2022
35b810f
remove cmake from brew install since pre-installed
mauwii Oct 12, 2022
580740d
disable opencv-python pip requirement
mauwii Oct 13, 2022
c61490c
fixed commands to find latest package versions
mauwii Oct 13, 2022
25c342b
update requirements for mac env
mauwii Oct 13, 2022
6786c26
back to the roots - only install conda env
mauwii Oct 13, 2022
6486fa8
check out macOS in azure-pipelines
mauwii Oct 13, 2022
6367c03
let's try to setup python and update conda env
mauwii Oct 13, 2022
47d6f66
initialize conda before using it
mauwii Oct 13, 2022
f8293d6
add trigger in azure-pipelines.yml
mauwii Oct 13, 2022
3dfbc7f
And another go for update first ....
mauwii Oct 13, 2022
979eae6
update azure-pipelines.yml
mauwii Oct 13, 2022
8e7c72f
unquote checkpoint-url
mauwii Oct 13, 2022
242af7e
fix chekpoint-url variable
mauwii Oct 13, 2022
ffa0e08
mkdir before downloading model
mauwii Oct 13, 2022
6d734ee
set pr trigger to main, rename anaconda cache
mauwii Oct 13, 2022
79a61d3
Merge branch 'invoke-ai:main' into main
mauwii Oct 14, 2022
394b759
unique cacheHitVariables
mauwii Oct 14, 2022
cd0e139
Merge branch 'invoke-ai:main' into update-gh-actions
mauwii Oct 14, 2022
6fc049f
try to use macos-latest instead of macos-12
mauwii Oct 14, 2022
0bbbadb
Merge branch 'invoke-ai:main' into main
mauwii Oct 14, 2022
64dce4e
update test-invoke-conda.yml:
mauwii Oct 14, 2022
8cfff74
Merge branch 'main' into update-gh-actions
mauwii Oct 14, 2022
86f63d2
update test-invoke-conda.yml:
mauwii Oct 14, 2022
9b65621
change macos back to 12 since also fails with 11
mauwii Oct 14, 2022
b75935f
update condition in run the tests
mauwii Oct 14, 2022
7b9b870
fix path to cache invokeai conda env
mauwii Oct 14, 2022
46f02d5
fix invokeai conda env cache path
mauwii Oct 15, 2022
ec02af7
update mkdocs-flow.yml
mauwii Oct 15, 2022
96ac74e
change conda-channel priority
mauwii Oct 15, 2022
8de7cb3
update create-caches
mauwii Oct 15, 2022
4943e91
update conda env also when cache was used
mauwii Oct 15, 2022
7cca59d
os dependend conda env cache path
mauwii Oct 15, 2022
d9a1caa
use existing CONDA env pointing to conda root
mauwii Oct 15, 2022
fc56e33
create CONDA_ROOT output from $CONDA
mauwii Oct 15, 2022
1f66f3e
use output variable to define test prompts
mauwii Oct 15, 2022
1a195e2
use setup-python v4, get rid of PYTHON_BIN env
mauwii Oct 15, 2022
e60f440
add runner.os to result artifacts name
mauwii Oct 15, 2022
495f0af
update test-invoke-conda.yml:
mauwii Oct 15, 2022
6c49d89
improve mkdocs-flow.yml
mauwii Oct 15, 2022
a48d5d5
disable cache-hugginface-torch
mauwii Oct 15, 2022
6a06e04
update mkdocs-flow.yml with new name
mauwii Oct 15, 2022
6168deb
rename mkdocs action to mkdocs-material
mauwii Oct 15, 2022
e995213
try to ignore error when creating conda env
mauwii Oct 15, 2022
27e5bfe
remove bloat
mauwii Oct 15, 2022
f04fd52
update environment-mac.yml
mauwii Oct 15, 2022
fcf7119
disable conda update, tweak prompt condition
mauwii Oct 15, 2022
b2b6f8c
try to set some env vars for macOS to fix conda
mauwii Oct 15, 2022
30c2df5
stop ignoring error, use env instead of outputs
mauwii Oct 15, 2022
41bcdff
tweak `[[` connditions
mauwii Oct 15, 2022
8688fcb
update python and pip dependencie
mauwii Oct 15, 2022
3a64623
remove unecesarry env for macOS
mauwii Oct 15, 2022
2501998
update conda env in setup step
mauwii Oct 15, 2022
f22a622
activate conda env after installation
mauwii Oct 15, 2022
2d39da3
update test-invoke-conda.yml
mauwii Oct 15, 2022
2d93382
fix activate conda env
mauwii Oct 15, 2022
2b7f426
set bash -l as default shell
mauwii Oct 15, 2022
4e0955e
use action to activate conda env
mauwii Oct 15, 2022
07588eb
add conda env file to env activation
mauwii Oct 15, 2022
a97bdc7
try to replace s-weigeand with conda-incubator
mauwii Oct 15, 2022
9d1af6e
remove azure-pipelines.yml
mauwii Oct 15, 2022
8383e44
include environment-file in matrix
mauwii Oct 15, 2022
c46ba28
fix miniforge-variant, set fail-fast to false
mauwii Oct 15, 2022
393a87b
add step to setup miniconda
mauwii Oct 15, 2022
4adb165
Merge branch 'invoke-ai:main' into main
mauwii Oct 15, 2022
3a5670b
Merge remote-tracking branch 'origin/main' into update-gh-actions
mauwii Oct 15, 2022
af4f72c
use a mac env yml without pinned versions
mauwii Oct 15, 2022
431ea7a
unpin nomkl, pytorch and torchvision
mauwii Oct 15, 2022
e66efd1
cache conda pkgs dir instead of conda env
mauwii Oct 16, 2022
8fac90d
use python 3.10, exclude macos-12 from cache
mauwii Oct 16, 2022
fec9f26
fix expression
mauwii Oct 16, 2022
b95886f
prepare for PR
mauwii Oct 16, 2022
4192ca0
fix doubled id
mauwii Oct 16, 2022
2e31ad4
reuse pinned versions in mac conda env
mauwii Oct 16, 2022
f079019
fix classical copy/paste error
mauwii Oct 16, 2022
58636bf
remove unused env from shell-block comment
mauwii Oct 16, 2022
65c6eea
fix hashFiles function to determine restore-keys
mauwii Oct 16, 2022
7d53d11
reenable caching `~.cache`, update create-caches
mauwii Oct 16, 2022
8bd8eac
unpin all versions in mac conda env file
mauwii Oct 16, 2022
c141df6
prepare merge by removing this branch from trigger
mauwii Oct 16, 2022
3fd2efc
include pull_request trigger for main and dev
mauwii Oct 16, 2022
8041e4f
remove pull_request trigger
mauwii Oct 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 76 additions & 39 deletions .github/workflows/create-caches.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,43 @@
name: Create Caches
on:
workflow_dispatch

on: workflow_dispatch

jobs:
build:
os_matrix:
strategy:
matrix:
os: [ ubuntu-latest, macos-12 ]
name: Create Caches on ${{ matrix.os }} conda
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
environment-file: environment.yml
default-shell: bash -l {0}
- os: macos-latest
environment-file: environment-mac.yml
default-shell: bash -l {0}
name: Test invoke.py on ${{ matrix.os }} with conda
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.default-shell }}
steps:
- name: Set platform variables
id: vars
run: |
if [ "$RUNNER_OS" = "macOS" ]; then
echo "::set-output name=ENV_FILE::environment-mac.yml"
echo "::set-output name=PYTHON_BIN::/usr/local/miniconda/envs/ldm/bin/python"
elif [ "$RUNNER_OS" = "Linux" ]; then
echo "::set-output name=ENV_FILE::environment.yml"
echo "::set-output name=PYTHON_BIN::/usr/share/miniconda/envs/ldm/bin/python"
fi
- name: Checkout sources
uses: actions/checkout@v3

- name: setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: false
auto-update-conda: false
miniconda-version: latest

- name: set environment
run: |
[[ "$GITHUB_REF" == 'refs/heads/main' ]] \
&& echo "TEST_PROMPTS=tests/preflight_prompts.txt" >> $GITHUB_ENV \
|| echo "TEST_PROMPTS=tests/dev_prompts.txt" >> $GITHUB_ENV
echo "CONDA_ROOT=$CONDA" >> $GITHUB_ENV
echo "CONDA_ENV_NAME=invokeai" >> $GITHUB_ENV

- name: Use Cached Stable Diffusion v1.4 Model
id: cache-sd-v1-4
uses: actions/cache@v3
Expand All @@ -29,42 +46,62 @@ jobs:
with:
path: models/ldm/stable-diffusion-v1/model.ckpt
key: ${{ env.cache-name }}
restore-keys: |
${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}

- name: Use Cached Stable Diffusion v1.4 Model
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

During my (unfortunately very lengthy and time-consuming 🙄) testing when I was trying to get Windows working, without success, I noticed that on average it's much faster to download the model every time because when you stash something in the lookaside cache to reuse, it gets zipped.

So instead of a straightforward download from Hugging Face's servers, there's a much more complicated download/unzip/move/not sure what else which usually takes longer (and yeah, this is across all three platforms).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be honest - I didn't find out how I need to create the secret with a token in a way that it is valid as long as the token - I cheated on my side with this secret (while still obtaining it from the huggingface site), but this was about 50% the speed I get from downloading it out of the cache (and the cache would still be valid after the secret has already lost it's authorization 🙈)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I forgot about that - I had to set up my token for it to work properly. The main repo should never have this issue, and if it does, it's something which we'd need to fix immediately

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So should I disable the caching and always download, r u sure? imho this can be rly helpfull when there are many runs and saves bandwith of the backbone for people watching cat videos on YT ;P

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imho this can be rly helpfull when there are many runs

That's what I'm saying - it isn't. I was absolutely stunned by this at first, so I went down a total rabbithole of stopping work on getting Windows working just to focus on the model download.

ON AVERAGE, downloading the model is faster (by a lot) than caching it.

OTOH, "saves bandwith of the backbone" is another reason why we want to limit the number of times we run the suite.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So for me the download from huggingface usually had betwen 50-100MB/s while GH-Cache had about 150MB/s, which is also handled internally and not over the web (where I am not sure if downloading from huggingface is maybe slower because it needs to be routed externally), which would lead to --> using cache doesn't bother the backend at all ;P

id: cache-sd-v1-4
uses: actions/cache@v3
env:
cache-name: cache-sd-v1-4
with:
path: models/ldm/stable-diffusion-v1/model.ckpt
key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}

- name: Download Stable Diffusion v1.4 Model
if: ${{ steps.cache-sd-v1-4.outputs.cache-hit != 'true' }}
run: |
if [ ! -e models/ldm/stable-diffusion-v1 ]; then
mkdir -p models/ldm/stable-diffusion-v1
fi
if [ ! -e models/ldm/stable-diffusion-v1/model.ckpt ]; then
curl -o models/ldm/stable-diffusion-v1/model.ckpt ${{ secrets.SD_V1_4_URL }}
fi
- name: Use Cached Dependencies
id: cache-conda-env-ldm
[[ -d models/ldm/stable-diffusion-v1 ]] \
|| mkdir -p models/ldm/stable-diffusion-v1
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|| curl -o models/ldm/stable-diffusion-v1/model.ckpt ${{ secrets.SD_V1_4_URL }}

- name: Use cached Conda Environment
uses: actions/cache@v3
env:
cache-name: cache-conda-env-ldm
cache-name: cache-conda-env-${{ env.CONDA_ENV_NAME }}
conda-env-file: ${{ matrix.environment-file }}
with:
path: ~/.conda/envs/ldm
path: ${{ env.CONDA_ROOT }}/envs/${{ env.CONDA_ENV_NAME }}
key: ${{ env.cache-name }}
restore-keys: |
${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(steps.vars.outputs.ENV_FILE) }}
- name: Install Dependencies
if: ${{ steps.cache-conda-env-ldm.outputs.cache-hit != 'true' }}
run: |
conda env create -f ${{ steps.vars.outputs.ENV_FILE }}
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }}

- name: Use cached Conda Packages
uses: actions/cache@v3
env:
cache-name: cache-conda-env-${{ env.CONDA_ENV_NAME }}
conda-env-file: ${{ matrix.environment-file }}
with:
path: ${{ env.CONDA_PKGS_DIR }}
key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }}

- name: Activate Conda Env
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ${{ env.CONDA_ENV_NAME }}
environment-file: ${{ matrix.environment-file }}

- name: Use Cached Huggingface and Torch models
id: cache-huggingface-torch
id: cache-hugginface-torch
uses: actions/cache@v3
env:
cache-name: cache-huggingface-torch
cache-name: cache-hugginface-torch
with:
path: ~/.cache
key: ${{ env.cache-name }}
restore-keys: |
${{ env.cache-name }}-${{ hashFiles('scripts/preload_models.py') }}
- name: Download Huggingface and Torch models
if: ${{ steps.cache-huggingface-torch.outputs.cache-hit != 'true' }}
run: |
${{ steps.vars.outputs.PYTHON_BIN }} scripts/preload_models.py

- name: run preload_models.py
run: python scripts/preload_models.py
28 changes: 0 additions & 28 deletions .github/workflows/mkdocs-flow.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/mkdocs-material.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: mkdocs-material
on:
push:
branches:
- 'main'
- 'development'
pull_request:
branches:
- 'main'
- 'development'

jobs:
mkdocs-material:
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: install requirements
run: |
python -m \
pip install -r requirements-mkdocs.txt

- name: confirm buildability
run: |
python -m \
mkdocs build \
--clean \
--verbose

- name: deploy to gh-pages
if: ${{ github.ref == 'refs/heads/main' }}
run: |
python -m \
mkdocs gh-deploy \
--clean \
--force
119 changes: 69 additions & 50 deletions .github/workflows/test-invoke-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,47 @@ on:
branches:
- 'main'
- 'development'
pull_request:
branches:
- 'main'
- 'development'

jobs:
os_matrix:
strategy:
matrix:
os: [ ubuntu-latest, macos-12 ]
os: [ubuntu-latest, macos-latest]
include:
- os: ubuntu-latest
environment-file: environment.yml
default-shell: bash -l {0}
- os: macos-latest
environment-file: environment-mac.yml
default-shell: bash -l {0}
name: Test invoke.py on ${{ matrix.os }} with conda
runs-on: ${{ matrix.os }}
defaults:
run:
shell: ${{ matrix.default-shell }}
steps:
- run: |
echo The PR was merged
- name: Set platform variables
id: vars
run: |
# Note, can't "activate" via github action; specifying the env's python has the same effect
if [ "$RUNNER_OS" = "macOS" ]; then
echo "::set-output name=ENV_FILE::environment-mac.yml"
echo "::set-output name=PYTHON_BIN::/usr/local/miniconda/envs/ldm/bin/python"
elif [ "$RUNNER_OS" = "Linux" ]; then
echo "::set-output name=ENV_FILE::environment.yml"
echo "::set-output name=PYTHON_BIN::/usr/share/miniconda/envs/ldm/bin/python"
fi
- name: Checkout sources
uses: actions/checkout@v3

- name: setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: false
auto-update-conda: false
miniconda-version: latest

- name: set environment
run: |
[[ "$GITHUB_REF" == 'refs/heads/main' ]] \
&& echo "TEST_PROMPTS=tests/preflight_prompts.txt" >> $GITHUB_ENV \
|| echo "TEST_PROMPTS=tests/dev_prompts.txt" >> $GITHUB_ENV
echo "CONDA_ROOT=$CONDA" >> $GITHUB_ENV
echo "CONDA_ENV_NAME=invokeai" >> $GITHUB_ENV

- name: Use Cached Stable Diffusion v1.4 Model
id: cache-sd-v1-4
uses: actions/cache@v3
Expand All @@ -35,31 +53,42 @@ jobs:
with:
path: models/ldm/stable-diffusion-v1/model.ckpt
key: ${{ env.cache-name }}
restore-keys: |
${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}

- name: Download Stable Diffusion v1.4 Model
if: ${{ steps.cache-sd-v1-4.outputs.cache-hit != 'true' }}
run: |
if [ ! -e models/ldm/stable-diffusion-v1 ]; then
mkdir -p models/ldm/stable-diffusion-v1
fi
if [ ! -e models/ldm/stable-diffusion-v1/model.ckpt ]; then
curl -o models/ldm/stable-diffusion-v1/model.ckpt ${{ secrets.SD_V1_4_URL }}
fi
- name: Use Cached Dependencies
id: cache-conda-env-ldm
[[ -d models/ldm/stable-diffusion-v1 ]] \
|| mkdir -p models/ldm/stable-diffusion-v1
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|| curl -o models/ldm/stable-diffusion-v1/model.ckpt ${{ secrets.SD_V1_4_URL }}

- name: Use cached Conda Environment
uses: actions/cache@v3
env:
cache-name: cache-conda-env-ldm
cache-name: cache-conda-env-${{ env.CONDA_ENV_NAME }}
conda-env-file: ${{ matrix.environment-file }}
with:
path: ~/.conda/envs/ldm
path: ${{ env.CONDA_ROOT }}/envs/${{ env.CONDA_ENV_NAME }}
key: ${{ env.cache-name }}
restore-keys: |
${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(steps.vars.outputs.ENV_FILE) }}
- name: Install Dependencies
if: ${{ steps.cache-conda-env-ldm.outputs.cache-hit != 'true' }}
run: |
conda env create -f ${{ steps.vars.outputs.ENV_FILE }}
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }}

- name: Use cached Conda Packages
uses: actions/cache@v3
env:
cache-name: cache-conda-env-${{ env.CONDA_ENV_NAME }}
conda-env-file: ${{ matrix.environment-file }}
with:
path: ${{ env.CONDA_PKGS_DIR }}
key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}-${{ runner.os }}-${{ hashFiles(env.conda-env-file) }}

- name: Activate Conda Env
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: ${{ env.CONDA_ENV_NAME }}
environment-file: ${{ matrix.environment-file }}

- name: Use Cached Huggingface and Torch models
id: cache-hugginface-torch
uses: actions/cache@v3
Expand All @@ -70,28 +99,18 @@ jobs:
key: ${{ env.cache-name }}
restore-keys: |
${{ env.cache-name }}-${{ hashFiles('scripts/preload_models.py') }}
- name: Download Huggingface and Torch models
if: ${{ steps.cache-hugginface-torch.outputs.cache-hit != 'true' }}
run: |
${{ steps.vars.outputs.PYTHON_BIN }} scripts/preload_models.py
# - name: Run tmate
# uses: mxschmitt/action-tmate@v3
# timeout-minutes: 30

- name: run preload_models.py
run: python scripts/preload_models.py

- name: Run the tests
run: |
# Note, can't "activate" via github action; specifying the env's python has the same effect
if [ $(uname) = "Darwin" ]; then
export PYTORCH_ENABLE_MPS_FALLBACK=1
fi
# Utterly hacky, but I don't know how else to do this
if [[ ${{ github.ref }} == 'refs/heads/master' ]]; then
time ${{ steps.vars.outputs.PYTHON_BIN }} scripts/invoke.py --from_file tests/preflight_prompts.txt
elif [[ ${{ github.ref }} == 'refs/heads/development' ]]; then
time ${{ steps.vars.outputs.PYTHON_BIN }} scripts/invoke.py --from_file tests/dev_prompts.txt
fi
time python scripts/invoke.py \
--from_file ${{ env.TEST_PROMPTS }}
mkdir -p outputs/img-samples

- name: Archive results
uses: actions/upload-artifact@v3
with:
name: results
name: results_${{ matrix.os }}
path: outputs/img-samples
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ignore default image save location and model symbolic link
outputs/
models/ldm/stable-diffusion-v1/model.ckpt
ldm/dream/restoration/codeformer/weights
ldm/invoke/restoration/codeformer/weights

# ignore the Anaconda/Miniconda installer used while building Docker image
anaconda.sh
Expand Down Expand Up @@ -180,7 +180,7 @@ src
**/__pycache__/
outputs

# Logs and associated folders
# Logs and associated folders
# created from generated embeddings.
logs
testtube
Expand Down
Loading