Klace / stable-diffusion-webui-instruct-pix2pix

Extension for webui to run instruct-pix2pix
Other
319 stars 20 forks source link

Exception when saving image in Automatic1111 #40

Open samueljacobjackson opened 1 year ago

samueljacobjackson commented 1 year ago

When using the save button in Automayic1111 the image is not saved and I receive the following exception.

Processing 1 image(s)
100% 10/10 [00:05<00:00,  1.90it/s]
Error completing request
Arguments: ('', [{'name': '/tmp/tmprfshxp_z.png', 'data': 'file=/tmp/tmprfshxp_z.png', 'is_file': True}], False, 0) {}
Traceback (most recent call last):
  File "/content/drive/MyDrive/AI/automatic1111/stable-diffusion-webui/modules/call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "/content/drive/MyDrive/AI/automatic1111/stable-diffusion-webui/modules/ui_common.py", line 46, in save_files
    data = json.loads(js_data)
  File "/usr/local/envs/automatic/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/envs/automatic/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/envs/automatic/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Klace commented 1 year ago

Confirmed issue, will address