Industry leading face manipulation platform
Fix UI
henryruhs56d714368ad7
diff --git a/facefusion/uis/components/benchmark.py b/facefusion/uis/components/benchmark.pyindex 55e1577d..89939a63 100644--- a/facefusion/uis/components/benchmark.py+++ b/facefusion/uis/components/benchmark.py@@ -56,4 +56,5 @@ def start(benchmark_resolutions : List[str], benchmark_cycles : int) -> Generatostate_manager.sync_item('execution_thread_count')state_manager.sync_item('execution_queue_count')- yield from benchmarker.run()+ for benchmark in benchmarker.run():+ yield [ list(benchmark_set.values()) for benchmark_set in benchmark ]diff --git a/facefusion/uis/components/benchmark_options.py b/facefusion/uis/components/benchmark_options.pyindex a7f07cf4..60322af6 100644--- a/facefusion/uis/components/benchmark_options.py+++ b/facefusion/uis/components/benchmark_options.py@@ -3,7 +3,7 @@ from typing import Optionalimport gradiofrom facefusion import wording-from facefusion.benchmarker import BENCHMARKS+import facefusion.choicesfrom facefusion.uis.core import register_ui_componentBENCHMARK_RESOLUTIONS_CHECKBOX_GROUP : Optional[gradio.CheckboxGroup] = None@@ -16,15 +16,15 @@ def render() -> None:BENCHMARK_RESOLUTIONS_CHECKBOX_GROUP = gradio.CheckboxGroup(label = wording.get('uis.benchmark_resolutions_checkbox_group'),- choices = list(BENCHMARKS.keys()),- value = list(BENCHMARKS.keys())+ choices = facefusion.choices.benchmark_resolutions,+ value = facefusion.choices.benchmark_resolutions)BENCHMARK_CYCLES_SLIDER = gradio.Slider(label = wording.get('uis.benchmark_cycles_slider'),value = 5,step = 1,- minimum = 1,- maximum = 10+ minimum = min(facefusion.choices.benchmark_cycles_range),+ maximum = max(facefusion.choices.benchmark_cycles_range))register_ui_component('benchmark_resolutions_checkbox_group', BENCHMARK_RESOLUTIONS_CHECKBOX_GROUP)register_ui_component('benchmark_cycles_slider', BENCHMARK_CYCLES_SLIDER)