txt2img2img icon indicating copy to clipboard operation
txt2img2img copied to clipboard

incompatibilities with latest automatic1111 webui repo

Open jmp909 opened this issue 1 year ago • 2 comments

quite a few changes to the latest a1111

been working throught it from here...

File "D:\py\automatic1111\stable-diffusion-webui\scripts\txt2img2img.py", line 234, in run
p.sampler_index = samplers_dict.get(getattr(img_opts,"sampler_name","euler a").lower(), p.sampler_index)
  • sampler_index was removed from the p object so you need to get it from p.sampler_name
  • input parameters to img2img have changed (see below).. i'm going to raise a ticket for them to just pass a single arg object to make it easier for third parties to keep in sync rather than have to reorder your args etc
  • seed_enable_extras is no longer passed through the entire path, so you can't get it from p currently

I'll see what else I can spot and update notes

def img2img(
    mode: int,
    prompt: str, 
    negative_prompt: str, 
    prompt_style: str, 
    prompt_style2: str, 
    init_img, 
    init_img_with_mask, 
    init_img_with_mask_orig, 
    init_img_inpaint, 
    init_mask_inpaint, 
    mask_mode, 
    steps: int, 
    sampler_index: int, 
    mask_blur: int, 
    mask_alpha: float, 
    inpainting_fill: int, 
    restore_faces: bool, 
    tiling: bool, 
    n_iter: int, 
    batch_size: int, 
    cfg_scale: float, 
    denoising_strength: float, 
    seed: int, 
    subseed: int, 
    subseed_strength: float, 
    seed_resize_from_h: int, 
    seed_resize_from_w: int, 
    seed_enable_extras: bool, 
    height: int, 
    width: int, 
    resize_mode: int, 
    inpaint_full_res: bool, 
    inpaint_full_res_padding: int, 
    inpainting_mask_invert: int, 
    img2img_batch_input_dir: str, 
    img2img_batch_output_dir: str, 
    *args):

jmp909 avatar Dec 05 '22 05:12 jmp909