taabata / LCM_Inpaint_Outpaint_Comfy

ComfyUI custom nodes for inpainting/outpainting using the new latent consistency model (LCM)
251 stars 19 forks source link

config file is not a valid JSON file. #24

Open tjthejuggler opened 10 months ago

tjthejuggler commented 10 months ago

I followed the installation instructions on Ubuntu 22 and tried to run the outpainting example, and instead of finding out what is above the Mona Lisa i just get this:

Error occurred when executing LCMLoader:

It looks like the config file at '/home/koalavspanda/projects/ComfyUI/models/diffusers/LCM_Dreamshaper_v7/LCM_Dreamshaper_v7_4k.safetensors' is not a valid JSON file.

  File "/home/koalavspanda/projects/ComfyUI/execution.py", line 153, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
  File "/home/koalavspanda/projects/ComfyUI/execution.py", line 83, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
  File "/home/koalavspanda/projects/ComfyUI/execution.py", line 76, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
  File "/home/koalavspanda/projects/ComfyUI/custom_nodes/LCM_Inpaint-Outpaint_Comfy/LCM_Nodes.py", line 444, in mainfunc
    vae = AutoencoderKL.from_pretrained(model_id, subfolder="vae")
  File "/home/koalavspanda/.local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/koalavspanda/.local/lib/python3.10/site-packages/diffusers/models/modeling_utils.py", line 712, in from_pretrained
    config, unused_kwargs, commit_hash = cls.load_config(
  File "/home/koalavspanda/.local/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/koalavspanda/.local/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 432, in load_config
    raise EnvironmentError(f"It looks like the config file at '{config_file}' is not a valid JSON file.")
Queue size: 0
Extra options

I found a few things that were recommended to try, like moving preprocessor_config.json over to the model, and renaming the index json there to be config.json, but nothing is working. Anyone have any ideas?

tina1998612 commented 9 months ago

same issue