Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config file is not a valid JSON file. #24

Open
tjthejuggler opened this issue Jan 13, 2024 · 1 comment
Open

config file is not a valid JSON file. #24

tjthejuggler opened this issue Jan 13, 2024 · 1 comment

Comments

@tjthejuggler
Copy link

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
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants