mirror of
https://github.com/facefusion/facefusion.git
synced 2026-06-06 20:53:54 +02:00
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:
@@ -26,7 +26,7 @@ def before_all() -> None:
|
||||
def test_create() -> None:
|
||||
assert create(1)
|
||||
|
||||
with patch('facefusion.codecs.aom_decoder.aom_module.create_static_library', return_value = None):
|
||||
with patch('facefusion.libraries.aom.create_static_library', return_value = None):
|
||||
assert create(1) is None
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ def test_decode() -> None:
|
||||
assert create_hash(decode(aom_decoder, encode_buffer).get('buffer')) == 'e3c0ebd8'
|
||||
|
||||
if is_macos():
|
||||
assert create_hash(decode(aom_decoder, encode_buffer).get('buffer')) == '0a0ab3d0'
|
||||
assert create_hash(decode(aom_decoder, encode_buffer).get('buffer')) == 'c8c6fdaa'
|
||||
|
||||
|
||||
def test_destroy() -> None:
|
||||
|
||||
Reference in New Issue
Block a user