wkpark / sd-webui-model-mixer

Checkpoint model mixer/merger extension
GNU Affero General Public License v3.0
100 stars 4 forks source link

Console Error generating with model merging on (" TypeError: sequence item 1: expected str instance, NoneType found") #5

Closed CCpt5 closed 12 months ago

CCpt5 commented 12 months ago

Hi,

Getting this error when generating in txt2img after selecting SDXL models to merge/use - it seems to persist for a bit even after the extension is disabeled. When first getting this error and image is generated but it comes every time:

To create a public link, set `share=True` in `launch()`
Startup time: 1.7s (load scripts: 0.9s, create ui: 0.4s, gradio launch: 0.2s, app_started_callback: 0.2s).
config hash =  57d0eb405b7ae3e9373dd23b257eee7bd00cf1e8c6e39de44937648d0277f145
  - mm_use [True, True, True, True, True]
  - model_a SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors [c4fa751694]
  - base_model None
  - max_models 5
  - models ['SDXL\\2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000.safetensors', 'SDXL\\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors [c4fa751694]', 'SDXL\\2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000.safetensors [3bec9bda52]', 'SDXL\\2023-09-03 - Topnotch Artstyle #29 (Knowlin Box etc) - 20img - TXT ON - B4 - 1e5-step00002800.safetensors [31145a7321]', 'SDXL\\2023-09-05 - Topnotch #31 - 58img (MJ eerie film shots - rulers - mishmash-step00003300.safetensors [efdf0f8b17]']
  - modes ['Sum', 'Sum', 'Sum', 'Sum', 'Sum']
  - usembws [[], [], [], [], []]
  - weights ['0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5']
  - alpha [0.5, 0.5, 0.5, 0.5, 0.5]
  - adjust
model_a = SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good
Loading SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors [c4fa751694] from loaded model...
isxl = False
compact_mode =  False
Loading model SDXL_2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000.safetensors...
mode = Sum, alpha = 0.5
Stage #1/6: 100%|█████████████████████████████████████████████████████████████████| 3103/3103 [00:05<00:00, 534.21it/s]
Check uninitialized #2/6: 100%|███████████████████████████████████████████████| 3103/3103 [00:00<00:00, 1034408.31it/s]
Loading model SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good...
Loading SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors [c4fa751694] from loaded model...
mode = Sum, alpha = 0.5
Stage #3/6: 100%|█████████████████████████████████████████████████████████████████| 3103/3103 [00:07<00:00, 411.32it/s]
Loading model SDXL_2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000.safetensors...
mode = Sum, alpha = 0.5
Stage #4/6: 100%|█████████████████████████████████████████████████████████████████| 3103/3103 [00:06<00:00, 509.40it/s]
Loading model SDXL_2023-09-03 - Topnotch Artstyle #29 (Knowlin Box etc) - 20img - TXT ON - B4 - 1e5-step00002800...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-03 - Topnotch Artstyle #29 (Knowlin Box etc) - 20img - TXT ON - B4 - 1e5-step00002800.safetensors...
mode = Sum, alpha = 0.5
Stage #5/6: 100%|█████████████████████████████████████████████████████████████████| 3103/3103 [00:06<00:00, 509.75it/s]
Loading model SDXL_2023-09-05 - Topnotch #31 - 58img (MJ eerie film shots - rulers - mishmash-step00003300...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-05 - Topnotch #31 - 58img (MJ eerie film shots - rulers - mishmash-step00003300.safetensors...
mode = Sum, alpha = 0.5
Stage #6/6: 100%|█████████████████████████████████████████████████████████████████| 3103/3103 [00:06<00:00, 507.20it/s]
Save unchanged weights #6/6: 0it [00:00, ?it/s]
Loading VAE weights specified in settings: D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\models\VAE\sdxl_vae.safetensors
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:08<00:00,  4.59it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
Total progress: 100%|██████████████████████████████████████████████████████████████████| 37/37 [00:09<00:00,  3.99it/s]
config hash =  57d0eb405b7ae3e9373dd23b257eee7bd00cf1e8c6e39de44937648d0277f145████████| 37/37 [00:09<00:00,  4.67it/s]
  - use current mixed model 57d0eb405b7ae3e9373dd23b257eee7bd00cf1e8c6e39de44937648d0277f145
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 10 batches.
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:08<00:00,  4.62it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  4.68it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  4.69it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  4.68it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
 35%|████████████████████████████▊                                                     | 13/37 [00:02<00:05,  4.67it/s]
Total progress:  44%|███████████████████████████▊                                    | 161/370 [00:41<00:54,  3.85it/s]
config hash =  95509bfa362e0e3a3f1de1f34de81039bfffdfc9b99c1afdb25a90a8636cdb17      | 161/370 [00:41<00:46,  4.52it/s]
  - mm_use [True, True, True, False, False]
  - model_a SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors [c4fa751694]
  - base_model None
  - max_models 5
  - models ['SDXL\\2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000.safetensors', 'SDXL\\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors [c4fa751694]', 'SDXL\\2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000.safetensors [3bec9bda52]']
  - modes ['Sum', 'Sum', 'Sum']
  - usembws [[], [], []]
  - weights ['0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5']
  - alpha [0.5, 0.5, 0.5]
  - adjust
model_a = SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors...
isxl = True
compact_mode =  False
Loading model SDXL_2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000.safetensors...
mode = Sum, alpha = 0.5
Stage #1/4: 100%|█████████████████████████████████████████████████████████████████| 2515/2515 [00:06<00:00, 384.60it/s]
Check uninitialized #2/4: 100%|███████████████████████████████████████████████| 2515/2515 [00:00<00:00, 1257591.15it/s]
Loading model SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors...
mode = Sum, alpha = 0.5
Stage #3/4: 100%|█████████████████████████████████████████████████████████████████| 2515/2515 [00:06<00:00, 383.43it/s]
Loading model SDXL_2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000.safetensors...
mode = Sum, alpha = 0.5
Stage #4/4: 100%|█████████████████████████████████████████████████████████████████| 2515/2515 [00:06<00:00, 363.37it/s]
Save unchanged weights #4/4: 0it [00:00, ?it/s]
Loading VAE weights specified in settings: D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\models\VAE\sdxl_vae.safetensors
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 10 batches.
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  4.68it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  5.20it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
 73%|███████████████████████████████████████████████████████████▊                      | 27/37 [00:05<00:01,  5.16it/s]
Total progress:  27%|█████████████████▍                                              | 101/370 [00:24<01:05,  4.13it/s]
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 10 batches.0:51,  5.21it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:08<00:00,  4.60it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  4.68it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
 30%|████████████████████████▍                                                         | 11/37 [00:02<00:05,  4.66it/s]
Total progress:  23%|██████████████▉                                                  | 85/370 [00:22<01:15,  3.79it/s]
Restarting UI... 23%|██████████████▉                                                  | 85/370 [00:22<01:05,  4.35it/s]
Closing server running on port: 7860
[-] ADetailer initialized. version: 23.9.2, num models: 9
Tag Autocomplete: Could not locate model-keyword extension, Lora trigger word completion will be limited to those added through the extra networks menu.
2023-09-10 08:26:21,611 - ControlNet - INFO - ControlNet v1.1.409
checkpoint title =  (((SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good) x (1 - alpha_0) + (SDXL_2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000) x alpha_0) x (1 - alpha_1) + (SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good) x alpha_1) x (1 - alpha_2) + (SDXL_2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000) x alpha_2(0.5),(0.5),(0.5).safetensors [95509bfa36]
checkpoint title =  (((SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good) x (1 - alpha_0) + (SDXL_2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000) x alpha_0) x (1 - alpha_1) + (SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good) x alpha_1) x (1 - alpha_2) + (SDXL_2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000) x alpha_2(0.5),(0.5),(0.5).safetensors [95509bfa36]
D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py:925: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  out_image = gr.Image(label="Inpainted image", elem_id="ia_out_image", type="pil",
D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py:941: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  cleaner_out_image = gr.Image(label="Cleaned image", elem_id="ia_cleaner_out_image", type="pil",
D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py:1001: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  webui_out_image = gr.Image(label="Inpainted image", elem_id="ia_webui_out_image", type="pil",
D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py:1087: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  cn_out_image = gr.Image(label="Inpainted image", elem_id="ia_cn_out_image", type="pil",
D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py:1126: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  sam_image = gr.Image(label="Segment Anything image", elem_id="ia_sam_image", type="numpy", tool="sketch", brush_radius=8,
D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py:1137: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  sel_mask = gr.Image(label="Selected mask image", elem_id="ia_sel_mask", type="numpy", tool="sketch", brush_radius=12,
D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-inpaint-anything\scripts\inpaint_anything.py:1140: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 1.8s (load scripts: 0.9s, create ui: 0.5s, gradio launch: 0.2s).
Checkpoint (((SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good) x (1 - alpha_0) + (SDXL_2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000) x alpha_0) x (1 - alpha_1) + (SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good) x alpha_1) x (1 - alpha_2) + (SDXL_2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000) x alpha_2(0.5),(0.5),(0.5).safetensors [95509bfa36] not found; loading fallback 2022-10-21T00-13-18_darcy_14_training_images_2200_max_training_steps_darcy_token_person_class_word.ckpt [8b96536fb9]
Loading model 2022-10-21T00-13-18_darcy_14_training_images_2200_max_training_steps_darcy_token_person_class_word.ckpt [8b96536fb9] (2 out of 3)
Loading weights [8b96536fb9] from e:\Stable Diffusion Checkpoints\2022-10-21T00-13-18_darcy_14_training_images_2200_max_training_steps_darcy_token_person_class_word.ckpt
Creating model from config: D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\configs\v1-inference.yaml
Loading VAE weights specified in settings: D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\models\VAE\sdxl_vae.safetensors
Applying attention optimization: sdp... done.
Model loaded in 2.3s (load weights from disk: 1.3s, create model: 0.2s, apply weights to model: 0.6s, load VAE: 0.1s).
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 10 batches.
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  5.18it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  5.25it/s]
 32%|██████████████████████████▌                                                       | 12/37 [00:02<00:04,  5.22it/s]
Total progress:  23%|███████████████                                                  | 86/370 [00:20<01:07,  4.20it/s]
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 10 batches.0:57,  4.97it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:06<00:00,  5.32it/s]
 41%|█████████████████████████████████▏                                                | 15/37 [00:02<00:04,  5.48it/s]
Total progress:  14%|█████████▏                                                       | 52/370 [00:11<01:12,  4.37it/s]
Restoring base VAE4%|█████████▏                                                       | 52/370 [00:11<00:58,  5.40it/s]
Applying attention optimization: sdp... done.
VAE weights loaded.
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 10 batches.
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:06<00:00,  5.32it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:06<00:00,  5.52it/s]
 35%|████████████████████████████▊                                                     | 13/37 [00:02<00:04,  5.49it/s]
Total progress:  24%|███████████████▎                                                 | 87/370 [00:19<01:03,  4.44it/s]
Loading model 2023-05-18- Topnotch 2.5 - (Electronics - Not sure the numbers) - prob not great.ckpt (3 out of 3)29it/s]
Calculating sha256 for e:\Stable Diffusion Checkpoints\2023-05-18- Topnotch 2.5 - (Electronics - Not sure the numbers) - prob not great.ckpt: 297eae4f0dd98507c0fdd3719315bf20633966512c70a50a8c38eead28b87e16
Loading weights [297eae4f0d] from e:\Stable Diffusion Checkpoints\2023-05-18- Topnotch 2.5 - (Electronics - Not sure the numbers) - prob not great.ckpt
Creating model from config: D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\configs\v1-inference.yaml
Applying attention optimization: sdp... done.
Model loaded in 2.7s (calculate hash: 1.2s, load weights from disk: 0.5s, create model: 0.2s, apply weights to model: 0.7s).
Reusing loaded model (((SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good) x (1 - alpha_0) + (SDXL_2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000) x alpha_0) x (1 - alpha_1) + (SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good) x alpha_1) x (1 - alpha_2) + (SDXL_2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000) x alpha_2(0.5),(0.5),(0.5).safetensors [95509bfa36] to load SDXL\2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000.safetensors [3bec9bda52]
Loading weights [3bec9bda52] from e:\Stable Diffusion Checkpoints\SDXL\2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000.safetensors
Applying attention optimization: sdp... done.
Weights loaded in 3.3s (send model to cpu: 0.6s, load weights from disk: 0.5s, apply weights to model: 0.8s, move model to device: 1.4s).
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 10 batches.
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  4.63it/s]
 41%|█████████████████████████████████▏                                                | 15/37 [00:03<00:04,  4.66it/s]
Total progress:  14%|█████████▏                                                       | 52/370 [00:13<01:24,  3.78it/s]
config hash =  57d0eb405b7ae3e9373dd23b257eee7bd00cf1e8c6e39de44937648d0277f145       | 52/370 [00:13<01:09,  4.57it/s]
  - mm_use [True, True, True, True, True]
  - model_a SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors [c4fa751694]
  - base_model None
  - max_models 5
  - models ['SDXL\\2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000.safetensors', 'SDXL\\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors [c4fa751694]', 'SDXL\\2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000.safetensors [3bec9bda52]', 'SDXL\\2023-09-03 - Topnotch Artstyle #29 (Knowlin Box etc) - 20img - TXT ON - B4 - 1e5-step00002800.safetensors [31145a7321]', 'SDXL\\2023-09-05 - Topnotch #31 - 58img (MJ eerie film shots - rulers - mishmash-step00003300.safetensors [efdf0f8b17]']
  - modes ['Sum', 'Sum', 'Sum', 'Sum', 'Sum']
  - usembws [[], [], [], [], []]
  - weights ['0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', '0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5']
  - alpha [0.5, 0.5, 0.5, 0.5, 0.5]
  - adjust
model_a = SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors...
isxl = True
compact_mode =  False
Loading model SDXL_2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-08-31 - Topnotch Artstyle - 16img - TXT off - Batch 4 - 40rep-step00003000.safetensors...
mode = Sum, alpha = 0.5
Stage #1/6: 100%|█████████████████████████████████████████████████████████████████| 2515/2515 [00:06<00:00, 399.78it/s]
Check uninitialized #2/6: 100%|███████████████████████████████████████████████| 2515/2515 [00:00<00:00, 1257591.15it/s]
Loading model SDXL_2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-09 - Supermerge - Topnotch Artstyle - 510 - triple model good.safetensors...
mode = Sum, alpha = 0.5
Stage #3/6: 100%|█████████████████████████████████████████████████████████████████| 2515/2515 [00:06<00:00, 392.03it/s]
Loading model SDXL_2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000...
Loading SDXL\2023-09-05 - Topnotch #35 - 39img (MJ robots gloss gadgets topnotch rooms - bat6- mishmash-step00003000.safetensors [3bec9bda52] from loaded model...
mode = Sum, alpha = 0.5
Stage #4/6: 100%|█████████████████████████████████████████████████████████████████| 2515/2515 [00:04<00:00, 514.60it/s]
Loading model SDXL_2023-09-03 - Topnotch Artstyle #29 (Knowlin Box etc) - 20img - TXT ON - B4 - 1e5-step00002800...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-03 - Topnotch Artstyle #29 (Knowlin Box etc) - 20img - TXT ON - B4 - 1e5-step00002800.safetensors...
mode = Sum, alpha = 0.5
Stage #5/6: 100%|█████████████████████████████████████████████████████████████████| 2515/2515 [00:07<00:00, 354.93it/s]
Loading model SDXL_2023-09-05 - Topnotch #31 - 58img (MJ eerie film shots - rulers - mishmash-step00003300...
Loading from file e:\Stable Diffusion Checkpoints\SDXL\2023-09-05 - Topnotch #31 - 58img (MJ eerie film shots - rulers - mishmash-step00003300.safetensors...
mode = Sum, alpha = 0.5
Stage #6/6: 100%|█████████████████████████████████████████████████████████████████| 2515/2515 [00:06<00:00, 365.19it/s]
Save unchanged weights #6/6: 0it [00:00, ?it/s]
Loading VAE weights specified in settings: D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\models\VAE\sdxl_vae.safetensors
Applying attention optimization: sdp... done.
VAE weights loaded.
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 10 batches.
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  4.69it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
100%|██████████████████████████████████████████████████████████████████████████████████| 37/37 [00:07<00:00,  4.69it/s]
*** Error executing callback before_image_saved_callback for D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py
    Traceback (most recent call last):
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\modules\script_callbacks.py", line 192, in before_image_saved_callback
        c.callback(params)
      File "D:\Stable-Diffusion-Webui-Dev\sdxl\stable-diffusion-webui\extensions\sd-webui-model-mixer\scripts\model_mixer.py", line 1665, in on_image_save
        lines[i] = " Model hash: " + ", Model hash: ".join(modelhashes)
    TypeError: sequence item 1: expected str instance, NoneType found

---
 57%|██████████████████████████████████████████████▌                                   | 21/37 [00:04<00:03,  4.67it/s]
Restoring base VAE6%|████████████████▋                                                | 95/370 [00:23<00:59,  4.64it/s]
Applying attention optimization: sdp... done.
VAE weights loaded.
Total progress:  26%|████████████████▋                                                | 95/370 [00:26<01:17,  3.54it/s]
Total progress:  26%|████████████████▋                                                | 95/370 [00:26<00:59,  4.64it/s]
`
CCpt5 commented 12 months ago

Actually, the images that are generated appear to be from the model selected at the top of the page not the merged file that Model Mixer was supposed to make (or any partial mix including the items selected it its dropdown).

wkpark commented 12 months ago

wow, the merging speed looks very fast!

>>> ",".join(["a",None,"b"])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: sequence item 1: expected str instance, NoneType found

don't know why but it seems the second model (model_b) has an empty shorthash. 2b0ab87855d commit simply ignore empty hash and check some invalid case.

※ added: newly added checkpoints but never loaded/used have an empty shorthash.