sd-forge-layerdiffuse icon indicating copy to clipboard operation
sd-forge-layerdiffuse copied to clipboard

[M2 Mac] forge crashed with SD1.5 model

Open fai-9 opened this issue 1 year ago • 2 comments

Hello. I tried to run the SD 1.5 model since it has been released and forge crashed with the following error.

crash log
[Layer Diffusion] LayerMethod.FG_ONLY_ATTN_SD15
To load target model BaseModel
Begin to load 1 model
Moving model(s) has taken 1.88 seconds
  4%|█████                                                                                                                         | 1/25 [00:02<01:00,  2.52s/it] progress:   0%|                                                                                                                      | 0/25 [00:00<?, ?it/s]
  8%|██████████                                                                                                                    | 2/25 [00:04<00:46,  2.02s/it]
 12%|███████████████                                                                                                               | 3/25 [00:05<00:41,  1.87s/it]
 16%|████████████████████▏                                                                                                         | 4/25 [00:07<00:37,  1.79s/it]
 20%|█████████████████████████▏                                                                                                    | 5/25 [00:09<00:34,  1.75s/it]
 24%|██████████████████████████████▏                                                                                               | 6/25 [00:10<00:32,  1.73s/it]
 28%|███████████████████████████████████▎                                                                                          | 7/25 [00:12<00:30,  1.70s/it]
 32%|████████████████████████████████████████▎                                                                                     | 8/25 [00:14<00:28,  1.68s/it]
 36%|█████████████████████████████████████████████▎                                                                                | 9/25 [00:15<00:26,  1.67s/it]
 40%|██████████████████████████████████████████████████                                                                           | 10/25 [00:17<00:25,  1.67s/it]
 44%|███████████████████████████████████████████████████████                                                                      | 11/25 [00:19<00:23,  1.66s/it]
 48%|████████████████████████████████████████████████████████████                                                                 | 12/25 [00:20<00:21,  1.67s/it]
 52%|█████████████████████████████████████████████████████████████████                                                            | 13/25 [00:22<00:19,  1.67s/it]
 56%|██████████████████████████████████████████████████████████████████████                                                       | 14/25 [00:24<00:18,  1.67s/it]
 60%|███████████████████████████████████████████████████████████████████████████                                                  | 15/25 [00:25<00:16,  1.67s/it]
 64%|██████████████████████████████████████████████████████████████████████████████ ██                                             | 16/25 [00:27<00:15,  1.68s/it]
 68%|█████████████████████████████████████████████████████████████████████████████████████                                        | 17/25 [00:29<00:13,  1.66s/it]
 72%|██████████████████████████████████████████████████████████████████████████████████████████                                   | 18/25 [00:30<00:11,  1.65s/it]
 76%|███████████████████████████████████████████████████████████████████████████████████████████████                              | 19/25 [00:32<00:09,  1.65s/it]
 80%|████████████████████████████████████████████████████████████████████████████████████████████████████                         | 20/25 [00:34<00:08,  1.65s/it]
 84%|█████████████████████████████████████████████████████████████████████████████████████████████████████████                    | 21/25 [00:35<00:06,  1.64s/it]
 88%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████               | 22/25 [00:37<00:04,  1.64s/it]
 92%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████          | 23/25 [00:38<00:03,  1.64s/it]
 96%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████     | 24/25 [00:40<00:01,  1.63s/it]
100%|██████████████████████████████████████████████████████████████████████████████100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 25/25 [00:42<00:00,  1.69s/it]
To load target model AutoencoderKL
Begin to load 1 model
Moving model(s) has taken 4.26 seconds
To load target model UNet1024
Begin to load 1 model
Moving model(s) has taken 0.73 seconds
 12%|███████████████▉                                                                                                               | 1/8 [00:01<0 25%|███████████████████████████████▊                                                                                              38%|███████████████████████████████████████████████▋                                                              50%|███████████████████████████████████████████████████████████████▌                              62%|██████████████████████████████████████████████████████████████████████████████ 75%|██████████████████████████████████████████████████████████████████████████████ 88%|██████████████████████████████████████████████████████████████████████████████100%|██████████████████████████████████████████████████████████████████████████████100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 8/8 [00:03<00:00,  2.07it/s]
/AppleInternal/Library/BuildRoots/8e85887f-758c-11ee-a904-2a65a1af8551/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:283: failed assertion `(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3
  • forge version: commit 29be1da7cf2b5dccfc70fbdd33eb35c56a31ffb7
  • PC: M2 Mac mini
  • OS: macOS Ventura (13.6.4)
  • LayerDiffuse parameters:
    • Method: (SD1.5) Only Generate Transparent Image (Attention Injection)
    • Weight: 1
    • Stop At 1

Thank you!

fai-9 avatar Mar 08 '24 13:03 fai-9

no one is going to reply.

michristian avatar Mar 20 '24 11:03 michristian

Take a look at https://github.com/huchenlei/ComfyUI-layerdiffuse/issues/1#issuecomment-2070451193

JosNun avatar May 23 '24 18:05 JosNun