Coder Social home page Coder Social logo

worker-a1111's People

Contributors

dependabot[bot] avatar justinmerrell avatar kilimchoi avatar zhl146 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

worker-a1111's Issues

error building on MacBook Pro M1

just clone the repo and run docker build . with Mac Docker Desktop.

Thanks for the help!

harrywang@m1-hw worker-a1111 % docker build .
[+] Building 133.7s (18/30)                                                                                              
 => [internal] load build definition from Dockerfile                                                                0.0s
 => => transferring dockerfile: 3.65kB                                                                              0.0s
 => [internal] load .dockerignore                                                                                   0.0s
 => => transferring context: 2B                                                                                     0.0s
 => [internal] load metadata for docker.io/alpine/git:2.36.2                                                        1.3s
 => [internal] load metadata for docker.io/library/python:3.10.9-slim                                               1.3s
 => [auth] library/python:pull token for registry-1.docker.io                                                       0.0s
 => [auth] alpine/git:pull token for registry-1.docker.io                                                           0.0s
 => [internal] load build context                                                                                   0.7s
 => => transferring context: 3.39kB                                                                                 0.5s
 => [download 1/7] FROM docker.io/alpine/git:2.36.2@sha256:ec491c893597b68c92b88023827faa771772cfd5e106b76c713fa5e  1.4s
 => => resolve docker.io/alpine/git:2.36.2@sha256:ec491c893597b68c92b88023827faa771772cfd5e106b76c713fa5e1c75dea84  0.0s
 => => sha256:973c2a621dac43e67c2f321c3418826d42836066a6d670d45f369bd9e7ed9778 946B / 946B                          0.0s
 => => sha256:8bfbb50cd816b8f1f67612db507558338970b6531b3f7c372fbd406ca58bfaae 1.85kB / 1.85kB                      0.0s
 => => sha256:9b18e9b68314027565b90ff6189d65942c0f7986da80df008b8431276885218e 2.71MB / 2.71MB                      0.7s
 => => sha256:59deecb6b7b98b6acbebdf7e1630829d267e96d70d8dbe9a364307c7603ef04f 18.14MB / 18.14MB                    1.0s
 => => sha256:ec5a03ff1e3fef447c2843fd540a9eb5e6962f514a5fcfbff7f9c760997d6f70 99B / 99B                            0.3s
 => => sha256:ec491c893597b68c92b88023827faa771772cfd5e106b76c713fa5e1c75dea84 2.03kB / 2.03kB                      0.0s
 => => extracting sha256:9b18e9b68314027565b90ff6189d65942c0f7986da80df008b8431276885218e                           0.2s
 => => extracting sha256:59deecb6b7b98b6acbebdf7e1630829d267e96d70d8dbe9a364307c7603ef04f                           0.2s
 => => extracting sha256:ec5a03ff1e3fef447c2843fd540a9eb5e6962f514a5fcfbff7f9c760997d6f70                           0.0s
 => [stage-1  1/16] FROM docker.io/library/python:3.10.9-slim@sha256:76dd18d90a3d8710e091734bf2c9dd686d68747a5190  10.4s
 => => resolve docker.io/library/python:3.10.9-slim@sha256:76dd18d90a3d8710e091734bf2c9dd686d68747a51908db1e1f41e9  0.0s
 => => sha256:76dd18d90a3d8710e091734bf2c9dd686d68747a51908db1e1f41e9a5ed4e2c5 1.86kB / 1.86kB                      0.0s
 => => sha256:76a879c38fd1d2f5c33020107abc0b78ab6a3d4c57ed212597848a625ac2fb5d 1.37kB / 1.37kB                      0.0s
 => => sha256:45fb1e8d65c5b10438e81c1569ee5a18fad07805f0a75aef313c365e6e4b846f 7.80kB / 7.80kB                      0.0s
 => => sha256:f79f8cc5c20d534298dd6317333f38b7691da6d66e063ff10699727982c852be 30.04MB / 30.04MB                    9.3s
 => => sha256:fd39f0f25050797f48d603bfa8bb789fce6b8b280ee043f8e33618cd151a412c 1.06MB / 1.06MB                      1.1s
 => => sha256:d3be0db9a71f08cde682d2948353825e4fc98929932521a2b81c1b4a740794f6 11.83MB / 11.83MB                    1.8s
 => => sha256:69f2b431043e92559437d28efcad4825de977ce6708f3481034556326b5867c1 233B / 233B                          1.2s
 => => sha256:ab19003b714680d29fbc7d3042e05c6d1ab5d4c75bf55a287d6ead8f8a021f2c 3.35MB / 3.35MB                      1.7s
 => => extracting sha256:f79f8cc5c20d534298dd6317333f38b7691da6d66e063ff10699727982c852be                           0.5s
 => => extracting sha256:fd39f0f25050797f48d603bfa8bb789fce6b8b280ee043f8e33618cd151a412c                           0.1s
 => => extracting sha256:d3be0db9a71f08cde682d2948353825e4fc98929932521a2b81c1b4a740794f6                           0.2s
 => => extracting sha256:69f2b431043e92559437d28efcad4825de977ce6708f3481034556326b5867c1                           0.0s 
 => => extracting sha256:ab19003b714680d29fbc7d3042e05c6d1ab5d4c75bf55a287d6ead8f8a021f2c                           0.1s 
 => [download 2/7] COPY builder/clone.sh /clone.sh                                                                  0.1s 
 => [download 3/7] RUN . /clone.sh taming-transformers https://github.com/CompVis/taming-transformers.git 24268930  7.5s 
 => [download 4/7] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.g  4.1s 
 => [stage-1  2/16] RUN apt-get update &&     apt install -y     fonts-dejavu-core rsync git jq moreutils aria2 w  11.4s
 => [download 5/7] RUN . /clone.sh CodeFormer https://github.com/sczhou/CodeFormer.git c5b4593074ba6214284d6acd5f1  1.1s
 => [download 6/7] RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144  2.2s
 => [download 7/7] RUN wget -O /model.safetensors https://civitai.com/api/download/models/15236                    98.5s
 => [stage-1  3/16] RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip     pip insta  60.3s
 => ERROR [stage-1  4/16] RUN --mount=type=cache,target=/root/.cache/pip     git clone https://github.com/AUTOMAT  50.2s
------                                                                                                                   
 > [stage-1  4/16] RUN --mount=type=cache,target=/root/.cache/pip     git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git &&     cd stable-diffusion-webui &&     git reset --hard 89f9faa63388756314e8a1d96cf86bf5e0663045 &&     pip install -r requirements_versions.txt:
#10 0.325 Cloning into 'stable-diffusion-webui'...
#10 4.008 HEAD is now at 89f9faa6 Merge branch 'release_candidate'
#10 4.416 Collecting blendmodes==2022
#10 4.708   Downloading blendmodes-2022-py3-none-any.whl (10 kB)
#10 4.803 Collecting transformers==4.25.1
#10 4.864   Downloading transformers-4.25.1-py3-none-any.whl (5.8 MB)
#10 6.128      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.8/5.8 MB 4.7 MB/s eta 0:00:00
#10 6.173 Collecting accelerate==0.18.0
#10 6.202   Downloading accelerate-0.18.0-py3-none-any.whl (215 kB)
#10 6.218      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 215.3/215.3 kB 13.8 MB/s eta 0:00:00
#10 6.254 Collecting basicsr==1.4.2
#10 6.285   Downloading basicsr-1.4.2.tar.gz (172 kB)
#10 6.297      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 172.5/172.5 kB 14.6 MB/s eta 0:00:00
#10 6.319   Preparing metadata (setup.py): started
#10 9.392   Preparing metadata (setup.py): finished with status 'done'
#10 9.424 Collecting gfpgan==1.3.8
#10 9.449   Downloading gfpgan-1.3.8-py3-none-any.whl (52 kB)
#10 9.454      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 52.2/52.2 kB 12.9 MB/s eta 0:00:00
#10 9.561 Collecting gradio==3.29.0
#10 9.591   Downloading gradio-3.29.0-py3-none-any.whl (17.3 MB)
#10 11.03      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 13.2 MB/s eta 0:00:00
#10 11.19 Collecting numpy==1.23.5
#10 11.22   Downloading numpy-1.23.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.9 MB)
#10 12.48      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.9/13.9 MB 11.3 MB/s eta 0:00:00
#10 12.66 Collecting Pillow==9.4.0
#10 12.69   Downloading Pillow-9.4.0-cp310-cp310-manylinux_2_28_aarch64.whl (3.1 MB)
#10 12.94      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 12.3 MB/s eta 0:00:00
#10 12.98 Collecting realesrgan==0.3.0
#10 13.01   Downloading realesrgan-0.3.0-py3-none-any.whl (26 kB)
#10 13.01 Requirement already satisfied: torch in /usr/local/lib/python3.10/site-packages (from -r requirements_versions.txt (line 10)) (1.13.1)
#10 13.07 Collecting omegaconf==2.2.3
#10 13.10   Downloading omegaconf-2.2.3-py3-none-any.whl (79 kB)
#10 13.10      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.3/79.3 kB 16.5 MB/s eta 0:00:00
#10 13.16 Collecting pytorch_lightning==1.9.4
#10 13.19   Downloading pytorch_lightning-1.9.4-py3-none-any.whl (827 kB)
#10 13.26      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 827.8/827.8 kB 11.8 MB/s eta 0:00:00
#10 13.36 Collecting scikit-image==0.19.2
#10 13.40   Downloading scikit_image-0.19.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.5 MB)
#10 15.62      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.5/13.5 MB 5.9 MB/s eta 0:00:00
#10 15.68 Collecting fonts
#10 15.72   Downloading fonts-0.0.3-py3-none-any.whl (4.2 kB)
#10 15.76 Collecting font-roboto
#10 15.78   Downloading font-roboto-0.0.1.tar.gz (2.4 MB)
#10 16.16      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 6.3 MB/s eta 0:00:00
#10 16.22   Preparing metadata (setup.py): started
#10 16.36   Preparing metadata (setup.py): finished with status 'done'
#10 16.39 Collecting timm==0.6.7
#10 16.42   Downloading timm-0.6.7-py3-none-any.whl (509 kB)
#10 16.51      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 510.0/510.0 kB 5.9 MB/s eta 0:00:00
#10 16.57 Collecting piexif==1.1.3
#10 16.63   Downloading piexif-1.1.3-py2.py3-none-any.whl (20 kB)
#10 16.70 Collecting einops==0.4.1
#10 16.77   Downloading einops-0.4.1-py3-none-any.whl (28 kB)
#10 16.83 Collecting jsonmerge==1.8.0
#10 16.88   Downloading jsonmerge-1.8.0.tar.gz (26 kB)
#10 16.89   Preparing metadata (setup.py): started
#10 17.02   Preparing metadata (setup.py): finished with status 'done'
#10 17.09 Collecting clean-fid==0.1.29
#10 17.14   Downloading clean_fid-0.1.29-py3-none-any.whl (24 kB)
#10 17.20 Collecting resize-right==0.0.2
#10 17.26   Downloading resize_right-0.0.2-py3-none-any.whl (8.9 kB)
#10 17.35 Collecting torchdiffeq==0.2.3
#10 17.40   Downloading torchdiffeq-0.2.3-py3-none-any.whl (31 kB)
#10 17.47 Collecting kornia==0.6.7
#10 17.51   Downloading kornia-0.6.7-py2.py3-none-any.whl (565 kB)
#10 17.61      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 565.1/565.1 kB 6.2 MB/s eta 0:00:00
#10 17.68 Collecting lark==1.1.2
#10 17.73   Downloading lark-1.1.2-py2.py3-none-any.whl (104 kB)
#10 17.75      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 104.7/104.7 kB 6.4 MB/s eta 0:00:00
#10 17.80 Collecting inflection==0.5.1
#10 17.85   Downloading inflection-0.5.1-py2.py3-none-any.whl (9.5 kB)
#10 17.93 Collecting GitPython==3.1.30
#10 17.98   Downloading GitPython-3.1.30-py3-none-any.whl (184 kB)
#10 18.00      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 184.0/184.0 kB 7.8 MB/s eta 0:00:00
#10 18.05 Collecting torchsde==0.2.5
#10 18.10   Downloading torchsde-0.2.5-py3-none-any.whl (59 kB)
#10 18.11      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.2/59.2 kB 5.2 MB/s eta 0:00:00
#10 18.21 Collecting safetensors==0.3.1
#10 18.26   Downloading safetensors-0.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.2 MB)
#10 18.46      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 6.3 MB/s eta 0:00:00
#10 18.53 Collecting httpcore<=0.15
#10 18.57   Downloading httpcore-0.15.0-py3-none-any.whl (68 kB)
#10 18.58      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.4/68.4 kB 6.2 MB/s eta 0:00:00
#10 18.67 Collecting fastapi==0.94.0
#10 18.71   Downloading fastapi-0.94.0-py3-none-any.whl (56 kB)
#10 18.72      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.3/56.3 kB 5.1 MB/s eta 0:00:00
#10 18.78 Collecting aenum<4,>=3.1.7
#10 18.82   Downloading aenum-3.1.12-py3-none-any.whl (131 kB)
#10 18.84      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 131.8/131.8 kB 7.1 MB/s eta 0:00:00
#10 18.89 Collecting deprecation<3,>=2.1.0
#10 18.93   Downloading deprecation-2.1.0-py2.py3-none-any.whl (11 kB)
#10 19.46 Collecting regex!=2019.12.17
#10 19.49   Downloading regex-2023.5.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (768 kB)
#10 19.58      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 769.0/769.0 kB 8.5 MB/s eta 0:00:00
#10 19.65 Collecting requests
#10 19.68   Downloading requests-2.31.0-py3-none-any.whl (62 kB)
#10 19.69      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 6.4 MB/s eta 0:00:00
#10 19.74 Collecting pyyaml>=5.1
#10 19.78   Downloading PyYAML-6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (733 kB)
#10 19.87      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 733.7/733.7 kB 8.1 MB/s eta 0:00:00
#10 19.94 Collecting packaging>=20.0
#10 19.96   Downloading packaging-23.1-py3-none-any.whl (48 kB)
#10 19.97      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.9/48.9 kB 22.2 MB/s eta 0:00:00
#10 20.02 Collecting tqdm>=4.27
#10 20.05   Downloading tqdm-4.65.0-py3-none-any.whl (77 kB)
#10 20.06      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.1/77.1 kB 10.7 MB/s eta 0:00:00
#10 20.17 Collecting tokenizers!=0.11.3,<0.14,>=0.11.1
#10 20.19   Downloading tokenizers-0.13.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.5 MB)
#10 21.49      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.5/7.5 MB 5.7 MB/s eta 0:00:00
#10 21.56 Collecting huggingface-hub<1.0,>=0.10.0
#10 21.58   Downloading huggingface_hub-0.14.1-py3-none-any.whl (224 kB)
#10 21.61      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 224.5/224.5 kB 7.3 MB/s eta 0:00:00
#10 21.65 Collecting filelock
#10 21.68   Downloading filelock-3.12.0-py3-none-any.whl (10 kB)
#10 21.79 Collecting psutil
#10 21.81   Downloading psutil-5.9.5.tar.gz (493 kB)
#10 21.87      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 493.5/493.5 kB 9.3 MB/s eta 0:00:00
#10 21.91   Installing build dependencies: started
#10 23.58   Installing build dependencies: finished with status 'done'
#10 23.58   Getting requirements to build wheel: started
#10 23.72   Getting requirements to build wheel: finished with status 'done'
#10 23.72   Preparing metadata (pyproject.toml): started
#10 23.84   Preparing metadata (pyproject.toml): finished with status 'done'
#10 23.91 Collecting addict
#10 23.95   Downloading addict-2.4.0-py3-none-any.whl (3.8 kB)
#10 24.01 Collecting future
#10 24.06   Downloading future-0.18.3.tar.gz (840 kB)
#10 24.19      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 840.9/840.9 kB 6.3 MB/s eta 0:00:00
#10 24.26   Preparing metadata (setup.py): started
#10 24.40   Preparing metadata (setup.py): finished with status 'done'
#10 24.45 Collecting lmdb
#10 24.48   Downloading lmdb-1.4.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (298 kB)
#10 24.54      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 298.4/298.4 kB 5.4 MB/s eta 0:00:00
#10 24.66 Collecting opencv-python
#10 24.72   Downloading opencv_python-4.7.0.72-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (40.4 MB)
#10 29.91      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.4/40.4 MB 9.3 MB/s eta 0:00:00
#10 30.03 Collecting scipy
#10 30.06   Downloading scipy-1.10.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (30.9 MB)
#10 33.18      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 30.9/30.9 MB 12.0 MB/s eta 0:00:00
#10 33.72 Collecting tb-nightly
#10 33.75   Downloading tb_nightly-2.14.0a20230531-py3-none-any.whl (5.6 MB)
#10 34.08      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.6/5.6 MB 17.2 MB/s eta 0:00:00
#10 34.09 Requirement already satisfied: torchvision in /usr/local/lib/python3.10/site-packages (from basicsr==1.4.2->-r requirements_versions.txt (line 4)) (0.1.6)
#10 34.12 Collecting yapf
#10 34.15   Downloading yapf-0.33.0-py2.py3-none-any.whl (200 kB)
#10 34.16      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 200.9/200.9 kB 22.2 MB/s eta 0:00:00
#10 34.19 Collecting facexlib>=0.2.5
#10 34.22   Downloading facexlib-0.3.0-py3-none-any.whl (59 kB)
#10 34.22      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.6/59.6 kB 15.0 MB/s eta 0:00:00
#10 34.38 Collecting matplotlib
#10 34.42   Downloading matplotlib-3.7.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.3 MB)
#10 35.07      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.3/11.3 MB 17.5 MB/s eta 0:00:00
#10 35.14 Collecting mdit-py-plugins<=0.3.3
#10 35.17   Downloading mdit_py_plugins-0.3.3-py3-none-any.whl (50 kB)
#10 35.17      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.5/50.5 kB 21.5 MB/s eta 0:00:00
#10 35.27 Collecting pydantic
#10 35.30   Downloading pydantic-1.10.8-py3-none-any.whl (157 kB)
#10 35.31      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.5/157.5 kB 22.2 MB/s eta 0:00:00
#10 35.34 Collecting aiofiles
#10 35.37   Downloading aiofiles-23.1.0-py3-none-any.whl (14 kB)
#10 35.43 Collecting markupsafe
#10 35.45   Downloading MarkupSafe-2.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (26 kB)
#10 35.49 Collecting jinja2
#10 35.52   Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
#10 35.53      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 12.1 MB/s eta 0:00:00
#10 35.58 Collecting httpx
#10 35.61   Downloading httpx-0.24.1-py3-none-any.whl (75 kB)
#10 35.61      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.4/75.4 kB 13.8 MB/s eta 0:00:00
#10 35.65 Collecting markdown-it-py[linkify]>=2.0.0
#10 35.68   Downloading markdown_it_py-2.2.0-py3-none-any.whl (84 kB)
#10 35.68      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.5/84.5 kB 15.7 MB/s eta 0:00:00
#10 35.72 Collecting gradio-client>=0.2.1
#10 35.74   Downloading gradio_client-0.2.5-py3-none-any.whl (288 kB)
#10 35.76      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 288.1/288.1 kB 24.3 MB/s eta 0:00:00
#10 35.93 Collecting aiohttp
#10 35.96   Downloading aiohttp-3.8.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB)
#10 36.01      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 18.1 MB/s eta 0:00:00
#10 36.05 Collecting pygments>=2.12.0
#10 36.07   Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)
#10 36.13      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 20.5 MB/s eta 0:00:00
#10 36.14 Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/site-packages (from gradio==3.29.0->-r requirements_versions.txt (line 6)) (4.4.0)
#10 36.17 Collecting semantic-version
#10 36.19   Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
#10 36.22 Collecting ffmpy
#10 36.25   Downloading ffmpy-0.3.0.tar.gz (4.8 kB)
#10 36.25   Preparing metadata (setup.py): started
#10 36.43   Preparing metadata (setup.py): finished with status 'done'
#10 36.50 Collecting websockets>=10.0
#10 36.53   Downloading websockets-11.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (130 kB)
#10 36.54      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.6/130.6 kB 21.9 MB/s eta 0:00:00
#10 36.71 Collecting pandas
#10 36.74   Downloading pandas-2.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.6 MB)
#10 37.37      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.6/11.6 MB 18.1 MB/s eta 0:00:00
#10 37.45 Collecting altair>=4.2.0
#10 37.47   Downloading altair-5.0.1-py3-none-any.whl (471 kB)
#10 37.51      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 471.5/471.5 kB 16.0 MB/s eta 0:00:00
#10 37.54 Collecting uvicorn>=0.14.0
#10 37.57   Downloading uvicorn-0.22.0-py3-none-any.whl (58 kB)
#10 37.58      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 12.4 MB/s eta 0:00:00
#10 37.72 Collecting orjson
#10 37.75   Downloading orjson-3.8.14-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (263 kB)
#10 37.76      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 263.2/263.2 kB 24.2 MB/s eta 0:00:00
#10 37.79 Collecting python-multipart
#10 37.81   Downloading python_multipart-0.0.6-py3-none-any.whl (45 kB)
#10 37.81      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.7/45.7 kB 21.5 MB/s eta 0:00:00
#10 37.86 Collecting pydub
#10 37.89   Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)
#10 37.95 Collecting antlr4-python3-runtime==4.9.*
#10 37.97   Downloading antlr4-python3-runtime-4.9.3.tar.gz (117 kB)
#10 37.98      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.0/117.0 kB 21.1 MB/s eta 0:00:00
#10 37.99   Preparing metadata (setup.py): started
#10 38.12   Preparing metadata (setup.py): finished with status 'done'
#10 38.19 Collecting torchmetrics>=0.7.0
#10 38.22   Downloading torchmetrics-0.11.4-py3-none-any.whl (519 kB)
#10 38.25      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 519.2/519.2 kB 20.9 MB/s eta 0:00:00
#10 38.29 Collecting fsspec[http]>2021.06.0
#10 38.33   Downloading fsspec-2023.5.0-py3-none-any.whl (160 kB)
#10 38.33      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.1/160.1 kB 23.2 MB/s eta 0:00:00
#10 38.37 Collecting lightning-utilities>=0.6.0.post0
#10 38.39   Downloading lightning_utilities-0.8.0-py3-none-any.whl (20 kB)
#10 38.46 Collecting PyWavelets>=1.1.1
#10 38.48   Downloading PyWavelets-1.4.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.7 MB)
#10 38.83      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.7/6.7 MB 19.6 MB/s eta 0:00:00
#10 38.89 Collecting tifffile>=2019.7.26
#10 38.92   Downloading tifffile-2023.4.12-py3-none-any.whl (219 kB)
#10 38.93      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 219.4/219.4 kB 28.3 MB/s eta 0:00:00
#10 38.97 Collecting networkx>=2.2
#10 39.00   Downloading networkx-3.1-py3-none-any.whl (2.1 MB)
#10 39.10      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 20.3 MB/s eta 0:00:00
#10 39.15 Collecting imageio>=2.4.1
#10 39.18   Downloading imageio-2.30.0-py3-none-any.whl (312 kB)
#10 39.20      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 312.7/312.7 kB 19.3 MB/s eta 0:00:00
#10 39.24 Collecting jsonschema
#10 39.26   Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)
#10 39.27      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.4/90.4 kB 21.7 MB/s eta 0:00:00
#10 39.29 Collecting requests
#10 39.32   Downloading requests-2.25.1-py2.py3-none-any.whl (61 kB)
#10 39.32      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 28.0 MB/s eta 0:00:00
#10 39.37 Collecting gitdb<5,>=4.0.1
#10 39.39   Downloading gitdb-4.0.10-py3-none-any.whl (62 kB)
#10 39.40      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 kB 29.4 MB/s eta 0:00:00
#10 39.44 Collecting boltons>=20.2.1
#10 39.46   Downloading boltons-23.0.0-py2.py3-none-any.whl (194 kB)
#10 39.47      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 194.8/194.8 kB 19.7 MB/s eta 0:00:00
#10 39.51 Collecting trampoline>=0.1.2
#10 39.53   Downloading trampoline-0.1.2-py3-none-any.whl (5.2 kB)
#10 39.64 Collecting starlette<0.27.0,>=0.26.0
#10 39.66   Downloading starlette-0.26.1-py3-none-any.whl (66 kB)
#10 39.66      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.9/66.9 kB 26.1 MB/s eta 0:00:00
#10 39.70 Collecting chardet<5,>=3.0.2
#10 39.72   Downloading chardet-4.0.0-py2.py3-none-any.whl (178 kB)
#10 39.73      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.7/178.7 kB 34.0 MB/s eta 0:00:00
#10 39.77 Collecting urllib3<1.27,>=1.21.1
#10 39.80   Downloading urllib3-1.26.16-py2.py3-none-any.whl (143 kB)
#10 39.80      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.1/143.1 kB 20.6 MB/s eta 0:00:00
#10 39.84 Collecting certifi>=2017.4.17
#10 39.86   Downloading certifi-2023.5.7-py3-none-any.whl (156 kB)
#10 39.87      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.0/157.0 kB 13.2 MB/s eta 0:00:00
#10 39.90 Collecting idna<3,>=2.5
#10 39.92   Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
#10 39.93      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.8/58.8 kB 17.4 MB/s eta 0:00:00
#10 39.97 Collecting anyio==3.*
#10 40.00   Downloading anyio-3.7.0-py3-none-any.whl (80 kB)
#10 40.00      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 39.0 MB/s eta 0:00:00
#10 40.03 Collecting sniffio==1.*
#10 40.05   Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
#10 40.09 Collecting h11<0.13,>=0.11
#10 40.11   Downloading h11-0.12.0-py3-none-any.whl (54 kB)
#10 40.11      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.9/54.9 kB 23.3 MB/s eta 0:00:00
#10 40.16 Collecting exceptiongroup
#10 40.19   Downloading exceptiongroup-1.1.1-py3-none-any.whl (14 kB)
#10 40.28 Collecting toolz
#10 40.30   Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
#10 40.31      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 kB 22.4 MB/s eta 0:00:00
#10 40.35 Collecting filterpy
#10 40.38   Downloading filterpy-1.4.5.zip (177 kB)
#10 40.39      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 178.0/178.0 kB 25.2 MB/s eta 0:00:00
#10 40.40   Preparing metadata (setup.py): started
#10 40.52   Preparing metadata (setup.py): finished with status 'done'
#10 40.66 Collecting numba
#10 40.70   Downloading numba-0.57.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (3.3 MB)
#10 40.87      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 20.4 MB/s eta 0:00:00
#10 40.97 Collecting frozenlist>=1.1.1
#10 40.99   Downloading frozenlist-1.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (148 kB)
#10 41.00      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 148.1/148.1 kB 21.1 MB/s eta 0:00:00
#10 41.03 Collecting aiosignal>=1.1.2
#10 41.05   Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
#10 41.09 Collecting attrs>=17.3.0
#10 41.11   Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
#10 41.11      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 23.1 MB/s eta 0:00:00
#10 41.27 Collecting multidict<7.0,>=4.5
#10 41.29   Downloading multidict-6.0.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (116 kB)
#10 41.30      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 116.6/116.6 kB 19.1 MB/s eta 0:00:00
#10 41.33 Collecting async-timeout<5.0,>=4.0.0a3
#10 41.35   Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
#10 41.46 Collecting yarl<2.0,>=1.0
#10 41.48   Downloading yarl-1.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (262 kB)
#10 41.50      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 262.1/262.1 kB 17.8 MB/s eta 0:00:00
#10 41.56 Collecting charset-normalizer<4.0,>=2.0
#10 41.58   Downloading charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (195 kB)
#10 41.59      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 195.9/195.9 kB 22.7 MB/s eta 0:00:00
#10 41.63 Collecting smmap<6,>=3.0.1
#10 41.65   Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
#10 41.76 Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
#10 41.79   Downloading pyrsistent-0.19.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (117 kB)
#10 41.79      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.2/117.2 kB 15.4 MB/s eta 0:00:00
#10 41.84 Collecting mdurl~=0.1
#10 41.86   Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
#10 41.90 Collecting linkify-it-py<3,>=1
#10 41.92   Downloading linkify_it_py-2.0.2-py3-none-any.whl (19 kB)
#10 42.03 Collecting tzdata>=2022.1
#10 42.06   Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
#10 42.07      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 kB 26.1 MB/s eta 0:00:00
#10 42.11 Collecting python-dateutil>=2.8.2
#10 42.13   Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
#10 42.14      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 26.4 MB/s eta 0:00:00
#10 42.20 Collecting pytz>=2020.1
#10 42.22   Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)
#10 42.25      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.3/502.3 kB 21.7 MB/s eta 0:00:00
#10 42.39 Collecting click>=7.0
#10 42.42   Downloading click-8.1.3-py3-none-any.whl (96 kB)
#10 42.42      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 50.2 MB/s eta 0:00:00
#10 42.52 Collecting kiwisolver>=1.0.1
#10 42.55   Downloading kiwisolver-1.4.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB)
#10 42.61      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 21.7 MB/s eta 0:00:00
#10 42.67 Collecting contourpy>=1.0.1
#10 42.70   Downloading contourpy-1.0.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (283 kB)
#10 42.71      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 283.7/283.7 kB 27.9 MB/s eta 0:00:00
#10 42.76 Collecting fonttools>=4.22.0
#10 42.78   Downloading fonttools-4.39.4-py3-none-any.whl (1.0 MB)
#10 42.83      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 20.5 MB/s eta 0:00:00
#10 42.87 Collecting pyparsing>=2.3.1
#10 42.90   Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
#10 42.90      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 22.3 MB/s eta 0:00:00
#10 42.95 Collecting cycler>=0.10
#10 42.97   Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
#10 43.03 Requirement already satisfied: wheel>=0.26 in /usr/local/lib/python3.10/site-packages (from tb-nightly->basicsr==1.4.2->-r requirements_versions.txt (line 4)) (0.38.4)
#10 43.10 Collecting google-auth<3,>=1.6.3
#10 43.13   Downloading google_auth-2.19.0-py2.py3-none-any.whl (181 kB)
#10 43.14      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.3/181.3 kB 17.3 MB/s eta 0:00:00
#10 43.18 Collecting markdown>=2.6.8
#10 43.20   Downloading Markdown-3.4.3-py3-none-any.whl (93 kB)
#10 43.21      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.9/93.9 kB 16.6 MB/s eta 0:00:00
#10 43.21 Requirement already satisfied: setuptools>=41.0.0 in /usr/local/lib/python3.10/site-packages (from tb-nightly->basicsr==1.4.2->-r requirements_versions.txt (line 4)) (65.5.1)
#10 43.27 Collecting werkzeug>=1.0.1
#10 43.29   Downloading Werkzeug-2.3.4-py3-none-any.whl (242 kB)
#10 43.30      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 242.5/242.5 kB 24.4 MB/s eta 0:00:00
#10 43.55 Collecting protobuf>=3.19.6
#10 43.57   Downloading protobuf-4.23.2-cp37-abi3-manylinux2014_aarch64.whl (303 kB)
#10 43.58      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 303.4/303.4 kB 26.2 MB/s eta 0:00:00
#10 43.91 Collecting grpcio>=1.48.2
#10 43.95   Downloading grpcio-1.54.2-cp310-cp310-manylinux_2_17_aarch64.whl (4.6 MB)
#10 44.21      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 17.9 MB/s eta 0:00:00
#10 44.26 Collecting google-auth-oauthlib<1.1,>=0.5
#10 44.28   Downloading google_auth_oauthlib-1.0.0-py2.py3-none-any.whl (18 kB)
#10 44.31 Collecting tensorboard-data-server<0.8.0,>=0.7.0
#10 44.34   Downloading tensorboard_data_server-0.7.0-py3-none-any.whl (2.4 kB)
#10 44.38 Collecting absl-py>=0.4
#10 44.40   Downloading absl_py-1.4.0-py3-none-any.whl (126 kB)
#10 44.41      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.5/126.5 kB 17.9 MB/s eta 0:00:00
#10 44.47 Collecting tomli>=2.0.1
#10 44.50   Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
#10 44.64 Collecting rsa<5,>=3.1.4
#10 44.66   Downloading rsa-4.9-py3-none-any.whl (34 kB)
#10 44.69 Collecting cachetools<6.0,>=2.0.0
#10 44.72   Downloading cachetools-5.3.1-py3-none-any.whl (9.3 kB)
#10 44.76 Collecting pyasn1-modules>=0.2.1
#10 44.78   Downloading pyasn1_modules-0.3.0-py2.py3-none-any.whl (181 kB)
#10 44.79      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.3/181.3 kB 29.1 MB/s eta 0:00:00
#10 44.83 Collecting six>=1.9.0
#10 44.85   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
#10 44.89 Collecting requests-oauthlib>=0.7.0
#10 44.93   Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
#10 45.00 Collecting uc-micro-py
#10 45.03   Downloading uc_micro_py-1.0.2-py3-none-any.whl (6.2 kB)
#10 45.21 Collecting llvmlite<0.41,>=0.40.0dev0
#10 45.26   Downloading llvmlite-0.40.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (41.1 MB)
#10 47.11      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.1/41.1 MB 19.6 MB/s eta 0:00:00
#10 47.21 Collecting pyasn1<0.6.0,>=0.4.6
#10 47.24   Downloading pyasn1-0.5.0-py2.py3-none-any.whl (83 kB)
#10 47.24      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.9/83.9 kB 32.7 MB/s eta 0:00:00
#10 47.28 Collecting oauthlib>=3.0.0
#10 47.30   Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
#10 47.31      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.7/151.7 kB 27.8 MB/s eta 0:00:00
#10 47.38 Building wheels for collected packages: basicsr, jsonmerge, antlr4-python3-runtime, font-roboto, ffmpy, future, psutil, filterpy
#10 47.38   Building wheel for basicsr (setup.py): started
#10 47.90   Building wheel for basicsr (setup.py): finished with status 'done'
#10 47.90   Created wheel for basicsr: filename=basicsr-1.4.2-py3-none-any.whl size=214824 sha256=c6282e3a1fbbb63b15ac381d11821f8a19ff948da023ba1f52b10941dc80f7a7
#10 47.90   Stored in directory: /root/.cache/pip/wheels/63/64/ff/74f948afd26363d97ff9343edc8b0064c40e9ed31f893a89df
#10 47.90   Building wheel for jsonmerge (setup.py): started
#10 48.05   Building wheel for jsonmerge (setup.py): finished with status 'done'
#10 48.05   Created wheel for jsonmerge: filename=jsonmerge-1.8.0-py3-none-any.whl size=17986 sha256=56529a5b4df15113040961c2f1b2f500aa33d6c8b5fb40f82e87fbdda59e0e1b
#10 48.05   Stored in directory: /root/.cache/pip/wheels/3b/58/8a/4dce90d490c539f059d6a0a28e0282d8a50a49a706395ab8d0
#10 48.05   Building wheel for antlr4-python3-runtime (setup.py): started
#10 48.22   Building wheel for antlr4-python3-runtime (setup.py): finished with status 'done'
#10 48.22   Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.9.3-py3-none-any.whl size=144554 sha256=e73332d2682c7c1dea5c75c3c03334fbeb8a9ed3446c8087cdd6fb9af8f21ff8
#10 48.22   Stored in directory: /root/.cache/pip/wheels/48/6a/c2/acb58c7afdf57e4cddf5e1513f5a2d62aa8e98f82a00c76d7c
#10 48.22   Building wheel for font-roboto (setup.py): started
#10 48.52   Building wheel for font-roboto (setup.py): finished with status 'done'
#10 48.52   Created wheel for font-roboto: filename=font_roboto-0.0.1-py3-none-any.whl size=2359736 sha256=a385b161b0e1ae64350e3861678357160d7a9b828321a18918918414985827de
#10 48.52   Stored in directory: /root/.cache/pip/wheels/9c/8e/56/6a5386fc28a776801a5345f912368528a7aa40c34a5134768e
#10 48.52   Building wheel for ffmpy (setup.py): started
#10 48.66   Building wheel for ffmpy (setup.py): finished with status 'done'
#10 48.66   Created wheel for ffmpy: filename=ffmpy-0.3.0-py3-none-any.whl size=4693 sha256=1663dad640e68a0d1202d901851c4c62756876868ff0eb0a12c00d48f75ebdc4
#10 48.66   Stored in directory: /root/.cache/pip/wheels/fe/17/e9/577da024bc5aede641c69f0675254c1e518db79800abbe135c
#10 48.67   Building wheel for future (setup.py): started
#10 48.92   Building wheel for future (setup.py): finished with status 'done'
#10 48.92   Created wheel for future: filename=future-0.18.3-py3-none-any.whl size=492025 sha256=577c42323f34d6f4a29c9cd2ce1c8856f93a86b59de6399d11f2c6f73aabbc1f
#10 48.92   Stored in directory: /root/.cache/pip/wheels/69/c0/ce/f2a18105d619f21239a048bcc58e98d8ce47ac824e0531f1a0
#10 48.93   Building wheel for psutil (pyproject.toml): started
#10 49.05   Building wheel for psutil (pyproject.toml): finished with status 'error'
#10 49.05   error: subprocess-exited-with-error
#10 49.05   
#10 49.05   × Building wheel for psutil (pyproject.toml) did not run successfully.
#10 49.05   │ exit code: 1
#10 49.05   ╰─> [43 lines of output]
#10 49.05       running bdist_wheel
#10 49.05       running build
#10 49.05       running build_py
#10 49.05       creating build
#10 49.05       creating build/lib.linux-aarch64-cpython-310
#10 49.05       creating build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/__init__.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_common.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-310/psutil
#10 49.05       creating build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/__main__.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/__init__.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#10 49.05       running build_ext
#10 49.05       building 'psutil._psutil_linux' extension
#10 49.05       creating build/temp.linux-aarch64-cpython-310
#10 49.05       creating build/temp.linux-aarch64-cpython-310/psutil
#10 49.05       gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=595 -DPy_LIMITED_API=0x03060000 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -DPSUTIL_LINUX=1 -I/usr/local/include/python3.10 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-310/psutil/_psutil_common.o
#10 49.05       psutil could not be installed from sources because gcc is not installed. Try running:
#10 49.05         sudo apt-get install gcc python3-dev
#10 49.05       error: command 'gcc' failed: No such file or directory
#10 49.05       [end of output]
#10 49.05   
#10 49.05   note: This error originates from a subprocess, and is likely not a problem with pip.
#10 49.05   ERROR: Failed building wheel for psutil
#10 49.05   Building wheel for filterpy (setup.py): started
#10 49.23   Building wheel for filterpy (setup.py): finished with status 'done'
#10 49.23   Created wheel for filterpy: filename=filterpy-1.4.5-py3-none-any.whl size=110458 sha256=b8d084c6793f02e45791a8089759a05995bb5bca08a5c68d1c46b202751b6ea7
#10 49.23   Stored in directory: /root/.cache/pip/wheels/a4/80/24/0867e958c9459ae8d648d1adf89de38756d053debb1c9218d9
#10 49.23 Successfully built basicsr jsonmerge antlr4-python3-runtime font-roboto ffmpy future filterpy
#10 49.23 Failed to build psutil
#10 49.23 ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
#10 49.23 
#10 49.23 [notice] A new release of pip available: 22.3.1 -> 23.1.2
#10 49.23 [notice] To update, run: pip install --upgrade pip
------
executor failed running [/bin/bash -o pipefail -c git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git &&     cd stable-diffusion-webui &&     git reset --hard 89f9faa63388756314e8a1d96cf86bf5e0663045 &&     pip install -r requirements_versions.txt]: exit code: 1

RUN export COMMANDLINE_ARGS does not have effect

RUN export COMMANDLINE_ARGS="--skip-torch-cuda-test --precision full --no-half"

does not have effect in my local build. Without exporting such variable, the caching step has a few failure.

Changing it with "ARG COMMANDLINE_ARGS" does not make that step to fail.

The caching step is RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors .

I am a docker beginner, so I don't know if this is wanted or unwanted.

CUDA drivers?

Is there a reason a base image with CUDA drivers is not used? Such as nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.04?
Would be happy to create a PR.
Thanks

automatic1111 1.5.0 build error

I am trying to build this container with the latest a1111 version.
I changed the commit hash to the latest commit in the Dockerfile here:

RUN --mount=type=cache,target=/root/.cache/pip \
    git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
    cd stable-diffusion-webui && \
    git reset --hard 68f336bd994bed5442ad95bad6b6ad5564a5409a && \
    pip install -r requirements_versions.txt

and here

#1.5.0
ARG SHA=68f336bd994bed5442ad95bad6b6ad5564a5409a 
RUN --mount=type=cache,target=/root/.cache/pip \
    cd stable-diffusion-webui && \
    git fetch && \
    git reset --hard ${SHA} && \
    pip install -r requirements_versions.txt

But during build, when cache.py is called, I get this error:

ERROR [stage-1 16/29] RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors                                            6.2s ------                                                                                                                                                              
 > [stage-1 16/29] RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors:                                                       
#31 4.810 Warning: Stable Diffusion XL not found at path /stable-diffusion-webui/repositories/generative-models/sgm                                                 
#31 5.375 No module 'xformers'. Proceeding without it.                                                                                                              
#31 5.383 Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled                                                                                                                    
#31 5.561 Traceback (most recent call last):
#31 5.561   File "/stable-diffusion-webui/cache.py", line 1, in <module>
#31 5.561     from webui import initialize
#31 5.561   File "/stable-diffusion-webui/webui.py", line 61, in <module>
#31 5.561     from modules import shared, sd_samplers, upscaler, extensions, localization, ui_tempdir, ui_extra_networks, config_states
#31 5.561   File "/stable-diffusion-webui/modules/sd_samplers.py", line 1, in <module>
#31 5.561     from modules import sd_samplers_compvis, sd_samplers_kdiffusion, shared
#31 5.561   File "/stable-diffusion-webui/modules/sd_samplers_compvis.py", line 9, in <module>
#31 5.561     from modules import sd_samplers_common, prompt_parser, shared
#31 5.561   File "/stable-diffusion-webui/modules/sd_samplers_common.py", line 5, in <module>
#31 5.561     from modules import devices, processing, images, sd_vae_approx, sd_samplers, sd_vae_taesd
#31 5.561   File "/stable-diffusion-webui/modules/processing.py", line 16, in <module>
#31 5.561     import modules.sd_hijack
#31 5.561   File "/stable-diffusion-webui/modules/sd_hijack.py", line 5, in <module>
#31 5.561     import modules.textual_inversion.textual_inversion
#31 5.561   File "/stable-diffusion-webui/modules/textual_inversion/textual_inversion.py", line 16, in <module>
#31 5.561     from modules import shared, devices, sd_hijack, processing, sd_models, images, sd_samplers, sd_hijack_checkpoint, errors, hashes
#31 5.561   File "/stable-diffusion-webui/modules/sd_models.py", line 17, in <module>
#31 5.561     from modules import paths, shared, modelloader, devices, script_callbacks, sd_vae, sd_disable_initialization, errors, hashes, sd_models_config, sd_unet, sd_models_xl
#31 5.561   File "/stable-diffusion-webui/modules/sd_models_config.py", line 9, in <module>
#31 5.561     sd_xl_repo_configs_path = os.path.join(paths.paths['Stable Diffusion XL'], "configs", "inference")
#31 5.561 KeyError: 'Stable Diffusion XL'
------
executor failed running [/bin/bash -o pipefail -c cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors]: exit code: 1

I tried running the build without using cache.py, but that doesnt start a1111 in the endpoint.
What exactly is cache.py doing and how do I need to adapt the steps so it works with 1.5.0 of automatic1111?

This is my current Dockerfile:

# ---------------------------------------------------------------------------- #
#                         Stage 1: Download the models                         #
# ---------------------------------------------------------------------------- #
FROM alpine/git:2.36.2 as download

COPY builder/clone.sh /clone.sh

# Clone the repos and clean unnecessary files
RUN . /clone.sh taming-transformers https://github.com/CompVis/taming-transformers.git 24268930bf1dce879235a7fddd0b2355b84d7ea6 && \
    rm -rf data assets **/*.ipynb

RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf && \
    rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif

RUN . /clone.sh CodeFormer https://github.com/sczhou/CodeFormer.git c5b4593074ba6214284d6acd5f1719b6c5d739af && \
    rm -rf assets inputs

RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9 && \
    . /clone.sh k-diffusion https://github.com/crowsonkb/k-diffusion.git 5b3af030dd83e0297272d861c19477735d0317ec && \
    . /clone.sh clip-interrogator https://github.com/pharmapsychotic/clip-interrogator 2486589f24165c8e3b303f84e9dbbea318df83e8

# RUN wget -O model.safetensors https://civitai.com/api/download/models/15236 
WORKDIR /download
RUN wget -O model.safetensors https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors && ls -la


# ---------------------------------------------------------------------------- #
#                        Stage 3: Build the final image                        #
# ---------------------------------------------------------------------------- #
FROM python:3.10.9-slim

ENV DEBIAN_FRONTEND=noninteractive \
    PIP_PREFER_BINARY=1 \
    LD_PRELOAD=libtcmalloc.so \
    ROOT=/stable-diffusion-webui \
    PYTHONUNBUFFERED=1

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN apt-get update && \
    apt install -y \
    fonts-dejavu-core rsync git jq moreutils aria2 wget libgoogle-perftools-dev procps && \
    apt-get autoremove -y && rm -rf /var/lib/apt/lists/* && apt-get clean -y

RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip \
    pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

RUN --mount=type=cache,target=/root/.cache/pip \
    git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
    cd stable-diffusion-webui && \
    git reset --hard 68f336bd994bed5442ad95bad6b6ad5564a5409a && \
    pip install -r requirements_versions.txt

COPY --from=download /repositories/ ${ROOT}/repositories/
COPY --from=download /download/model.safetensors /model.safetensors
#COPY sd_xl_base_1.0.safetensors  /model.safetensors
RUN mkdir ${ROOT}/interrogate && cp ${ROOT}/repositories/clip-interrogator/data/* ${ROOT}/interrogate
RUN --mount=type=cache,target=/root/.cache/pip \
    pip install -r ${ROOT}/repositories/CodeFormer/requirements.txt

# Install Python dependencies (Worker Template)
COPY builder/requirements.txt /requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip \
    pip install --upgrade pip && \
    pip install --upgrade -r /requirements.txt --no-cache-dir && \
    rm /requirements.txt

#1.5.0
ARG SHA=68f336bd994bed5442ad95bad6b6ad5564a5409a 
RUN --mount=type=cache,target=/root/.cache/pip \
    cd stable-diffusion-webui && \
    git fetch && \
    git reset --hard ${SHA} && \
    pip install -r requirements_versions.txt

ADD src .

WORKDIR /repositories
RUN git clone https://github.com/Stability-AI/generative-models.git

WORKDIR /

COPY builder/cache.py /stable-diffusion-webui/cache.py
RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors

WORKDIR /extensions
RUN git clone https://github.com/Mikubill/sd-webui-controlnet.git
RUN git clone https://github.com/Extraltodeus/multi-subject-render.git

WORKDIR /

# Copy the models and embeddings directories from the host to the container
COPY test_input.json /
COPY test_input_vanilla.json /
COPY models/Lora /stable-diffusion-webui/models/Lora
COPY models/ControlNet /stable-diffusion-webui/models/ControlNet
COPY models/openpose /stable-diffusion-webui/models/openpose
COPY embeddings /stable-diffusion-webui/embeddings

# Cleanup section (Worker Template)
RUN apt-get autoremove -y && \
    apt-get clean -y && \
    rm -rf /var/lib/apt/lists/*

RUN chmod +x /start.sh
CMD /start.sh

Caching step is broken during image build

With a fresh clone running:

DOCKER_BUILDKIT=1  docker build . --tag my-acc/my-image --platform=linux/amd64

Fails in the hashing step of the Dockerfile:

COPY builder/cache.py /stable-diffusion-webui/cache.py
RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors
# ^ this

System: M1 OSX
Docker: version 24.0.2, build cb74dfc

Here is the output:

[+] Building 50.0s (27/30)                                                                                                                                                                                 
 => [internal] load metadata for docker.io/alpine/git:2.36.2                                                                                                                                          2.1s
 => [internal] load metadata for docker.io/library/python:3.10.9-slim                                                                                                                                 2.6s
 => [auth] alpine/git:pull token for registry-1.docker.io                                                                                                                                             0.0s
 => [auth] library/python:pull token for registry-1.docker.io                                                                                                                                         0.0s
[+] Building 50.1s (27/30)                                                                                                                                                                                 
 => => transferring context: 431B                                                                                                                                                                     0.0s
 => [stage-1  1/16] FROM docker.io/library/python:3.10.9-slim@sha256:76dd18d90a3d8710e091734bf2c9dd686d68747a51908db1e1f41e9a5ed4e2c5                                                                 0.0s
 => CACHED [stage-1  2/16] RUN apt-get update &&     apt install -y     fonts-dejavu-core rsync git jq moreutils aria2 wget libgoogle-perftools-dev procps &&     apt-get autoremove -y && rm -rf /v  0.0s
 => CACHED [stage-1  3/16] RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip     pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl  0.0s
 => CACHED [stage-1  4/16] RUN --mount=type=cache,target=/root/.cache/pip     git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git &&     cd stable-diffusion-webui &&     git rese  0.0s
 => CACHED [download 2/7] COPY builder/clone.sh /clone.sh                                                                                                                                             0.0s
 => CACHED [download 3/7] RUN . /clone.sh taming-transformers https://github.com/CompVis/taming-transformers.git 24268930bf1dce879235a7fddd0b2355b84d7ea6 &&     rm -rf data assets **/*.ipynb        0.0s
 => CACHED [download 4/7] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git 47b6b607fdd31875c9279cd2f4f16b92e4ea958e &&     rm -rf assets data/**/*.  0.0s
 => CACHED [download 5/7] RUN . /clone.sh CodeFormer https://github.com/sczhou/CodeFormer.git c5b4593074ba6214284d6acd5f1719b6c5d739af &&     rm -rf assets inputs                                    0.0s
 => CACHED [download 6/7] RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9 &&     . /clone.sh k-diffusion https://github.com/crowsonkb/k-diffusi  0.0s
[+] Building 50.2s (27/30)                                                                                                                                                                                 
 => CACHED [download 3/7] RUN . /clone.sh taming-transformers https://github.com/CompVis/taming-transformers.git 24268930bf1dce879235a7fddd0b2355b84d7ea6 &&     rm -rf data assets **/*.ipynb        0.0s
 => CACHED [download 4/7] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git 47b6b607fdd31875c9279cd2f4f16b92e4ea958e &&     rm -rf assets data/**/*.  0.0s
 => CACHED [download 5/7] RUN . /clone.sh CodeFormer https://github.com/sczhou/CodeFormer.git c5b4593074ba6214284d6acd5f1719b6c5d739af &&     rm -rf assets inputs                                    0.0s
 => CACHED [download 6/7] RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9 &&     . /clone.sh k-diffusion https://github.com/crowsonkb/k-diffusi  0.0s
 => CACHED [download 7/7] RUN wget -O /model.safetensors https://civitai.com/api/download/models/15236                                                                                                0.0s
[+] Building 368.0s (28/30)                                                                                                                                                                                
 => [internal] load .dockerignore                                                                                                                                                                     0.0s
 => => transferring context: 2B                                                                                                                                                                       0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                  0.0s
 => => transferring dockerfile: 3.65kB                                                                                                                                                                0.0s
 => [internal] load metadata for docker.io/alpine/git:2.36.2                                                                                                                                          2.1s
 => [internal] load metadata for docker.io/library/python:3.10.9-slim                                                                                                                                 2.6s
 => [auth] alpine/git:pull token for registry-1.docker.io                                                                                                                                             0.0s
 => [auth] library/python:pull token for registry-1.docker.io                                                                                                                                         0.0s
 => [download 1/7] FROM docker.io/alpine/git:2.36.2@sha256:ec491c893597b68c92b88023827faa771772cfd5e106b76c713fa5e1c75dea84                                                                           0.0s
 => [internal] load build context                                                                                                                                                                     0.0s 
 => => transferring context: 431B                                                                                                                                                                     0.0s 
 => [stage-1  1/16] FROM docker.io/library/python:3.10.9-slim@sha256:76dd18d90a3d8710e091734bf2c9dd686d68747a51908db1e1f41e9a5ed4e2c5                                                                 0.0s 
 => CACHED [stage-1  2/16] RUN apt-get update &&     apt install -y     fonts-dejavu-core rsync git jq moreutils aria2 wget libgoogle-perftools-dev procps &&     apt-get autoremove -y && rm -rf /v  0.0s 
 => CACHED [stage-1  3/16] RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip     pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl  0.0s 
 => CACHED [stage-1  4/16] RUN --mount=type=cache,target=/root/.cache/pip     git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git &&     cd stable-diffusion-webui &&     git rese  0.0s 
 => CACHED [download 2/7] COPY builder/clone.sh /clone.sh                                                                                                                                             0.0s 
 => CACHED [download 3/7] RUN . /clone.sh taming-transformers https://github.com/CompVis/taming-transformers.git 24268930bf1dce879235a7fddd0b2355b84d7ea6 &&     rm -rf data assets **/*.ipynb        0.0s 
 => CACHED [download 4/7] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git 47b6b607fdd31875c9279cd2f4f16b92e4ea958e &&     rm -rf assets data/**/*.  0.0s 
 => CACHED [download 5/7] RUN . /clone.sh CodeFormer https://github.com/sczhou/CodeFormer.git c5b4593074ba6214284d6acd5f1719b6c5d739af &&     rm -rf assets inputs                                    0.0s 
 => CACHED [download 6/7] RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9 &&     . /clone.sh k-diffusion https://github.com/crowsonkb/k-diffusi  0.0s 
 => CACHED [download 7/7] RUN wget -O /model.safetensors https://civitai.com/api/download/models/15236                                                                                                0.0s
 => CACHED [stage-1  5/16] COPY --from=download /repositories/ /stable-diffusion-webui/repositories/                                                                                                  0.0s
 => CACHED [stage-1  6/16] COPY --from=download /model.safetensors /model.safetensors                                                                                                                 0.0s
 => CACHED [stage-1  7/16] RUN mkdir /stable-diffusion-webui/interrogate && cp /stable-diffusion-webui/repositories/clip-interrogator/data/* /stable-diffusion-webui/interrogate                      0.0s
 => CACHED [stage-1  8/16] RUN --mount=type=cache,target=/root/.cache/pip     pip install -r /stable-diffusion-webui/repositories/CodeFormer/requirements.txt                                         0.0s
 => CACHED [stage-1  9/16] COPY builder/requirements.txt /requirements.txt                                                                                                                            0.0s
 => CACHED [stage-1 10/16] RUN --mount=type=cache,target=/root/.cache/pip     pip install --upgrade pip &&     pip install --upgrade -r /requirements.txt --no-cache-dir &&     rm /requirements.txt  0.0s
 => CACHED [stage-1 11/16] RUN --mount=type=cache,target=/root/.cache/pip     cd stable-diffusion-webui &&     git fetch &&     git reset --hard 89f9faa63388756314e8a1d96cf86bf5e0663045 &&     pip  0.0s
 => CACHED [stage-1 12/16] ADD src .                                                                                                                                                                  0.0s
 => CACHED [stage-1 13/16] COPY builder/cache.py /stable-diffusion-webui/cache.py                                                                                                                     0.0s
 => ERROR [stage-1 14/16] RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors                                                                                 365.3s
------                                                                                                                                                                                                     
 > [stage-1 14/16] RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors:                                                                                              
#0 23.36 No module 'xformers'. Proceeding without it.                                                                                                                                                      
#0 23.40 Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled                                                                                                                                                                                                   
#0 29.31 Calculating sha256 for /model.safetensors: Downloading: "https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_caption_capfilt_large.pth" to /stable-diffusion-webui/models/BLIP/model_base_caption_capfilt_large.pth
#0 29.37 
100%|██████████| 855M/855M [00:34<00:00, 26.2MB/s] 
Downloading (…)solve/main/vocab.txt: 100%|██████████| 232k/232k [00:00<00:00, 696kB/s]
Downloading (…)okenizer_config.json: 100%|██████████| 28.0/28.0 [00:00<00:00, 61.7kB/s]
Downloading (…)lve/main/config.json: 100%|██████████| 570/570 [00:00<00:00, 1.24MB/s]
#0 141.3 9aba26abdfcd46073e0a1d42027a3a3bcc969f562d58a03637bf0a0ded6586c9
#0 141.3 Loading weights [9aba26abdf] from /model.safetensors
#0 142.3 Creating model from config: /stable-diffusion-webui/configs/v1-inference.yaml
#0 142.3 LatentDiffusion: Running in eps-prediction mode
#0 143.2 DiffusionWrapper has 859.52 M params.
Downloading (…)olve/main/vocab.json: 100%|██████████| 961k/961k [00:00<00:00, 1.99MB/s]
Downloading (…)olve/main/merges.txt: 100%|██████████| 525k/525k [00:00<00:00, 1.38MB/s]
Downloading (…)cial_tokens_map.json: 100%|██████████| 389/389 [00:00<00:00, 795kB/s]
Downloading (…)okenizer_config.json: 100%|██████████| 905/905 [00:00<00:00, 1.72MB/s]
Downloading (…)lve/main/config.json: 100%|██████████| 4.52k/4.52k [00:00<00:00, 8.20MB/s]
#0 176.0 Applying cross attention optimization (InvokeAI).
#0 176.1 Textual inversion embeddings loaded(0): 
#0 176.1 Model loaded in 146.8s (calculate hash: 112.0s, load weights from disk: 0.9s, create model: 17.7s, apply weights to model: 7.1s, apply half(): 8.9s).
#0 233.6 load checkpoint from /stable-diffusion-webui/models/BLIP/model_base_caption_capfilt_large.pth
100%|███████████████████████████████████████| 890M/890M [01:20<00:00, 11.6MiB/s]
------
Dockerfile:76
--------------------
  74 |     #TODO caching
  75 |     COPY builder/cache.py /stable-diffusion-webui/cache.py
  76 | >>> RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors
  77 |     
  78 |     # Cleanup section (Worker Template)
--------------------

wont work with latest commit

When updating the Dockerfile to A1111 1.6.0 here

ARG SHA=5ef669de080814067961f28357256e8fe27544f4
RUN --mount=type=cache,target=/root/.cache/pip \
    cd stable-diffusion-webui && \
    git fetch && \
    git reset --hard ${SHA} && \
    pip install -r requirements_versions.txt

I get this error during build:

 => ERROR [stage-1 14/16] RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors                                                                                              4.5s
------
 > [stage-1 14/16] RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors:
3.550 Warning: Stable Diffusion XL not found at path /stable-diffusion-webui/repositories/generative-models/sgm
3.905 Traceback (most recent call last):
3.905   File "/stable-diffusion-webui/cache.py", line 1, in <module>
3.905     from webui import initialize
3.905   File "/stable-diffusion-webui/webui.py", line 13, in <module>
3.905     initialize.imports()
3.905   File "/stable-diffusion-webui/modules/initialize.py", line 30, in imports
3.905     import sgm.modules.encoders.modules  # noqa: F401
3.905 ModuleNotFoundError: No module named 'sgm'
------
Dockerfile:78
--------------------
  76 |     
  77 |     COPY builder/cache.py /stable-diffusion-webui/cache.py
  78 | >>> RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors
  79 |     
  80 |     # Cleanup section (Worker Template)
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors" did not complete successfully: exit code: 1

This is my Dockerfile:

# ---------------------------------------------------------------------------- #
#                         Stage 1: Download the models                         #
# ---------------------------------------------------------------------------- #
FROM alpine/git:2.36.2 as download

COPY builder/clone.sh /clone.sh

# Clone the repos and clean unnecessary files
RUN . /clone.sh taming-transformers https://github.com/CompVis/taming-transformers.git 24268930bf1dce879235a7fddd0b2355b84d7ea6 && \
    rm -rf data assets **/*.ipynb

RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git 47b6b607fdd31875c9279cd2f4f16b92e4ea958e && \
    rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif

RUN . /clone.sh CodeFormer https://github.com/sczhou/CodeFormer.git c5b4593074ba6214284d6acd5f1719b6c5d739af && \
    rm -rf assets inputs

RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9 && \
    . /clone.sh k-diffusion https://github.com/crowsonkb/k-diffusion.git 5b3af030dd83e0297272d861c19477735d0317ec && \
    . /clone.sh clip-interrogator https://github.com/pharmapsychotic/clip-interrogator 2486589f24165c8e3b303f84e9dbbea318df83e8

WORKDIR /download
RUN wget -O model.safetensors https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors 
RUN wget -O sdxl_vae.safetensors https://huggingface.co/stabilityai/sdxl-vae/resolve/main/sdxl_vae.safetensors 

# ---------------------------------------------------------------------------- #
#                        Stage 3: Build the final image                        #
# ---------------------------------------------------------------------------- #
FROM python:3.10.9-slim

ENV DEBIAN_FRONTEND=noninteractive \
    PIP_PREFER_BINARY=1 \
    LD_PRELOAD=libtcmalloc.so \
    ROOT=/stable-diffusion-webui \
    PYTHONUNBUFFERED=1

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN apt-get update && \
    apt install -y \
    fonts-dejavu-core rsync git jq moreutils aria2 wget libgoogle-perftools-dev procps && \
    apt-get autoremove -y && rm -rf /var/lib/apt/lists/* && apt-get clean -y

RUN --mount=type=cache,target=/cache --mount=type=cache,target=/root/.cache/pip \
    pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

RUN --mount=type=cache,target=/root/.cache/pip \
    git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git && \
    cd stable-diffusion-webui && \
    git reset --hard 5ef669de080814067961f28357256e8fe27544f4 && \
    pip install -r requirements_versions.txt

COPY --from=download /repositories/ ${ROOT}/repositories/
COPY --from=download /download/model.safetensors /model.safetensors
RUN mkdir ${ROOT}/interrogate && cp ${ROOT}/repositories/clip-interrogator/data/* ${ROOT}/interrogate
RUN --mount=type=cache,target=/root/.cache/pip \
    pip install -r ${ROOT}/repositories/CodeFormer/requirements.txt

# Install Python dependencies (Worker Template)
COPY builder/requirements.txt /requirements.txt
RUN --mount=type=cache,target=/root/.cache/pip \
    pip install --upgrade pip && \
    pip install --upgrade -r /requirements.txt --no-cache-dir && \
    rm /requirements.txt

ARG SHA=5ef669de080814067961f28357256e8fe27544f4
RUN --mount=type=cache,target=/root/.cache/pip \
    cd stable-diffusion-webui && \
    git fetch && \
    git reset --hard ${SHA} && \
    pip install -r requirements_versions.txt

ADD src .

COPY builder/cache.py /stable-diffusion-webui/cache.py
RUN cd /stable-diffusion-webui && python cache.py --use-cpu=all --ckpt /model.safetensors

# Cleanup section (Worker Template)
RUN apt-get autoremove -y && \
    apt-get clean -y && \
    rm -rf /var/lib/apt/lists/*

RUN chmod +x /start.sh
CMD /start.sh

how to upload image to S3

after deploy on runpod serverless, query task will get a image with base64, how to get a image.png and upload to S3?

Version conflict

I could build working images with requirements.txt like

-pydantic<2
+pydantic
-Pillow==10.2.0
+Pillow
-gradio==4.11.0
+gradio
+# added to fix version conflict
+httpx==0.24.1
+torchmetrics==0.11.4
+slack_sdk

but couldn't resolve ModuleNotFoundError: No module named 'torchvision.transforms.functional_tensor' without following hack

RUN sed -i 's/from torchvision.transforms.functional_tensor import rgb_to_grayscale/from torchvision.transforms.functional import rgb_to_grayscale/' /usr/local/lib/python3.10/site-packages/basicsr/data/degradations.py

I think requirements.txt must be updated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.