add option for fully random batch seeds

This commit is contained in:
Vladimir Mandic
2024-04-09 10:46:33 -04:00
parent fc351ac079
commit 2f7154dc70
6 changed files with 15 additions and 5 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
# Change Log for SD.Next
## Update for 2024-04-07
## Update for 2024-04-09
- **Features**:
- **Gallery**: list, preview, search through all your images and videos!
@@ -33,6 +33,7 @@
- Faster server startup
- Add **MIGraphX** torch optimization engine, thanks @Disty0
- Styles apply wildcards to params
- Add option to make batch generations use fully random seed vs sequential
- Make metadata in full screen viewer optional
- Add VAE civitai scan metadata/preview
- More efficient in-browser callbacks
+1
View File
@@ -15,6 +15,7 @@ Main ToDo list can be found at [GitHub projects](https://github.com/users/vladma
- stable diffusion 3.0
- pixart-sigma: <https://github.com/PixArt-alpha/PixArt-sigma> <https://pixart-alpha.github.io/PixArt-sigma-project/>
- powerpaint: <https://github.com/zhuang2002/PowerPaint>
- ella: <https://github.com/TencentQQGYLab/ELLA>
### Pipelines
+1 -1
View File
@@ -31,7 +31,7 @@ except Exception:
def check_grid_size(imgs):
mp = 0
for img in imgs:
mp += img.width * img.height
mp += img.width * img.height if img is not None else 0
mp = round(mp / 1000000)
ok = mp <= shared.opts.img_max_size_mp
if not ok:
+7 -1
View File
@@ -225,7 +225,13 @@ def process_init(p: StableDiffusionProcessing):
if type(seed) == list:
p.all_seeds = seed
else:
p.all_seeds = [int(seed) + (x if p.subseed_strength == 0 else 0) for x in range(len(p.all_prompts))]
if shared.opts.sequential_seed:
p.all_seeds = [int(seed) + (x if p.subseed_strength == 0 else 0) for x in range(len(p.all_prompts))]
else:
p.all_seeds = []
for i in range(len(p.all_prompts)):
seed = get_fixed_seed(p.seed)
p.all_seeds.append(int(seed) + (i if p.subseed_strength == 0 else 0))
if type(subseed) == list:
p.all_subseeds = subseed
else:
+3 -1
View File
@@ -470,8 +470,10 @@ options_templates.update(options_section(('advanced', "Inference Settings"), {
"hypertile_vae_tile": OptionInfo(128, "HyperTile VAE tile size", gr.Slider, {"minimum": 0, "maximum": 1024, "step": 8}),
"hypertile_vae_swap_size": OptionInfo(1, "HyperTile VAE swap size", gr.Slider, {"minimum": 1, "maximum": 10, "step": 1}),
"inference_other_sep": OptionInfo("<h2>Other</h2>", "", gr.HTML),
"inference_batch_sep": OptionInfo("<h2>Batch</h2>", "", gr.HTML),
"sequential_seed": OptionInfo(True, "Batch mode uses sequential seeds"),
"batch_frame_mode": OptionInfo(False, "Parallel process images in batch"),
"inference_other_sep": OptionInfo("<h2>Other</h2>", "", gr.HTML),
"inference_mode": OptionInfo("no-grad", "Torch inference mode", gr.Radio, {"choices": ["no-grad", "inference-mode", "none"]}),
"sd_vae_sliced_encode": OptionInfo(False, "VAE sliced encode"),
}))
+1 -1
Submodule wiki updated: 67f0f43e3d...b95e6d67ad