mix1009 / sdwebuiapi

Python API client for AUTOMATIC1111/stable-diffusion-webui
MIT License
1.35k stars 181 forks source link

Conflict of field \'guidance\' and \'guidance_end\',运行api时出现以上错误,不知道什么原因 #166

Open buptmanong opened 3 months ago

buptmanong commented 3 months ago

Traceback (most recent call last): File "/root/text2image/stable-diffusion-webui/batchgeneratepics.py", line 101, in image=callwebui_image2image_api(host,port,prompt,negaprompt,image_path,model) File "/root/text2image/stable-diffusion-webui/batchgeneratepics.py", line 71, in callwebui_image2image_api response = api.img2img( File "/home/nlper/anaconda3/envs/sd-webui/lib/python3.10/site-packages/webuiapi/webuiapi.py", line 828, in img2img return self.post_and_get_api_result( File "/home/nlper/anaconda3/envs/sd-webui/lib/python3.10/site-packages/webuiapi/webuiapi.py", line 666, in post_and_get_api_result return self._to_api_result(response) File "/home/nlper/anaconda3/envs/sd-webui/lib/python3.10/site-packages/webuiapi/webuiapi.py", line 456, in _to_api_result raise RuntimeError(response.status_code, response.text) RuntimeError: (500, '{"error":"AssertionError","detail":"","body":"","errors":"Conflict of field \'guidance\' and \'guidance_end\'"}')