当前位置: 首页 > news >正文

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

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

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

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

正确 "image":xxxxxx

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

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

请求参数-局部重绘

{"prompt": "","negative_prompt": "","batch_size": 1,"n_iter": 2,  # "n_iter": 1,"seed": "-1","steps": 30,"cfg_scale": 7,"sampler_name": "DPM++ 2M Karras","width": 768,"height": 1152,  # fact_num"init_images": [],# 控制图像变化的程度,如果=0,没有任何变化,如果=1,则新图像不会跟随输入图像,0.75是个很好的起点"denoising_strength": 0.9,"resize_mode": 0,  # "resize_mode": 2,"mask": None,"inpainting_fill": 1,  # mask content"inpaint_full_res": 0,  # inpaint area"inpaint_full_res_padding": 32,"alwayson_scripts": {"ControlNet": {"args": [{"advanced_weighting": None,"batch_images": "","control_mode": "ControlNet is more important","enabled": True,"guidance_end": 1,"guidance_start": 0,"hr_option": "Both","image": None,#"image": #{#"image": None,#"mask": None#},"inpaint_crop_input_image": True,"input_mode": "simple","is_ui": True,"loopback": False,"low_vram": False,"model": "None","module": "reference_only","output_dir": "","pixel_perfect": True,"processor_res": -1,"resize_mode": "Crop and Resize","save_detected_map": True,"threshold_a": 1,"threshold_b": -1,"weight": 2},{"advanced_weighting": None,"batch_images": "","control_mode": "Balanced","enabled": True,"guidance_end": 1,"guidance_start": 0,"hr_option": "Both","image":{"image": None,"mask": None},"inpaint_crop_input_image": True,"input_mode": "simple","is_ui": True,"loopback": False,"low_vram": False,"model": "control_v11p_sd15_openpose [cab727d4]","module": "openpose_full","output_dir": "","pixel_perfect": True,"processor_res": 512,"resize_mode": "Crop and Resize","save_detected_map": True,"threshold_a": -1,"threshold_b": -1,"weight": 1}]}}
}

http://www.lryc.cn/news/376920.html

相关文章:

  • 浪潮信息内存故障预警技术再升级 服务器稳定性再获提升
  • JWT整合Gateway实现鉴权(RSA与公私密钥工具类)
  • vue实现全屏screenfull-封装组件
  • 【LinkedList与链表】
  • 为数据安全护航,袋鼠云在数据分类分级上的探索实践
  • Spring 循环依赖详解
  • 项目经理真的不能太“拧巴”
  • 企业如何选择合适的CRM工具?除Salesforce之外的10大主流选择
  • 每年1-1.2万人毕业,男女比例约3:1,测绘工程的就业率如何
  • JimuReport 积木报表 v1.7.6 版本发布,免费的低代码报表
  • “灵活就业者“超两亿人 游戏开发者如何破局?
  • MySQL事务与存储引擎
  • 总是给数据库表字段设置默认值的好处
  • 11.2 Go 常用包介绍
  • Sqlite3数据库基本使用
  • 实现贪吃蛇小游戏【简单版】
  • uniapp实现内嵌其他网页的功能
  • 【Ruby简单脚本01】查看wifi密码
  • VSG/VSA 矢量信号模拟/分析软件
  • C++使用GDAL库完成tiff图像的合并
  • 深入理解AQS:Java并发编程中的核心组件
  • 集合进阶:List集合
  • el-table表头修改文字或者背景颜色,通过header-row-style设置样式
  • web前端-CSS
  • u8g2 使用IIC驱动uc1617 lcd 字符显示只显示上半部分,不显示下半部
  • 单片机第五季-第八课:STM32CubeMx和FreeRTOS
  • 【Linux】进程控制1——进程创建和进程终止
  • 计算机图形学入门16:曲线
  • 【Ruby基础01】windows和termux中搭建Ruby开发环境
  • 2406c++,iguana动态反射