当前位置:   article > 正文

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

img2img api

在这里插入图片描述

{
    "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
            ]
        }
    }
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/815151
推荐阅读
相关标签
  

闽ICP备14008679号