lllyasviel / sd-forge-layerdiffuse

[WIP] Layer Diffusion for WebUI (via Forge)
Apache License 2.0
3.86k stars 331 forks source link

[m1 pro] How to fix the problem? #62

Open madsteed opened 8 months ago

madsteed commented 8 months ago

Moving model(s) has taken 0.91 seconds 100%|███████████████████████████████████████████| 20/20 [02:51<00:00, 8.59s/it] To load target model AutoencoderKL██████████████| 20/20 [02:37<00:00, 8.22s/it] Begin to load 1 model Moving model(s) has taken 2.63 seconds To load target model UNet1024 Begin to load 1 model Moving model(s) has taken 0.24 seconds 100%|█████████████████████████████████████████████| 8/8 [00:14<00:00, 1.82s/it] /AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:287: failed assertion `(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3 ' ./webui.sh: line 292: 2661 Abort trap: 6 "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@" (base) mbp@MBP forge % /opt/homebrew/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/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 '

h2appy commented 8 months ago

me too.

gawzuchiang commented 8 months ago

me too

starush commented 7 months ago

me too M1 max (mac studio)

starush commented 7 months ago

and there are not even one answer from developers

michristian commented 7 months ago

me too M2 MAX (macbook pro)

Moving model(s) has taken 3.11 seconds 100%|███████████████████████████████████████████| 20/20 [00:16<00:00, 1.25it/s] To load target model AutoencoderKL██████████████| 20/20 [00:09<00:00, 2.05it/s] Begin to load 1 model Moving model(s) has taken 0.07 seconds To load target model UNet1024 Begin to load 1 model Moving model(s) has taken 0.26 seconds 100%|█████████████████████████████████████████████| 8/8 [00:12<00:00, 1.52s/it] /AppleInternal/Library/BuildRoots/90c9c1ae-37b6-11ee-a991-46d450270006/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:287: failed assertion `(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3 ' ./webui.sh: line 292: 5480 Abort trap: 6 "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"

ValkyriaLenneth commented 7 months ago

Is there any progress?

michristian commented 7 months ago

any updates?

benjamin-bertram commented 6 months ago

Updated and still...

[Layer Diffusion] LayerMethod.FG_ONLY_ATTN
To load target model SDXL
Begin to load 1 model
Moving model(s) has taken 25.99 seconds
100%|█████████████████████████████████████████| 20/20 [00:51<00:00,  2.56s/it]
To load target model AutoencoderKL████████████| 20/20 [00:46<00:00,  2.45s/it]
Begin to load 1 model
Moving model(s) has taken 12.59 seconds
To load target model UNet1024
Begin to load 1 model
Moving model(s) has taken 0.37 seconds
  0%|                                                   | 0/8 [00:00<?, ?it/s]/AppleInternal/Library/BuildRoots/9941690d-bcf7-11ed-a645-863efbbaf80d/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSCore/Types/MPSNDArray.mm:706: failed assertion `[MPSTemporaryNDArray initWithDevice:descriptor:] Error: NDArray dimension length > INT_MAX'
webui.sh: line 292: 63656 Abort trap: 6           "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
/opt/homebrew/Cellar/python@3.10/3.10.13_2/Frameworks/Python.framework/Versions/3.10/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 '
sh webui.sh
jniac commented 6 months ago

same here

/AppleInternal/Library/BuildRoots/90c9c1ae-37b6-11ee-a991-46d450270006/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:287: failed assertion `(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3
'
./webui.sh: line 292: 81696 Abort trap: 6           "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
/opt/homebrew/Cellar/python@3.10/3.10.14/Frameworks/Python.framework/Versions/3.10/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 '
ballenvironment commented 6 months ago

doesn't work at all on m1 mbp. fix it please dont leave us behind!

wzx1229 commented 6 months ago

/AppleInternal/Library/BuildRoots/495c257e-668e-11ee-93ce-926038f30c31/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShaders/MPSNDArray/Kernels/MPSNDArraySort.mm:287: failed assertion(null)" Axis = 4. This class only supports axis = 0, 1, 2, 3 ' ./webui.sh: line 292: 1167 Abort trap: 6 "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@" (SD1111) test@bogon stable-diffusion-webui-forge % /opt/homebrew/Cellar/python@3.10/3.10.14/Frameworks/Python.framework/Versions/3.10/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 ' ` The same issue. Mac mini M1 16g

nhooram commented 6 months ago

https://github.com/huchenlei/ComfyUI-layerdiffuse/issues/1#issuecomment-2070451193

NoahElliot8991 commented 5 months ago

me too MAC M1