DeforumStableDiffusionLocal icon indicating copy to clipboard operation
DeforumStableDiffusionLocal copied to clipboard

Decoder json

Open RiseUnchained opened this issue 3 years ago • 3 comments

Hello everyone, I have an issue with animated mode (Image mode works perfectly). I test sample examples and get this error:

Local Path Variables: models_path: ./models output_path: ./output Traceback (most recent call last): File "run.py", line 1312, in main() File "run.py", line 125, in main master_args = load_args(opt.settings) File "run.py", line 122, in load_args loaded_args = json.load(f)#, ensure_ascii=False, indent=4) File "C:\Conda\envs\dsd\lib\json_init_.py", line 293, in load return loads(fp.read(), File "C:\Conda\envs\dsd\lib\json_init_.py", line 357, in loads return _default_decoder.decode(s) File "C:\Conda\envs\dsd\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Conda\envs\dsd\lib\json\decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 22 column 2 (char 473)

Maybe I need to install something more? Thanks in advance.

RiseUnchained avatar Sep 14 '22 11:09 RiseUnchained

It seems probably caused by a typo in settings txt file, can you upload the settings file you used?

HelixNGC7293 avatar Sep 14 '22 12:09 HelixNGC7293

True, I changed the prompt (was really long) and worked. Thank you.

Edit: Was a typo: animation_prompts --> "animation_prompts". When I copied it from my colab I didn't see that the quotes were missing

RiseUnchained avatar Sep 14 '22 12:09 RiseUnchained

For future viewers, this issue can also appear if you have a comma after the last prompt. The last prompt must not have a comma at the end.

StrikeNP avatar Sep 15 '22 01:09 StrikeNP