Deep-Live-Cam
Deep-Live-Cam copied to clipboard
Leaked Semaphore Objects - Video Face Swap Issue
[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.
Trying lowering the maximum memory used with --max-memory, I ran into this same issue.
Isn't it 4 by default, I tried to change but it said Python int too large something.
On Wed, 14 Aug 2024 at 12:33, Easton Elliott @.***> wrote:
Trying lowering the maximum memory used with --max-memory, I ran into this same issue.
— Reply to this email directly, view it on GitHub https://github.com/hacksider/Deep-Live-Cam/issues/311#issuecomment-2288292292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJOBSW4O4TE5Y66WV7KQ3DZRMQAPAVCNFSM6AAAAABMP2Q2MCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBYGI4TEMRZGI . You are receiving this because you authored the thread.Message ID: @.***>
It should be a coreml issue, I ran into the same problem on macos m1, try this and it works for me: download a custom build onnxruntime_silicon from https://github.com/cansik/onnxruntime-silicon/releases/tag/v1.14.2 pip uninstall onnxruntime_silicon pip install onnxruntime_silicon-1.14.2-cpxxx-cpxxx-macosx_12_0_arm64.whl (replace xxx with your version)
now you dont need to set max-memory and it wont leak again, have fun.