Skip to content

Commit

Permalink
ci: use diffusers model
Browse files Browse the repository at this point in the history
  • Loading branch information
keturn committed Nov 25, 2022
1 parent 9f49f54 commit afae108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test-invoke-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
stable-diffusion-model:
- 'stable-diffusion-1.5'
- 'diffusers-1.5'
environment-yaml:
- environment-lin-amd.yml
- environment-lin-cuda.yml
Expand All @@ -30,10 +30,6 @@ jobs:
- environment-yaml: environment-mac.yml
os: macos-12
default-shell: bash -l {0}
- stable-diffusion-model: stable-diffusion-1.5
stable-diffusion-model-url: 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
stable-diffusion-model-dl-name: v1-5-pruned-emaonly.ckpt
name: ${{ matrix.environment-yaml }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/test-invoke-pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
stable-diffusion-model:
- stable-diffusion-1.5
- diffusers-1.5
requirements-file:
- requirements-lin-cuda.txt
- requirements-lin-amd.txt
Expand All @@ -33,10 +33,6 @@ jobs:
- requirements-file: requirements-mac-mps-cpu.txt
os: macOS-12
default-shell: bash -l {0}
- stable-diffusion-model: stable-diffusion-1.5
stable-diffusion-model-url: 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
stable-diffusion-model-dl-name: v1-5-pruned-emaonly.ckpt
name: ${{ matrix.requirements-file }} on ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
defaults:
Expand All @@ -60,9 +56,9 @@ jobs:
id: cache-sd-model
uses: actions/cache@v3
env:
cache-name: cache-${{ matrix.stable-diffusion-model }}
cache-name: huggingface-${{ matrix.stable-diffusion-model }}
with:
path: ${{ matrix.stable-diffusion-model-dl-path }}
path: ~/.cache/huggingface
key: ${{ env.cache-name }}

- name: Check model availability
Expand Down

0 comments on commit afae108

Please sign in to comment.