lllyasviel / stable-diffusion-webui-forge

GNU Affero General Public License v3.0
5.34k stars 526 forks source link

Mac Support? #314

Open Roblouisck opened 4 months ago

Roblouisck commented 4 months ago

Does stable-diffusion-webui-forge support mac? If so, can someone kindly point me to the install instructions?

If you're a mac user running the webui, can you comment any issues specific to mac?

Vektor8298 commented 4 months ago

I'm on Linux, and I followed the install instructions on A1111 for Linux and AMD, and it worked, so you might have luck trying to follow A1111's install instructions for forge.

ncoletto commented 4 months ago

Does anyone have a link to install it correctly on an Intel Mac??? Automatic1111 works fine but I installed Forge and it only gives me noise, and no images as output. Thanks in advance!

YofarDev commented 4 months ago

I just installed it on my M2 Pro and it runs without any problem so far. I already had regular automatic1111, so i just followed these instructions :

git remote add forge https://github.com/lllyasviel/stable-diffusion-webui-forge git branch lllyasviel/main git checkout lllyasviel/main git fetch forge git branch -u forge/main git pull

https://github.com/continue-revolution/sd-webui-animatediff/blob/forge/master/docs/how-to-use.md#you-have-a1111-and-you-know-git

cl000100 commented 3 months ago

I just installed it on my M2 Pro and it runs without any problem so far. I already had regular automatic1111, so i just followed these instructions :

git remote add forge https://github.com/lllyasviel/stable-diffusion-webui-forge git branch lllyasviel/main git checkout lllyasviel/main git fetch forge git branch -u forge/main git pull

https://github.com/continue-revolution/sd-webui-animatediff/blob/forge/master/docs/how-to-use.md#you-have-a1111-and-you-know-git

How should I operate specifically? I tried but failed. Can you elaborate on how to install and start it?Thanks.

AlChico85 commented 3 months ago

Just install it like A1111

I would recommend to leave the A1111 installation untouched (if you already have A1111), so you can switch between base A1111 and Forge if needed. Whatever, this was the way i installed Forge on my Mac.

fergardi commented 1 month ago

Just install it like A1111

* Create a new folder somewhere called "Forge" or something like this (not inside A1111 Folder, if you already have A1111).

* Right click the folder and open new terminal tab

* in Terminal type in: `git clone https://github.com/lllyasviel/stable-diffusion-webui-forge` and hit enter.

* when done, close the terminal. There should be a new Folder (stable-diffusion-webui-forge) inside the Folder "Forge".

* right click the "stable-diffusion-webui-forge" folder, open new terminal tab.

* in Terminal type in: `./webui.sh` and hit enter.

* let Forge do the rest.

I would recommend to leave the A1111 installation untouched (if you already have A1111), so you can switch between base A1111 and Forge if needed. Whatever, this was the way i installed Forge on my Mac.

Do you suffer very high processing times when in Mac Silicon? My generations with Forge in Macbook Air M1 16GB are up to 60min sometimes...

YofarDev commented 1 month ago

Do you suffer very high processing times when in Mac Silicon? My generations with Forge in Macbook Air M1 16GB are up to 60min sometimes...

Use SD 1.5 models instead of SDXL. One basic txt2img with 512x512, DPM++ 2M SDE with 20 steps should take around 10 seconds.

And then for upscaling, it depends on your workflow and settings, but I would say it should be in the <10min range rather than >60min.

fergardi commented 1 month ago

Do you suffer very high processing times when in Mac Silicon? My generations with Forge in Macbook Air M1 16GB are up to 60min sometimes...

Use SD 1.5 models instead of SDXL. One basic txt2img with 512x512, DPM++ 2M SDE with 20 steps should take around 10 seconds.

And then for upscaling, it depends on your workflow and settings, but I would say it should be in the <10min range rather than >60min.

Oh I see. So when working with SDXL, I shall expect this kind of performance drops. Do you know if there can be improvements in speed when using SDXL Turbo, Lightning, etc versions?

YofarDev commented 1 month ago

Oh I see. So when working with SDXL, I shall expect this kind of performance drops. Do you know if there can be improvements in speed when using SDXL Turbo, Lightning, etc versions?

Well these versions of SDXL are supposed to be faster, but the few times I've tried it was too slow for me so I gave up

AlChico85 commented 1 month ago

Do you suffer very high processing times when in Mac Silicon? My generations with Forge in Macbook Air M1 16GB are up to 60min sometimes...

Depends on what Mac you use. It´s not like generating on Windows where VRAM is King - its more: RAM is King on Mac Silicone. I have a Mac Studio M2 Max with 64 GB RAM - i can generate everything at a moderate time (example: SDXL 1024x1024 25steps Euler in 42 sec).

Webui Forge is optimized for Windows and not for Mac. I got the same Speed with Forge like i got with A1111 but the RAM usage was much more than in A1111 - So i went back to A1111 especial version 1.7.0. because its the most Mac friendly version.

As you have only 16GB RAM on your Mac, use only fp16 Checkpoints of SD1.5/SDXL - also use the Hyper SD Lora like the (Hyper-SDXL-8steps-CFG-lora) with a strength of 0.45 and 4-6 CFG and 8 Steps for SDXL and give it a try otherwise go back to A1111 1.7.0 and try the same again...