From 2ecdfca52f4eaf975759ee422824a9927628ad3c Mon Sep 17 00:00:00 2001 From: mauwii Date: Fri, 28 Oct 2022 19:35:01 +0200 Subject: [PATCH] also update create-caches.yml imho this could also be deleted, not sure what it is used for --- .github/workflows/create-caches.yml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/.github/workflows/create-caches.yml b/.github/workflows/create-caches.yml index bbd95f58d8..33ea3b82ed 100644 --- a/.github/workflows/create-caches.yml +++ b/.github/workflows/create-caches.yml @@ -54,27 +54,9 @@ jobs: [[ -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-${{ env.CONDA_ENV_NAME }} - conda-env-file: ${{ matrix.environment-file }} - with: - path: ${{ env.CONDA_ROOT }}/envs/${{ env.CONDA_ENV_NAME }} - key: ${{ env.cache-name }} - 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) }} + || curl --user "${{ secrets.HUGGINGFACE_TOKEN }}" \ + -o models/ldm/stable-diffusion-v1/model.ckpt \ + -O -L https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt - name: Activate Conda Env uses: conda-incubator/setup-miniconda@v2