taabata / LCM_Inpaint_Outpaint_Comfy

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

Error #3

Open youcanyoubing opened 8 months ago

youcanyoubing commented 8 months ago

Error occurred when executing LCMLoader_img2img:

Error no file named config.json found in directory C:\ComfyUI_windows_portable\ComfyUI\models\diffusers/LCM_Dreamshaper_v7.

taabata commented 8 months ago

Error occurred when executing LCMLoader_img2img:

Error no file named config.json found in directory C:\ComfyUI_windows_portable\ComfyUI\models\diffusers/LCM_Dreamshaper_v7.

Code updated...update your files and should work well now (reinstall updated LCM_Nodes.py)

youcanyoubing commented 8 months ago

Error occurred when executing LCMLoader_img2img: Error no file named config.json found in directory C:\ComfyUI_windows_portable\ComfyUI\models\diffusers/LCM_Dreamshaper_v7.

Code updated...update your files and should work well now (reinstall updated LCM_Nodes.py)

The error is still there, I just don't know how and where the config.json file came from,

kijai commented 8 months ago

Had exact same issue, updating transformers fixed this for me.

txirrindulari commented 8 months ago

I get also the same error. My models are located in another drive thought folder_paths.py in linux

txirrindulari commented 8 months ago

I get also the same error. My models are located in another drive thought folder_paths.py in linux

And if I move all the files downloaded from Huggingface to ComfyUI/models/diffusers/LCM_Dreamshaper_v7 does not appear to have a file named preprocessor_config.json

youcanyoubing commented 8 months ago

I get also the same error. My models are located in another drive thought folder_paths.py in linux

And if I move all the files downloaded from Huggingface to ComfyUI/models/diffusers/LCM_Dreamshaper_v7 does not appear to have a file named preprocessor_config.json

Maybe you can try this, I don't have a computer right now and can't test https://download.openxlab.org.cn/models/Latent-Consistency-Model/LCM_Dreamshaper_v7_4k.safetensors/weight/unet.zip

taabata commented 8 months ago

Rename 'model_index.json' to 'preprocessor_config.json'. If it didnt work, I have added a model_path parameter for the loader nodes..try copying and pasting the full path to your model. Sometimes it didnt work for me if i didnt put the full path.

youcanyoubing commented 8 months ago

Rename 'model_index.json' to 'preprocessor_config.json'. If it didnt work, I have added a model_path parameter for the loader nodes..try copying and pasting the full path to your model. Sometimes it didnt work for me if i didnt put the full path.

When I put the file from the previous link in C:\ComfyUI_windows_portable\ComfyUI\models\diffusers\LCM_Dreamshaper_v7, the error disappeared, but there were other errors 31-10-2023_142829_127 0 0 1

shaune0000 commented 8 months ago

same here..

Rename 'model_index.json' to 'preprocessor_config.json'. If it didnt work, I have added a model_path parameter for the loader nodes..try copying and pasting the full path to your model. Sometimes it didnt work for me if i didnt put the full path.

When I put the file from the previous link in C:\ComfyUI_windows_portable\ComfyUI\models\diffusers\LCM_Dreamshaper_v7, the error disappeared, but there were other errors 31-10-2023_142829_127 0 0 1

same here.

vootox commented 8 months ago

I got the same error by following the same procedure above. However, mine is 2 weeks later with an update of the LCMLoader node now including a text box to put the model_path there. I'm still getting the error regardless. (Windows Portable ComfyUI)

drago87 commented 7 months ago

I have downloaded the file from above and put it in ComfyUI\models\diffusers\LCM_Dreamshaper_v7 i have also downloaded

feature_extractor
text_encoder
tokenizer
vae

from and put them in the same folder. i still get the Error no file named config.json found in directory D:\AI\ComfyUI_windows_portable\ComfyUI\models\diffusers/LCM_Dreamshaper_v7 (Using the "LCMLoader" node) where can i get the config.json file from?