aigc-apps / sd-webui-EasyPhoto

📷 EasyPhoto | Your Smart AI Photo Generator.
Apache License 2.0
4.92k stars 387 forks source link

推理报错 #195

Open alonWang opened 11 months ago

alonWang commented 11 months ago

raceback (most recent call last): File "E:\novelai\extensions\sd-webui-EasyPhoto\scripts\easyphoto_infer.py", line 532, in easyphoto_infer_forward first_diffusion_output_image = inpaint(input_image, input_mask, controlnet_pairs, diffusion_steps=first_diffusion_steps, denoising_strength=first_denoising_strength, input_prompt=input_prompts[index], hr_scale=1.0, seed=str(seed), sd_model_checkpoint=sd_model_checkpoint) File "E:\novelai\extensions\sd-webui-EasyPhoto\scripts\easyphoto_infer.py", line 172, in inpaint image = i2i_inpaint_call( File "E:\novelai\extensions\sd-webui-EasyPhoto\scripts\sdwebui.py", line 412, in i2i_inpaint_call p_img2img.script_args = init_default_script_args(p_img2img.scripts) File "E:\novelai\extensions\sd-webui-EasyPhoto\scripts\sdwebui.py", line 169, in init_default_script_args if last_arg_index < script.args_to: TypeError: '<' not supported between instances of 'int' and 'NoneType' 提示:Python 运行时抛出了一个异常。请检查疑难解答页面。 2023-10-21 09:23:24,097 - scripts - Template 1 error: Error info is '<' not supported between instances of 'int' and 'NoneType', skip it.

alonWang commented 11 months ago

debug

def init_default_script_args(script_runner):
    #find max idx from the scripts in runner and generate a none array to init script_args
    last_arg_index = 1
    for script in script_runner.scripts:
        print(f'script: {script}, args_to: {script.args_to}')
        if last_arg_index < script.args_to:
            last_arg_index = script.args_to
    # None everywhere except position 0 to initialize script args
2023-10-21 11:14:57,631 - scripts - Start First diffusion.
script: <img2imgalt.py.Script object at 0x000001B3108FD1B0>, args_to: 159
script: <loopback.py.Script object at 0x000001B3108FD1E0>, args_to: 163
script: <outpainting_mk_2.py.Script object at 0x000001B3108FDAB0>, args_to: 169
script: <poor_mans_outpainting.py.Script object at 0x000001B3108FCD00>, args_to: 173
script: <prompt_matrix.py.Script object at 0x000001B3108FDAE0>, args_to: 178
script: <prompts_from_file.py.Script object at 0x000001B3108FE410>, args_to: 181
script: <refiner.py.ScriptRefiner object at 0x000001B3108FE440>, args_to: None
wuziheng commented 11 months ago

麻烦提供一下您的SDWEBUI版本

alonWang commented 11 months ago

麻烦提供一下您的SDWEBUI版本

版本: v1.6.0  •  python: 3.10.8  •  torch: 2.0.1+cu118  •  xformers: 0.0.21  •  gradio: 3.41.2  •  checkpoint: 84d76a0328

alexwongdl commented 10 months ago

Same here... Have you solved this problem?

wuziheng commented 10 months ago

Same here... Have you solved this problem?

please make sure your env is good, using our DockerImage on README to check? Windows or Linux?

alexwongdl commented 10 months ago

Same here... Have you solved this problem?

please make sure your env is good, using our DockerImage on README to check? Windows or Linux?

I reinstall webui and easyphoto , then it works, thank you for this excellent tool.