diff options
author | Stephen <farrenzo47@gmail.com> | 2022-10-24 12:18:54 -0400 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-26 09:46:17 +0300 |
commit | b46c64c6e5b40d69521e4d50e2d35f6a35468129 (patch) | |
tree | fc251f498ea87abf2d638bc601c4b9b3bda1c649 /modules/api/api.py | |
parent | db9ab1a46b5ad4d36ecce76dfee04b7164249829 (diff) |
clean
Diffstat (limited to 'modules/api/api.py')
-rw-r--r-- | modules/api/api.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index ba890243..6e9d6097 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -42,9 +42,6 @@ class Api: # convert base64 to PIL image return Image.open(io.BytesIO(imgdata)) - def __processed_info_to_json(self, processed): - return json.dumps(processed.info) - def text2imgapi(self, txt2imgreq: StableDiffusionTxt2ImgProcessingAPI): sampler_index = sampler_to_index(txt2imgreq.sampler_index) @@ -116,7 +113,6 @@ class Api: b64images.append(base64.b64encode(buffer.getvalue())) if (not img2imgreq.include_init_images): - # remove img2imgreq.init_images and img2imgreq.mask img2imgreq.init_images = None img2imgreq.mask = None |