hako-mikan / sd-webui-supermerger

model merge extention for stable diffusion web ui
GNU Affero General Public License v3.0
753 stars 112 forks source link

Error when trying to merge and gen #262

Closed Yoinky3000 closed 1 year ago

Yoinky3000 commented 1 year ago

when i try to use merge and gen, i get this error:

Traceback (most recent call last): File "C:\AI\Vlad-SD\venv\lib\site-packages\gradio\queueing.py", line 388, in call_prediction output = await route_utils.call_process_api( File "C:\AI\Vlad-SD\venv\lib\site-packages\gradio\route_utils.py", line 219, in call_process_api output = await app.get_blocks().process_api( File "C:\AI\Vlad-SD\venv\lib\site-packages\gradio\blocks.py", line 1437, in process_api result = await self.call_function( File "C:\AI\Vlad-SD\venv\lib\site-packages\gradio\blocks.py", line 1109, in call_function prediction = await anyio.to_thread.run_sync( File "C:\AI\Vlad-SD\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\AI\Vlad-SD\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "C:\AI\Vlad-SD\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "C:\AI\Vlad-SD\venv\lib\site-packages\gradio\utils.py", line 641, in wrapper response = f(args, **kwargs) File "C:\AI\Vlad-SD\extensions\sd-webui-supermerger\scripts\mergers\mergers.py", line 103, in smergegen images = simggen(s_prompt,s_nprompt,s_steps,s_sampler,s_cfg,s_seed,s_w,s_h,s_batch_size, File "C:\AI\Vlad-SD\extensions\sd-webui-supermerger\scripts\mergers\mergers.py", line 964, in simggen hr_sampler_name = "Use same sampler" if hr_sampler_index == 0 else sd_samplers.samplers[hr_sampler_index+1].name TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'

it seems like it was trying to read an option named "Hires sampling method", which was not exist