Fix default configs, config loading, and add warnings/early returns for bad configs.

This commit is contained in:
Ean Garvey
2024-05-31 14:26:17 -05:00
parent 42abc6787d
commit c088247aa1
2 changed files with 1 additions and 5 deletions

View File

@@ -262,8 +262,6 @@ class StableDiffusion:
control_mode,
hints,
):
if seed == -1:
seed = randint(0, sys.maxsize)
img = self.sd_pipe.generate_images(
prompt,
negative_prompt,
@@ -458,8 +456,6 @@ def shark_sd_fn(
sd_kwargs,
)
generated_imgs.extend(out_imgs)
# TODO: make seed changes over batch counts more configurable.
submit_run_kwargs["seed"] = submit_run_kwargs["seed"] + 1
yield generated_imgs, status_label(
"Stable Diffusion", current_batch + 1, batch_count, batch_size
)

View File

@@ -92,4 +92,4 @@ default_sd_configs = {
"default_sd_config.json": default_sd_config,
"sdxl-30steps.json": sdxl_30steps,
"sdxl-turbo.json": sdxl_turbo,
}
}