From 54f08192ed7d50cc2d2da4cb3d5d7bf174788963 Mon Sep 17 00:00:00 2001 From: salt Date: Wed, 28 Feb 2024 14:11:47 -0800 Subject: [PATCH] remove cropping arg from comfyui --- .../workflow_payload.rs | 14 +++++----- .../workflow/comfy_ui/process_job.rs | 6 ++--- .../endpoints/workflows/enqueue_comfy_ui.rs | 26 +++++++++---------- .../enqueue_workflow_upload_request.rs | 4 +-- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/crates/lib/mysql_queries/src/payloads/generic_inference_args/workflow_payload.rs b/crates/lib/mysql_queries/src/payloads/generic_inference_args/workflow_payload.rs index 7518bf4780..b55f8b2994 100644 --- a/crates/lib/mysql_queries/src/payloads/generic_inference_args/workflow_payload.rs +++ b/crates/lib/mysql_queries/src/payloads/generic_inference_args/workflow_payload.rs @@ -72,11 +72,11 @@ pub struct WorkflowArgs { #[serde(skip_serializing_if = "Option::is_none")] pub target_fps: Option, - #[serde(rename = "sw")] - #[serde(skip_serializing_if = "Option::is_none")] - pub scale_width: Option, - - #[serde(rename = "sh")] - #[serde(skip_serializing_if = "Option::is_none")] - pub scale_height: Option + // #[serde(rename = "sw")] + // #[serde(skip_serializing_if = "Option::is_none")] + // pub scale_width: Option, + // + // #[serde(rename = "sh")] + // #[serde(skip_serializing_if = "Option::is_none")] + // pub scale_height: Option } diff --git a/crates/service/job/inference_job/src/job/job_types/workflow/comfy_ui/process_job.rs b/crates/service/job/inference_job/src/job/job_types/workflow/comfy_ui/process_job.rs index 2f10c23f6d..8ebf49b884 100644 --- a/crates/service/job/inference_job/src/job/job_types/workflow/comfy_ui/process_job.rs +++ b/crates/service/job/inference_job/src/job/job_types/workflow/comfy_ui/process_job.rs @@ -316,8 +316,8 @@ pub async fn process_job(args: ComfyProcessJobArgs<'_>) -> Result) -> Result, maybe_target_fps: Option, - maybe_scale_width: Option, - maybe_scale_height: Option, + // maybe_scale_width: Option, + // maybe_scale_height: Option, creator_set_visibility: Option, } @@ -222,15 +222,15 @@ pub async fn enqueue_comfy_ui_handler( target_fps = 24; } - let mut scale_width = request.maybe_scale_width.unwrap_or(1024); - let mut scale_height = request.maybe_scale_height.unwrap_or(1024); - - if scale_width < 768 || scale_width > 1024 { - scale_width = 768; - } - if scale_height < 768 || scale_height > 1024 { - scale_height = 768; - } + // let mut scale_width = request.maybe_scale_width.unwrap_or(1024); + // let mut scale_height = request.maybe_scale_height.unwrap_or(1024); + // + // if scale_width < 768 || scale_width > 1024 { + // scale_width = 768; + // } + // if scale_height < 768 || scale_height > 1024 { + // scale_height = 768; + // } // Plan should handle "first anonymous use" and "investor" cases. let plan = get_correct_plan_for_session( @@ -266,8 +266,8 @@ pub async fn enqueue_comfy_ui_handler( trim_start_seconds: Some(trim_start_seconds), trim_end_seconds: Some(trim_end_seconds), target_fps:Some(target_fps), - scale_width:Some(scale_width), - scale_height:Some(scale_height) + // scale_width:Some(scale_width), + // scale_height:Some(scale_height) }; info!("Creating ComfyUI job record..."); diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/workflows/enqueue_workflow_upload_request.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/workflows/enqueue_workflow_upload_request.rs index 1d7d016c09..a77b65b1f0 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/workflows/enqueue_workflow_upload_request.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/workflows/enqueue_workflow_upload_request.rs @@ -238,8 +238,8 @@ pub async fn enqueue_workflow_upload_request( trim_start_seconds: None, trim_end_seconds: None, target_fps: None, - scale_width: None, - scale_height: None, + // scale_width: None, + // scale_height: None, }; // create the inference args here