fix missing matrix-parameters

This commit is contained in:
mauwii 2022-10-29 07:35:43 +02:00
parent 63202e2467
commit d2e8ecbd4b
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -76,20 +76,19 @@ jobs:
env:
cache-name: cache-sd-${{ matrix.stable-diffusion-model }}
with:
path: models/ldm/stable-diffusion-v1/model.ckpt
path: ${{ matrix.stable-diffusion-model-dl-path }}
key: ${{ env.cache-name }}
restore-keys: ${{ env.cache-name }}
- name: Download Stable Diffusion v1.4 Model
- name: Download ${{ matrix.stable-diffusion-model-switch }}
if: ${{ steps.cache-sd-v1-4.outputs.cache-hit != 'true' }}
run: |
[[ -d models/ldm/stable-diffusion-v1 ]] \
|| mkdir -p models/ldm/stable-diffusion-v1
[[ -r models/ldm/stable-diffusion-v1/model.ckpt ]] \
|| curl \
-H "Authorization: Bearer ${{ secrets.HUGGINGFACE_TOKEN }}" \
-o ${{ matrix.stable-diffusion-model-dl-path }} \
-L ${{ matrix.stable-diffusion-model }}
curl \
-H "Authorization: Bearer ${{ secrets.HUGGINGFACE_TOKEN }}" \
-o ${{ matrix.stable-diffusion-model-dl-path }} \
-L ${{ matrix.stable-diffusion-model }}
- name: Use Cached Huggingface and Torch models
id: cache-hugginface-torch