Maurdekye / training-picker

Extension for stable-diffusion-webui that allows the user to mux through the keyframes of a video, and automatically pick and export training examples from individual keyframes.
109 stars 15 forks source link

Segmentation fault on OSX: error: 'mps.add' op requires the same element type for all operands and results #29

Open larsschwarz opened 1 year ago

larsschwarz commented 1 year ago

Trying to train 30 images on OSX M1 runs into a segmentation fault. Not sure about the root cause here. Probably memory related?

Training at rate of 0.005 until step 100000

Preparing dataset...

100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 29/29 [00:27<00:00,  1.07it/s]

  0%|                                                                                                                                               | 0/100000 [00:00<?, ?it/s](mpsFileLoc): /AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphUtilities.mm:228:0: error: 'mps.add' op requires the same element type for all operands and results

(mpsFileLoc): /AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/MetalPerformanceShadersGraph/mpsgraph/MetalPerformanceShadersGraph/Core/Files/MPSGraphUtilities.mm:228:0: note: see current operation: %5 = "mps.add"(%4, %arg2) : (tensor<1x4096x320xf32>, tensor<*xf16>) -> tensor<*xf32>

zsh: segmentation fault  ./webui.sh

/opt/homebrew/Cellar/python@3.10/3.10.10_1/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 '

Running with --skip-torch-cuda-test --no-half --use-cpu all

larsschwarz commented 1 year ago

My bad! I did actually ran with --use-cpu interrogate. Closing ticket.