mirror of
https://github.com/facefusion/facefusion.git
synced 2026-07-30 05:48:53 +02:00
2.4.1 (#442)
* Update official url for cuda 12-2 wheels * Fix preview for audio to image * Prevent download loop when remote is unreachable * Prevent download loop when remote is unreachable * changes (#444) * Tidy up monkey patch * Use cpu core count for concurrency count * Dynamic concurrency_count for ideal Gradio performance * Conditional download face analyser models * Fix testing via pre_check() * Introduce checking to process manager for blocking the UI * Introduce checking to process manager for blocking the UI * Introduce checking to process manager for blocking the UI * Introduce checking to process manager for blocking the UI * Move the blocking while model download to the correct position * Remove unused imports --------- Co-authored-by: Harisreedhar <46858047+harisreedhar@users.noreply.github.com>
This commit is contained in:
co-authored by
Harisreedhar
parent
1e2031e149
commit
6e67d7bff6
@@ -15,6 +15,10 @@ def set_process_state(process_state : ProcessState) -> None:
|
||||
PROCESS_STATE = process_state
|
||||
|
||||
|
||||
def is_checking() -> bool:
|
||||
return get_process_state() == 'checking'
|
||||
|
||||
|
||||
def is_processing() -> bool:
|
||||
return get_process_state() == 'processing'
|
||||
|
||||
@@ -27,6 +31,10 @@ def is_pending() -> bool:
|
||||
return get_process_state() == 'pending'
|
||||
|
||||
|
||||
def check() -> None:
|
||||
set_process_state('checking')
|
||||
|
||||
|
||||
def start() -> None:
|
||||
set_process_state('processing')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user