R
RunPod10mo ago
Genie

ashleykleynhans/runpod-worker-a1111 img2img not working with a mask?

i'm using a modified version of ashleykleynhans/runpod-worker-a1111. the original version has the mask field commented out in the img2img schema file
# Setting this as an empty string by default causes the API call to fail
# 'mask': {
# 'type': str,
# 'required': False,
# 'default': ''
# },
# Setting this as an empty string by default causes the API call to fail
# 'mask': {
# 'type': str,
# 'required': False,
# 'default': ''
# },
i modified it so the field is uncommented, but i added changed required to True
# Setting this as an empty string by default causes the API call to fail
'mask': {
'type': str,
'required': True,
'default': ''
},
# Setting this as an empty string by default causes the API call to fail
'mask': {
'type': str,
'required': True,
'default': ''
},
this is shown in the endpoint logging: Response: {'error': 'AttributeError', 'detail': '', 'body': '', 'errors': "'str' object has no attribute 'convert'"} HTTP Status code: 500 (the runpod api returns status 520) i am sure the request body (init_images, mask, etc) is valid, i have tested passing directly to the auto1111 api when hosted on my local machine and it works with no issues. found similar issues online, with no solution https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9779 anybody know how to solve this?
2 Replies
justin
justin10mo ago
GitHub
[Bug]: API Error: /sdapi/v1/img2img returns error as 'str' object ...
Is there an existing issue for this? I have searched the existing issues and checked the recent builds/commits What happened? I followed the steps to run img2img through swagger AP, but face this i...
justin
justin10mo ago
and this is closer to the stable diffusion problem
Want results from more Discord servers?
Add your server