当前位置:   article > 正文

stable diffusion 局部重绘 reference-only api 接口调试_stable diffusion api 文档

stable diffusion api 文档

 webUI api payload 插件生成的接口参数不准确,reference-only 的image不是对象,就是不同字符串字段,直接传,不是套image。

综上,那个插件参数不确定,应直接看插件的源码,看它接受什么参数

错误:"image":
    {
        "image": None,
        "mask": None
    },

正确 "image":xxxxxx

看 stable diffusion 控制台输出,说用上了reference-only

如果 image 传岔劈了,控制台不会提示用了这个插件

请求参数-局部重绘

  1. {
  2. "prompt": "",
  3. "negative_prompt": "",
  4. "batch_size": 1,
  5. "n_iter": 2, # "n_iter": 1,
  6. "seed": "-1",
  7. "steps": 30,
  8. "cfg_scale": 7,
  9. "sampler_name": "DPM++ 2M Karras",
  10. "width": 768,
  11. "height": 1152, # fact_num
  12. "init_images": [],
  13. # 控制图像变化的程度,如果=0,没有任何变化,如果=1,则新图像不会跟随输入图像,0.75是个很好的起点
  14. "denoising_strength": 0.9,
  15. "resize_mode": 0, # "resize_mode": 2,
  16. "mask": None,
  17. "inpainting_fill": 1, # mask content
  18. "inpaint_full_res": 0, # inpaint area
  19. "inpaint_full_res_padding": 32,
  20. "alwayson_scripts": {
  21. "ControlNet": {
  22. "args": [
  23. {
  24. "advanced_weighting": None,
  25. "batch_images": "",
  26. "control_mode": "ControlNet is more important",
  27. "enabled": True,
  28. "guidance_end": 1,
  29. "guidance_start": 0,
  30. "hr_option": "Both",
  31. "image": None,
  32. #"image":
  33. #{
  34. #"image": None,
  35. #"mask": None
  36. #},
  37. "inpaint_crop_input_image": True,
  38. "input_mode": "simple",
  39. "is_ui": True,
  40. "loopback": False,
  41. "low_vram": False,
  42. "model": "None",
  43. "module": "reference_only",
  44. "output_dir": "",
  45. "pixel_perfect": True,
  46. "processor_res": -1,
  47. "resize_mode": "Crop and Resize",
  48. "save_detected_map": True,
  49. "threshold_a": 1,
  50. "threshold_b": -1,
  51. "weight": 2
  52. },
  53. {
  54. "advanced_weighting": None,
  55. "batch_images": "",
  56. "control_mode": "Balanced",
  57. "enabled": True,
  58. "guidance_end": 1,
  59. "guidance_start": 0,
  60. "hr_option": "Both",
  61. "image":
  62. {
  63. "image": None,
  64. "mask": None
  65. },
  66. "inpaint_crop_input_image": True,
  67. "input_mode": "simple",
  68. "is_ui": True,
  69. "loopback": False,
  70. "low_vram": False,
  71. "model": "control_v11p_sd15_openpose [cab727d4]",
  72. "module": "openpose_full",
  73. "output_dir": "",
  74. "pixel_perfect": True,
  75. "processor_res": 512,
  76. "resize_mode": "Crop and Resize",
  77. "save_detected_map": True,
  78. "threshold_a": -1,
  79. "threshold_b": -1,
  80. "weight": 1
  81. }
  82. ]
  83. }
  84. }
  85. }

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/酷酷是懒虫/article/detail/1008295
推荐阅读
相关标签
  

闽ICP备14008679号