Replies: 16 comments 16 replies
-
And are there any plans for m1? |
Beta Was this translation helpful? Give feedback.
-
someone managed to get it to work UPDATE: Use this fork https://github.com/jorge-campo/Fooocus/tree/main |
Beta Was this translation helpful? Give feedback.
-
Would probably be much faster when Core ML is utilised. Both Draw Things and Diffusers are reasonably fast now. Here's hoping we get an official version soon. |
Beta Was this translation helpful? Give feedback.
-
I have an M1 Macbook Pro but never bother to do Stable Diffusion or Mining (no longer) with it. I built a PC for those tasks. The bottom line use the right tool for the job. Blame Apple for not being friendly with NVidia |
Beta Was this translation helpful? Give feedback.
-
You do not need to do anything special to make it work on Apple Silicon Mac.. I followed the Linux instructions and it worked like a charm on first try. |
Beta Was this translation helpful? Give feedback.
-
@vesper8 Agree - it was relatively easy to get it working. Not the fastest but not the slowest and there's still some quirks but honestly, having tried it on 4 different platforms, they all have quirks. |
Beta Was this translation helpful? Give feedback.
-
On my M2 Pro Mac, why it's so slow? |
Beta Was this translation helpful? Give feedback.
-
try a amd mac im on, 15-20 mins a image |
Beta Was this translation helpful? Give feedback.
-
Anyone tried running this in a Linux container with Docker on Apple M1/M2/M3? |
Beta Was this translation helpful? Give feedback.
-
I'm running Fooocus on a Macbook Pro M2. It's working pretty well! I didn't have to change anything, just started generating images straight out of the box. Great work! |
Beta Was this translation helpful? Give feedback.
-
Even 90-100 would be a vast improvement to what I see. This is Fooocus main branch on an M2 mini 16GB: 10%|████▎ | 3/30 [05:13<45:59, 102.20s/it] ...which is a bit slower than what you see 🤣 I do note mine produces an error: anisotropic.py:132: UserWarning: The operator 'aten::std_mean.correction' is not currently supported on the MPS backend and will fall back to run on the CPU. This may have performance implications. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/aten/src/ATen/mps/MPSFallback.mm:13.) I would guess this is the heart of the problem - mine is falling back to CPU and yours is likely using Apple Silicon acceleration. Do you have any guidance on your installation process? I'd like to try what you did (nuke my install, start again) so if you could throw some advice my way I'll try replicating. |
Beta Was this translation helpful? Give feedback.
-
Thanks, that's what I used too. I've just done a fresh install on my M1 MacBook Air (16GB) to see if something weird is going on with my M2 mini. Followed the same instructions, used the nightly build per the Metal Pytorch instructions (https://developer.apple.com/metal/pytorch/ with the output correctly showing "tensor([1.], device='mps:0')"), and... I still get the MPS backend CPU fallback warning, and incredibly slow render speed. So, using the instructions, but getting a hard fail on Metal use. Looking at the CPU load on the unit, it's more or less just idling - 85% idle while rendering, but has McMassive memory pressure (Python using 25GB of memory, and of course that means we're at about 18GB of swap used). So, there's something going on where a) we're not using Metal acceleration, and b) we're using stupendous amounts of memory (AUTOMATIC1111, Draw Things do not have this behaviour). I'm at a loss; my hunch is there's something busted in the nightly pytorch used on my machinery 🤷🏼 Another possible option is something iffy with homebrew on my machine (which I also run) - totally at a loss as to how to determine if that's the case tho. |
Beta Was this translation helpful? Give feedback.
-
Hm, okay - I completely removed Homebrew, which caused Fooocus a few issues so it was def. pointed there. But after a scrub and re-install (it's now unable to use Homebrew and must rely on the pytorch nightly) it still doesn't work 🙁
I dunno, this feels like it should just work, but isn't, implying a bug somewhere. ChatGPT 🤣 says the error indicates an issue with the MPS backend at fault, but it's also told me that pasta is higher in protein than carbs, so mileage varies. The error itself points to Fooocus's anisotropic.py module using an unsupported function, so I imagine there's a capability hole here.
|
Beta Was this translation helpful? Give feedback.
-
Ah okay - so it could be something of a wider use scenario that the code is asking the MPS backend for that's not implemented. This still doesn't help us mortals 🤣 get a solution to Fooocus on Mac, but it may highlight that Apple needs to do more work, or the devs need to recognise the gap and implement a workaround. |
Beta Was this translation helpful? Give feedback.
-
Found this blog post The article compares Apple Silicon and Nvidia 4090 in an AI test (not using a Stable Diffusion task, but a Whisper by Open AI task). https://github.com/ml-explore Now i have few questions...
I apologize in advance for my ignorance here and potential silly questions, AI/ML/GPU is not my thing... |
Beta Was this translation helpful? Give feedback.
-
I really neeeeeeed that!
Beta Was this translation helpful? Give feedback.
All reactions