apple / ml-stable-diffusion

Stable Diffusion with Core ML on Apple Silicon
MIT License
16.67k stars 923 forks source link

Processing issue - Leaked semaphore objects - There appear to be %d #349

Open Retha23 opened 1 month ago

Retha23 commented 1 month ago
[DLC.CORE] Creating temp resources...
[DLC.CORE] Extracting frames...
[DLC.FACE-SWAPPER] Progressing...
Processing:   0%| | 2/1306 [00:01<16:09,  1.34frame/s, execution_providers=['CoreMLExecutionProvider'], execution_threads=8, max_memory=4Applied providers: ['CoreMLExecutionProvider', 'CPUExecutionProvider'], with options: {'CPUExecutionProvider': {}, 'CoreMLExecutionProvider': {}}
inswapper-shape: [1, 3, 128, 128]
Processing:  27%|██▋       | 359/1306 [02:04<05:59,  2.63frame/s, execution_providers=['CoreMLExecutionProvider'], execution_threads=8, max_memory=4]zsh: killed     python3 run.py --execution-provider coreml

/opt/miniconda3/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 '

When I try to process a video, it gives the above error near 25%. I couldn't find a valid fix.

Regards.

atiorh commented 2 weeks ago

Looks like this is in the context of a broader app and the log message isn't relevant but the leaked semaphore message is usually related to running out of memory on your system.