stable-diffusion-webui
stable-diffusion-webui copied to clipboard
Size change from 512 crashes
Describe the bug Whenever I try any size change from 512 it crashes the ui. I tried 1024x512, etc but it just gives this error,
/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Types/MPSNDArray.mm:705: failed assertion `[MPSTemporaryNDArray initWithDevice:descriptor:] Error: product of dimension sizes > 2**31'
./run_webui_mac.sh: line 14: 24036 Abort trap: 6 python webui.py --precision full --no-half --medvram
/Users/kelvinzhao/miniconda3/envs/web-ui/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
Desktop (please complete the following information):
- OS: macOS Monterey 12.5
- Browser: Brave
- Commit revision: 25414bcd05ef8072ce97056039bdd99379b74be9
same here +1
I don't use apple, but similar case when increasing resolution can happen when running out of the video memory. Try to lower overall resolution.
I used to render images larger than 1024 without any problem by setting midas_weight to 1. Apparently something is broken, maybe after some update because I can't anymore. I'm facing the same error and I'm not sure what is causing it.
How to reproduce:
- Set resolution to 1024x512;
- Generate an image using any sampler.
Running on a M1 Max 32GB
It is definitely not a out of video memory problem since it has rendered before and while trying to run it, I was monitoring the memory usage and pressure and it even got up to 5%.
0%| | 0/30 [00:00<?, ?it/s]
/AppleInternal/Library/BuildRoots/f0468ab4-4115-11ed-8edc-7ef33c48bc85/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Types/MPSNDArray.mm:724: failed assertion `[MPSNDArray initWithDevice:descriptor:] Error: total bytes of NDArray > 2**32'
./run_webui_mac.sh: line 15: 7740 Abort trap: 6 python webui.py --precision full --no-half --api --use-cpu Interrogate GFPGAN CodeFormer $@
/Users/barretto/miniconda/envs/web-ui/lib/python3.10/multiprocessing/resource_tracker.py:224: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
same here +1 apple m2 max
Same here +1 apple M1 Max 64GB
this is an old issue which is fixed and no longer seems relevant, if this issue is related to future issues, please refer to this previous one.
Try brkirch's release, you will find it in discussions.
same here +1
mac m1 max 32G