InvokeAI: Invoke 2.3 Installs and starts normally, but crashes as soon as starting to use it
Is there an existing issue for this?
- I have searched the existing issues
OS
macOS
GPU
amd
VRAM
64 Gb
What happened?
Invoke 2.3 Installs and starts normally, but crashes as soon as starting to use it: home@Einarss-MacBook-Pro ~ % /Users/home/invokeai/MyAi.sh
Starting the InvokeAI browser-based UI…
- Initializing, be patient…
Initialization file /Users/home/invokeai/invokeai.init found. Loading… Internet connectivity is True InvokeAI, version 2.3.0 InvokeAI runtime directory is “/Users/home/invokeai” GFPGAN Initialized CodeFormer Initialized ESRGAN Initialized Using device_type mps xformers not installed Current VRAM usage: 0.00G Loading diffusers model from runwayml/stable-diffusion-v1-5 | Using more accurate float32 precision | Loading diffusers VAE from stabilityai/sd-vae-ft-mse | Using more accurate float32 precision Fetching 15 files: 100%|███████████████████████████████████████████████████████████████████████████████████████████| 15/15 [00:00<00:00, 43842.90it/s] | Default image dimensions = 512 x 512 Model loaded in 4.50s Textual inversions available: Setting Sampler to k_lms (LMSDiscreteScheduler)
- –web was specified, starting web server…
- Initializing, be patient…
Initialization file /Users/home/invokeai/invokeai.init found. Loading… Started Invoke AI Web Server! Default host address now 127.0.0.1 (localhost). Use --host 0.0.0.0 to bind any address. Point your browser at http://127.0.0.1:9090 System config requested patchmatch.patch_match: INFO - Compiling and loading c extensions from “/Users/home/invokeai/.venv/lib/python3.9/site-packages/patchmatch”. patchmatch.patch_match: ERROR - patchmatch failed to load or compile (Command ‘make clean && make’ returned non-zero exit status 2.). patchmatch.patch_match: INFO - Refer to https://invoke-ai.github.io/InvokeAI/installation/060_INSTALL_PATCHMATCH/ for installation instructions. Patchmatch not loaded (nonfatal)
Image Generation Parameters:
{‘prompt’: ‘Oil painting of beautiful flowers, palette knife style [poorly drawn, ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, blurry, bad anatomy, blurred, watermark, grainy, signature, cut off, draft, unwanted, distorted, grotesque, chaotic, misaligned, smudged, mutilated, asymmetrical, pixelated, low-resolution, unnatural, off-balance, poorly rendered, over-exposed, grainy, dark, sketchy, distorted features, mismatched, out of proportion, scribbled, botched.\n]’, ‘iterations’: 1, ‘steps’: 50, ‘cfg_scale’: 7.5, ‘threshold’: 0, ‘perlin’: 0, ‘height’: 1024, ‘width’: 1024, ‘sampler_name’: ‘k_lms’, ‘seed’: 1218858731, ‘progress_images’: False, ‘progress_latents’: True, ‘save_intermediates’: 5, ‘generation_mode’: ‘unifiedCanvas’, ‘init_mask’: ‘data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAOACAYAAAD1jh…’, ‘fit’: False, ‘strength’: 0.75, ‘invert_mask’: False, ‘bounding_box’: {‘x’: -192, ‘y’: -192, ‘width’: 960, ‘height’: 896}, ‘init_img’: ‘data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAOACAYAAAD1jh…’, ‘inpaint_width’: 960, ‘inpaint_height’: 896, ‘seam_size’: 96, ‘seam_blur’: 16, ‘seam_strength’: 0.7, ‘seam_steps’: 30, ‘tile_size’: 32, ‘infill_method’: ‘tile’, ‘force_outpaint’: False, ‘variation_amount’: 0}
ESRGAN Parameters: False Facetool Parameters: False using provided input image of size 960x896 This input is larger than your defaults. If you run out of memory, please use a smaller image. using provided input image of size 960x896 Generating: 0%| | 0/1 [00:00<?, ?it/s]/Users/home/invokeai/.venv/lib/python3.9/site-packages/diffusers/schedulers/scheduling_lms_discrete.py:268: UserWarning: The operator ‘aten::nonzero’ 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:11.) step_indices = [(schedule_timesteps == t).nonzero().item() for t in timesteps] /AppleInternal/Library/BuildRoots/c651a45f-806e-11ed-a221-7ef33c48bc85/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Types/MPSNDArray.mm:705: failed assertion `[MPSNDArray initWithDevice:descriptor:] Error: product of dimension sizes > 2**31’ /Users/home/invokeai/MyAi.sh: line 37: 17572 Abort trap: 6 .venv/bin/python .venv/bin/invoke.py --web $* home@Einarss-MacBook-Pro ~ % /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/resource_tracker.py:216: 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 ’
Screenshots
No response
Additional context
I have even done a complete Mac OS system reinstall with new Python install, as per instructions. Does not help. Crashes all the time. Previous version 1.5 was not that vulnerable.
Contact Details
einars@apollo.lv
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 32 (1 by maintainers)
I have Apple MacBook Pro M2 max, specially obtained to play with large size AI applications, including image, music and video generations. Currently just learning how to play with different software and various available applications. Not easy to learn new tricks at fast pace 😃 InvokeAI looks very promising.
Thank you all very much!
I will try everything. I need to get Invoke running. I have even performed a factory reset and clean install of my Mac.
Now, I would first install OPENCV as suggested, then will attempt running ./.venv/bin/activate PYTORCH_ENABLE_MPS_FALLBACK=1 invokeai --web
Is that correct?
Einars