mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
try to run matrix with different models
This commit is contained in:
parent
ea65650883
commit
63202e2467
22
.github/workflows/test-invoke-conda.yml
vendored
22
.github/workflows/test-invoke-conda.yml
vendored
@ -11,12 +11,16 @@ on:
|
|||||||
- 'development'
|
- 'development'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
os_matrix:
|
matrix:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
stable-diffusion-model: ['https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt']
|
stable-diffusion-model:
|
||||||
os: [ubuntu-latest, macos-latest]
|
- 'https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt'
|
||||||
|
- 'https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt'
|
||||||
|
os:
|
||||||
|
- ubuntu-latest
|
||||||
|
- macos-latest
|
||||||
include:
|
include:
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
environment-file: environment.yml
|
environment-file: environment.yml
|
||||||
@ -24,6 +28,12 @@ jobs:
|
|||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
environment-file: environment-mac.yml
|
environment-file: environment-mac.yml
|
||||||
default-shell: bash -l {0}
|
default-shell: bash -l {0}
|
||||||
|
- stable-diffusion-model: https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
|
||||||
|
stable-diffusion-model-dl-path: models/ldm/stable-diffusion-v1/model.ckpt
|
||||||
|
stable-diffusion-model-switch: stable-diffusion-1.4
|
||||||
|
- stable-diffusion-model: https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.ckpt
|
||||||
|
stable-diffusion-model-dl-path: models/ldm/stable-diffusion-v1/v1-5-pruned-emaonly.ckpt
|
||||||
|
stable-diffusion-model-switch: stable-diffusion-1.5
|
||||||
name: Test invoke.py on ${{ matrix.os }} with ${{ matrix.stable-diffusion-model }}
|
name: Test invoke.py on ${{ matrix.os }} with ${{ matrix.stable-diffusion-model }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
env:
|
env:
|
||||||
@ -78,7 +88,7 @@ jobs:
|
|||||||
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|
||||||
|| curl \
|
|| curl \
|
||||||
-H "Authorization: Bearer ${{ secrets.HUGGINGFACE_TOKEN }}" \
|
-H "Authorization: Bearer ${{ secrets.HUGGINGFACE_TOKEN }}" \
|
||||||
-o models/ldm/stable-diffusion-v1/model.ckpt \
|
-o ${{ matrix.stable-diffusion-model-dl-path }} \
|
||||||
-L ${{ matrix.stable-diffusion-model }}
|
-L ${{ matrix.stable-diffusion-model }}
|
||||||
|
|
||||||
- name: Use Cached Huggingface and Torch models
|
- name: Use Cached Huggingface and Torch models
|
||||||
@ -97,8 +107,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Run the tests
|
- name: Run the tests
|
||||||
run: |
|
run: |
|
||||||
|
echo "!switch ${{ matrix.stable-diffusion-model-switch }}" > testprompts.txt
|
||||||
|
cat ${{ env.TEST_PROMPTS }} >> testprompts.txt
|
||||||
time python scripts/invoke.py \
|
time python scripts/invoke.py \
|
||||||
--from_file ${{ env.TEST_PROMPTS }}
|
--from_file testprompts.txt
|
||||||
|
|
||||||
- name: export conda env
|
- name: export conda env
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user