Skip to content

Commit c895ae2

Browse files
author
Chris Kennedy
committed
args: Adjust args defaults
- various changes
1 parent cec79b1 commit c895ae2

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

bin/start_sdwebui.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
#
55
#./webui.sh --api --api-log --nowebui --port 7860 --skip-torch-cuda-test --no-half --use-cpu all
66
#./webui.sh --api --api-log --listen --port 7860 --skip-torch-cuda-test --no-half --use-cpu all
7-
./webui.sh --api --api-log --listen --port 7860 --skip-torch-cuda-test --no-half --use-cpu all
7+
#./webui.sh --api --api-log --listen --port 7860 --skip-torch-cuda-test --no-half --use-cpu all
8+
./webui.sh --api --api-log --listen --port 7860 --skip-torch-cuda-test --no-half

src/args.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ pub struct Args {
484484
#[clap(
485485
long,
486486
env = "BREAK_LINE_LENGTH",
487-
default_value_t = 120,
487+
default_value_t = 300,
488488
help = "Break Line Length - line length for breaking lines from LLM messages."
489489
)]
490490
pub break_line_length: usize,
@@ -511,7 +511,7 @@ pub struct Args {
511511
#[clap(
512512
long,
513513
env = "SD_MAX_LENGTH",
514-
default_value_t = 70,
514+
default_value_t = 200,
515515
help = "SD Max Length in tokens for SD Image hardsub text segments. example: 77 tokens is avg 77 * 4 == 308 chars."
516516
)]
517517
pub sd_max_length: usize,
@@ -520,7 +520,7 @@ pub struct Args {
520520
#[clap(
521521
long,
522522
env = "SD_PARAGRAPH_MIN",
523-
default_value_t = 30,
523+
default_value_t = 60,
524524
help = "SD Min Length for text segments generating Images. Will force past this value before segmenting text."
525525
)]
526526
pub sd_text_min: usize,
@@ -685,7 +685,7 @@ pub struct Args {
685685
#[clap(
686686
long,
687687
env = "SUBTITLE_POSITION",
688-
default_value = "bottom",
688+
default_value = "center",
689689
help = "Subtitle position."
690690
)]
691691
pub subtitle_position: String,

src/ndi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub fn send_images_over_ndi(
5858
subtitle_height = height as i32 - (height as i32 / 5);
5959
} else {
6060
log::error!(
61-
"Invalid subtitle position '{}', using default position bottome as value {} instead.",
61+
"Invalid subtitle position '{}', using default position bottom as value {} instead.",
6262
subtitle_position,
6363
subtitle_height
6464
);

src/sd_automatic.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ pub async fn sd_auto(
3939
};
4040

4141
let response = client
42-
.post("http://127.0.0.1:7860/sdapi/v1/txt2img")
42+
.post("http://earth:7860/sdapi/v1/txt2img")
43+
//.post("http://127.0.0.1:7860/sdapi/v1/txt2img")
4344
.json(&payload)
4445
.send()
4546
.await?;

0 commit comments

Comments
 (0)