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

Size change from 512 crashes

Open kelvin-zhao opened this issue 2 years ago • 4 comments

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

kelvin-zhao avatar Sep 30 '22 06:09 kelvin-zhao

same here +1

SoulMaril avatar Oct 12 '22 17:10 SoulMaril

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.

inobrevi avatar Nov 16 '22 15:11 inobrevi

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 '

fbarretto avatar Nov 18 '22 05:11 fbarretto

same here +1 apple m2 max

xhhdd avatar Feb 28 '23 13:02 xhhdd

Same here +1 apple M1 Max 64GB

slavikshen avatar Apr 10 '23 22:04 slavikshen

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.

ClashSAN avatar May 02 '23 00:05 ClashSAN

Try brkirch's release, you will find it in discussions.

ClashSAN avatar May 02 '23 00:05 ClashSAN

same here +1

jackieli-atChina avatar Jul 30 '23 15:07 jackieli-atChina

mac m1 max 32G

jackieli-atChina avatar Jul 30 '23 15:07 jackieli-atChina