当前位置:AIGC资讯 > AIGC > 正文

stable diffusion ——img2img Api参数数据格式参考,插件包含ControlNet和roop换脸

{
    "init_images": [
        ""
    ],
    "resize_mode": 0,
    "denoising_strength": 1.0,
    "image_cfg_scale": 1.5,
    "mask": "",
    "mask_blur": 4,
    "inpainting_fill": 2,
    "inpaint_full_res": true,
    "inpaint_full_res_padding": 32,
    "inpainting_mask_invert": 1,
    "initial_noise_multiplier": 0,
    "prompt": "a beautiful girl wiith asian face,wear glasses, downtown, brightness",
    "seed": -1,
    "subseed": -1,
    "subseed_strength": 0,
    "seed_resize_from_h": -1,
    "seed_resize_from_w": -1,
    "batch_size": 1,
    "n_iter": 1,
    "steps": 20,
    "cfg_scale": 7,
    "width": 512,
    "height": 512,
    "restore_faces": false,
    "tiling": false,
    "do_not_save_samples": false,
    "do_not_save_grid": false,
    "negative_prompt": "BadDream, UnrealisticDream",
    "eta": 1.0,
    "s_min_uncond": 0,
    "s_churn": 0,
    "s_tmax": 0,
    "s_tmin": 0,
    "s_noise": 1,
    "override_settings": {
        "sd_model_checkpoint": "epicrealism_pureEvolutionV3-inpainting.safetensors [e173983571]"
    },
    "override_settings_restore_afterwards": true,
    "sampler_index": "DPM++ SDE Karras",
    "include_init_images": false,
    "send_images": true,
    "save_images": false,
    "alwayson_scripts": {
        "ControlNet": {
            "args": [
                {
                    "enabled": true,
                    "module": "openpose_full",
                    "model": "control_v11p_sd15_openpose [cab727d4]",
                    "weight": 1,
                    "image": "",
                    "mask": "",
                    "invert_image": false,
                    "resize_mode": 1,
                    "rgbbgr_mode": false,
                    "lowvram": false,
                    "processor_res": 512,
                    "threshold_a": 64,
                    "threshold_b": 64,
                    "guidance_start": 0,
                    "guidance_end": 1,
                    "guessmode": 0
                }
            ]
        },
        "roop": {
            "args": [
                "",
                true,
                0,
                "/usr/stable-diffusion-webui/models/roop/inswapper_128.onnx",
                "CodeFormer",
                1,
                null,
                1,
                null,
                false,
                true
            ]
        }
    }
}

更新时间 2023-11-16