mirror of
https://github.com/s0md3v/roop.git
synced 2025-12-06 18:08:29 +00:00
Fix video frames lower than threads
This commit is contained in:
parent
3d02b26766
commit
c6a138701a
@ -1,2 +1,2 @@
|
||||
name = 'roop'
|
||||
version = '1.1.0'
|
||||
version = '1.2.0-next'
|
||||
|
||||
@ -46,7 +46,7 @@ def multi_process_frame(source_path: str, temp_frame_paths: List[str], process_f
|
||||
with ThreadPoolExecutor(max_workers=roop.globals.execution_threads) as executor:
|
||||
futures = []
|
||||
queue = create_queue(temp_frame_paths)
|
||||
queue_per_future = len(temp_frame_paths) // roop.globals.execution_threads
|
||||
queue_per_future = max(len(temp_frame_paths) // roop.globals.execution_threads, 1)
|
||||
while not queue.empty():
|
||||
future = executor.submit(process_frames, source_path, pick_queue(queue, queue_per_future), update)
|
||||
futures.append(future)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user