hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
35.01k stars 4.94k forks source link

Leaked Semaphore Objects - Video Face Swap Issue #311

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.

snacsnoc commented 1 month ago

Trying lowering the maximum memory used with --max-memory, I ran into this same issue.

Retha23 commented 1 month ago

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: @.***>