Skip to content

Commit

Permalink
args: Adjust args defaults
Browse files Browse the repository at this point in the history
- various changes
  • Loading branch information
Chris Kennedy committed Dec 5, 2024
1 parent cec79b1 commit c895ae2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion bin/start_sdwebui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
#
#./webui.sh --api --api-log --nowebui --port 7860 --skip-torch-cuda-test --no-half --use-cpu all
#./webui.sh --api --api-log --listen --port 7860 --skip-torch-cuda-test --no-half --use-cpu all
./webui.sh --api --api-log --listen --port 7860 --skip-torch-cuda-test --no-half --use-cpu all
#./webui.sh --api --api-log --listen --port 7860 --skip-torch-cuda-test --no-half --use-cpu all
./webui.sh --api --api-log --listen --port 7860 --skip-torch-cuda-test --no-half
8 changes: 4 additions & 4 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ pub struct Args {
#[clap(
long,
env = "BREAK_LINE_LENGTH",
default_value_t = 120,
default_value_t = 300,
help = "Break Line Length - line length for breaking lines from LLM messages."
)]
pub break_line_length: usize,
Expand All @@ -511,7 +511,7 @@ pub struct Args {
#[clap(
long,
env = "SD_MAX_LENGTH",
default_value_t = 70,
default_value_t = 200,
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 @@ -520,7 +520,7 @@ pub struct Args {
#[clap(
long,
env = "SD_PARAGRAPH_MIN",
default_value_t = 30,
default_value_t = 60,
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 @@ -685,7 +685,7 @@ pub struct Args {
#[clap(
long,
env = "SUBTITLE_POSITION",
default_value = "bottom",
default_value = "center",
help = "Subtitle position."
)]
pub subtitle_position: String,
Expand Down
2 changes: 1 addition & 1 deletion src/ndi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub fn send_images_over_ndi(
subtitle_height = height as i32 - (height as i32 / 5);
} else {
log::error!(
"Invalid subtitle position '{}', using default position bottome as value {} instead.",
"Invalid subtitle position '{}', using default position bottom as value {} instead.",
subtitle_position,
subtitle_height
);
Expand Down
3 changes: 2 additions & 1 deletion src/sd_automatic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ pub async fn sd_auto(
};

let response = client
.post("http://127.0.0.1:7860/sdapi/v1/txt2img")
.post("http://earth:7860/sdapi/v1/txt2img")
//.post("http://127.0.0.1:7860/sdapi/v1/txt2img")
.json(&payload)
.send()
.await?;
Expand Down

0 comments on commit c895ae2

Please sign in to comment.