From 716abbe5531ae93418b68aaaedf48366bb0c2449 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 8 Sep 2024 22:23:43 -0400 Subject: [PATCH] change estimate again --- .../utils/estimates/estimate_job_progress.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/utils/estimates/estimate_job_progress.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/utils/estimates/estimate_job_progress.rs index 521cef1f90..0a83235daa 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/utils/estimates/estimate_job_progress.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/inference_job/utils/estimates/estimate_job_progress.rs @@ -10,12 +10,16 @@ use crate::http_server::endpoints::inference_job::utils::estimates::comfy_workfl use crate::http_server::endpoints::inference_job::utils::estimates::percent::percent; // TODO: These numbers are made up. We should measure the average job durations. -const LIPSYNC_JOB_AVERAGE_SECONDS : u64 = 60 * 3; const TTS_JOB_AVERAGE_SECONDS : u64 = 7; const VC_JOB_AVERAGE_SECONDS : u64 = 90; const LIVE_PORTRAIT_JOB_AVERAGE_SECONDS : u64 = 90; -const VID_FACE_FUSION_AVERAGE_SECONDS : u64 = 30; + +/// Lipsync with face fusion +const VID_FACE_FUSION_AVERAGE_SECONDS : u64 = 45; + +/// Lipsync with SadTalker (super old and slow) +const LIPSYNC_JOB_AVERAGE_SECONDS : u64 = 60 * 3; pub fn estimate_job_progress(job: &GenericInferenceJobStatus, maybe_args: Option<&PolymorphicInferenceArgs>) -> u8 { match job.status {