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
            ]
        }
    }
}

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
乘风的头像乘风管理团队
上一篇 2023年12月5日
下一篇 2023年12月5日

相关推荐