reenable caching of sd model

This commit is contained in:
mauwii 2022-10-28 23:56:13 +02:00
parent 6c34b89cfb
commit f7a47c1b67
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -55,6 +55,16 @@ jobs:
- name: set conda environment name
run: echo "CONDA_ENV_NAME=invokeai" >> $GITHUB_ENV
- name: Use Cached Stable Diffusion Model
id: cache-stable-diffusion-model
uses: actions/cache@v3
env:
cache-name: cache-sd-${{ matrix.stable-diffusion-model }}
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: |