Skip to content

Commit

Permalink
Set transformers to version 4.42.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleykleynhans committed Jul 30, 2024
1 parent 7ce77b1 commit f44b155
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ COPY a1111/cache-sd-model.py ./

# Cache Base Model
RUN source /venv/bin/activate && \
python3 cache-sd-model.py --skip-torch-cuda-test --use-cpu=all --xformers --ckpt /sd-models/sd_xl_base_1.0.safetensors && \
python3 cache-sd-model.py --skip-install --skip-torch-cuda-test --use-cpu=all --xformers --ckpt /sd-models/sd_xl_base_1.0.safetensors && \
deactivate

# Cache Refiner Model
RUN source /venv/bin/activate && \
python3 cache-sd-model.py --skip-torch-cuda-test --use-cpu=all --xformers --ckpt /sd-models/sd_xl_refiner_1.0.safetensors && \
python3 cache-sd-model.py --skip-install --skip-torch-cuda-test --use-cpu=all --xformers --ckpt /sd-models/sd_xl_refiner_1.0.safetensors && \
deactivate

# RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors
Expand Down
2 changes: 1 addition & 1 deletion build/install_a1111.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ cd /stable-diffusion-webui/extensions/sd-webui-controlnet
pip3 install -r requirements.txt

# Install newer version of transformers so that SD3 model can be loaded
pip3 install transformers>=4.43.3
pip3 install transformers==4.42.4
pip3 cache purge

deactivate
Expand Down

0 comments on commit f44b155

Please sign in to comment.