stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Web UI installation using setup_mac.sh on Apple Silicon does not work

Open homurahomu1 opened this issue 2 years ago • 1 comments

Describe the bug The Web UI setup does not work on Apple Silicon Mac - returns:

-----> !!!! The file is most likely corrupted !!!! <----- and TypeError: argument of type 'NoneType' is not iterable

(I tried many times and it happens every time even after deleting the miniconda and stable diffusion folders)

To Reproduce Steps to reproduce the behavior:

  1. Use the setup_mac.sh file to install Web UI as stated in the instructions
  2. Press y on all install prompts and n on the "have you already got model" prompt
  3. after everything downloads, a few error message pops up - terminal output below

Expected behavior The Web UI installs and works as intended

Terminal Output

`To make your changes take effect please reactivate your environment

============================================= ==============MORE INFORMATION===============

============================================= If you want to run the web UI again, you can run the following command: ./stable-diffusion-webui/run_webui_mac.sh or cd stable-diffusion-webui && ./run_webui_mac.sh

=============================================

============================================= Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels Loading weights [e3b0c442] from /Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/models/Stable-diffusion/sd-v1-4.ckpt Error verifying pickled file from /Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/models/Stable-diffusion/sd-v1-4.ckpt: Traceback (most recent call last): File "/Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/modules/safe.py", line 76, in check_pt with zipfile.ZipFile(filename) as z: File "/Users/(username)/miniconda/envs/web-ui/lib/python3.10/zipfile.py", line 1267, in init self._RealGetContents() File "/Users/(username)/miniconda/envs/web-ui/lib/python3.10/zipfile.py", line 1334, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/modules/safe.py", line 97, in load check_pt(filename) File "/Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/modules/safe.py", line 89, in check_pt unpickler.load() _pickle.UnpicklingError: invalid load key, 'A'.

-----> !!!! The file is most likely corrupted !!!! <----- You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.

Traceback (most recent call last): File "/Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/webui.py", line 161, in webui(cmd_opts.api) File "/Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/webui.py", line 122, in webui initialize() File "/Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/webui.py", line 84, in initialize shared.sd_model = modules.sd_models.load_model() File "/Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/modules/sd_models.py", line 215, in load_model load_model_weights(sd_model, checkpoint_info) File "/Users/(username)/Documents/Stable Diffusion AI/stable-diffusion-webui/modules/sd_models.py", line 165, in load_model_weights if "global_step" in pl_sd: TypeError: argument of type 'NoneType' is not iterable`

Desktop (please complete the following information):

  • OS: MacOS Version 12.6 on Apple Silicon M1 Pro MacBook
  • Browser: Safari or Chrome but haven't even gotten up to that stage yet
  • Commit revision: I have no idea, but it's the latest revision as of the 19th of October 2022

Additional context ty for helping!

homurahomu1 avatar Oct 19 '22 12:10 homurahomu1

This isn't just a setup issue. I was only able to get this repo installed using the helper script at https://github.com/seia-soto/stable-diffusion-webui-m1 and one of it's features is that it updates the repo on every launch. I've been seeing that error at runtime every time I've launched for the last 2-3 days. That said the webui still works as expected, though DDIM is for some reason no longer working. Don't know to a certainty that the two errors are related, but they absolutely started happening at the same time.

twopiearr avatar Oct 21 '22 17:10 twopiearr

Closing as stale.

catboxanon avatar Aug 03 '23 17:08 catboxanon