Skip to content

Commit

Permalink
decrease tokens max to help avoid too much hardsub
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kennedy committed Mar 23, 2024
1 parent 6326e79 commit 8dc9729
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ pub struct Args {
#[clap(
long,
env = "SD_MAX_LENGTH",
default_value_t = 77,
default_value_t = 70,
help = "SD Max Length in tokens for SD Image hardsub text segments. example: 77 tokens is avg 77 * 4 == 308 chars."
)]
pub sd_max_length: usize,
Expand All @@ -502,7 +502,7 @@ pub struct Args {
#[clap(
long,
env = "SD_PARAGRAPH_MIN",
default_value_t = 40,
default_value_t = 30,
help = "SD Min Length for text segments generating Images. Will force past this value before segmenting text."
)]
pub sd_text_min: usize,
Expand Down Expand Up @@ -556,7 +556,7 @@ pub struct Args {
#[clap(
long,
env = "CANDLE_LLM",
default_value = "gemma",
default_value = "mistral",
help = "which llm to use from candle."
)]
pub candle_llm: String,
Expand Down
2 changes: 1 addition & 1 deletion src/ndi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub fn send_images_over_ndi(
} else if subtitle_position == "mid-bottom" {
subtitle_height = height as i32 - (height as i32 / 3);
} else if subtitle_position == "bottom" {
subtitle_height = height as i32 - (height as i32 / 4);
subtitle_height = (height as i32 - (height as i32 / 4)) /*+ font_size as i32*/;
} else {
log::error!(
"Invalid subtitle position '{}', using default position bottome as value {} instead.",
Expand Down

0 comments on commit 8dc9729

Please sign in to comment.