RunpodR
Runpod2y ago
2 replies
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': ''
    # },


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': ''
    },


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?
Was this page helpful?