Push based receive with queue (#1146)

* move to push based receive

* move to push based receive, fix mocks

* fix tests

* add todos

* remove asyncio

* remove asyncio

* resolve todos

* move to queue without events

* prevent debug spam

* concurrent stream inference

stream_video.py: pipeline face-swap inference across execution_thread_count workers (ThreadPoolExecutor + bounded in-flight deque, ordered encode) to keep the GPU busy during encode

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* add todos

* add todos

* add missing state

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Henry Ruhs
2026-06-05 00:18:57 +02:00
committed by GitHub
parent 1f494f54db
commit 775985645e
15 changed files with 193 additions and 214 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ def before_all() -> None:
def test_create() -> None:
assert create((320, 240), 1000, 8, 16)
with patch('facefusion.codecs.aom_encoder.aom_module.create_static_library', return_value = None):
with patch('facefusion.libraries.aom.create_static_library', return_value = None):
assert create((320, 240), 1000, 8, 16) is None