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

ipadapter model load node will not find models #123

Closed
klinter007 opened this issue Dec 9, 2023 · 46 comments
Closed

ipadapter model load node will not find models #123

klinter007 opened this issue Dec 9, 2023 · 46 comments

Comments

@klinter007
Copy link

image

model files are in model folder for sure. i've checked so many times.
tried re-installing no help

@cubiq
Copy link
Owner

cubiq commented Dec 9, 2023

the priority is as follow:

  • anything declared in the extra_model_paths.yaml under the param name "ipadapter"
  • comfyui/models/ipadapter/
  • comfyui/custom_nodes/comfyui_ipadapter_plus/models

if you created a models/ipadapter folder you have to place the models there, if the directory is not present then the models should be in the local extension directory. if you specified a location in the extra_model_paths.yaml file, then that will be used

@vilanele
Copy link

Same error here, no matter in which of the three folders of previous post by cubiq I put my models, they don"t show in the "Load IPAdapter Model" node. Shutting down, re-installing ... no help. ;)

@vilanele
Copy link

Rectification, it works in the third case only, when I put my models in comfyui/custom_nodes/comfyui_ip_adapter_plus/models. It does not work with the location in extra_model_paths.yaml neither with the default comfyui/models/ipadapter. Thanks

@cubiq
Copy link
Owner

cubiq commented Dec 10, 2023

maybe you have an old version of the extension?

@cedarconnor
Copy link

Same error here. I did a full update of Comfy. I also reinstalled IPAdaptor. Older, previously working workflows no longer see the models folder.

@cubiq
Copy link
Owner

cubiq commented Dec 13, 2023

check if you have a comfyui/models/ipadapter/ directory

@AnthonyLeGourrierec
Copy link

Same here, tried comfyui/models/ipadapter/ directory, the legacy one and the extra_model_paths.yaml and nothing worked even after reinstalling unfortunately.

@AnthonyLeGourrierec
Copy link

I might have figured out something, in my case it might have something to do with OneDrive. I change the yaml file path to be at the root of my C: drive and now it is able to find my models. I hope it will help some of you!

@cubiq
Copy link
Owner

cubiq commented Dec 16, 2023

guys, you are asking for troubles in using onedrive

@AnthonyLeGourrierec
Copy link

Yeah it's the worst but I didn't realize it came automatically with windows 11 at the beginning, so now my document tab is kinda cursed I guess.

@ZDOSt
Copy link

ZDOSt commented Dec 18, 2023

Have been having this issue since the most recent update. IPAdapter can't see the models no matter what folder they're in. Specifying location in the extra_model_paths.yaml is ignored
Installing models directly from ComfyUI places them in comfyui/models/ipadapter
But IPAdapter still can't see the models.
Re-installing the extension didn't work either.

@cubiq
Copy link
Owner

cubiq commented Dec 18, 2023

can you try the version I've uploaded yesterday?

@ZDOSt
Copy link

ZDOSt commented Dec 18, 2023

The issue started after I updated this morning. Everything was working great before then.
I am considering a full ComfyUI re-install as a last resort, but I don't see how that would make a difference.

@ZDOSt
Copy link

ZDOSt commented Dec 18, 2023

Going to try a few things, culminating with a full ComfyUI reinstall. It would seem that my issue is isolated, so maybe there is something in my installation that's messing with the new update. Will report back!

@konradre
Copy link

Had the same issue, but resolved by putting models in the comfyui/custom_nodes/comfyui_ip_adapter_plus/models folder.

@cubiq
Copy link
Owner

cubiq commented Dec 28, 2023

closing for lack of updates, feel free to reopen if you still have issues

@cubiq cubiq closed this as completed Dec 28, 2023
@devZu9
Copy link

devZu9 commented Jan 8, 2024

The problem is not solved. Reinstalled ComfyUI and ComfyUI IP Adapter plus.
I placed the models in these folders:
\ComfyUI\models\ipadapter
\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\models
Still "Load IP Adapter Model" does not see the files.

2024-01-08

p.s. windows 10

@jameslanman
Copy link

jameslanman commented Feb 5, 2024

PSA: I couldn't get this to work forever and then I realized I misspelled ipadapter in my extra_model_paths.yaml file as "ipadaptor" facepalm. If you are reusing files from Automatic1111, just add the path in your extra_model_paths.yaml file under

checkpoints: models/Stable-diffusion
configs: models/Stable-diffusion

and make sure to write this verbatim and add it under the above:

ipadapter: models/ipadapter
clip_vision: models/clip_vision/

If there isn't already a folder under models with either of those names, create one named ipadapter and clip_vision respectively. Follow the instructions in Github and download the Clip vision models as well. Admittedly, the clip vision instructions are a bit unclear as it says to download "You need the CLIP-ViT-H-14-laion2B-s32B-b79K and CLIP-ViT-bigG-14-laion2B-39B-b160k image encoders" but then goes on to suggest the specific safetensor files for the specific model. Would love this to be cleared up for confusion! Great plugin, thanks!

For further clarification - from what I understand Vit-H is all you need for both SDXL and SD15 models.

@Upasunda
Copy link

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added:
folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

@Sundance2318
Copy link

It still behaves unpredictable. I installed the IP Adapter node today, at firtst I put the models to comfyUI/models/IPAdapter/ and it didn't work so I moved them to custom_nodes/IPAdapter/models/ and it started working. Then I enlarged disk volume (I'm using RunPod) and all of sudden it stoped working and surprisingly moving models to the comfyUI/models/IPAdapter/ folder helped this time. So one installation, everything updated to latest version and one time it needs to be in general models folder second time in custom nodes folder.

@cubiq
Copy link
Owner

cubiq commented Feb 16, 2024

it's "ipadapter" all lowercase

@Sundance2318
Copy link

Sorry, my bad in spelling. But it doesn't change anything about the described problem about the node takes the model once from one folder and next time from another folder..

@cubiq
Copy link
Owner

cubiq commented Feb 16, 2024

the ipadapter folder inside ComfyUI/models/ needs to be deleted if you want to use the models inside the IPAdapter extension folder.

the upper/lower case is important in linux, so check that too.

@vivekvp1
Copy link

Hello,
I do not have a ipadapters folder in ComfyUI_windows_portable\ComfyUI\models but do have ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\models (but there are no models in there) but still get the error. Is the set up correct, I am just lacking an model to use? Thanks,

@Turboeskimo
Copy link

Load IPAdapter Model could not find the models when they were in Custom Nodes area. I just created new folder: ComfyUI->Models->ipadapter and placed the models in it - now they can be seen in the Load IPAdapter Model node, but now the Load IPAdapter node can't see them) Not sure why these nodes look for the models in different folders, but I guess I'll have to duplicate everything. Anyways the solution is the ipadapter folder in models folder of ComfyUI.

@nashprat
Copy link

nashprat commented Mar 4, 2024

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added: folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

thanks this worked

@Juarrow
Copy link

Juarrow commented Mar 11, 2024

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added: folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

Only thing that worked for me, too.

@ardiologyAI
Copy link

[FIXED] your base path should be like this:
Capture

@1manfactory
Copy link

Just for reference.

I had to create folder comfyui/models/ipadapter/ and place the model there.

Now at least this step works again.

Windows 11

@reglee911
Copy link

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added: folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

it's working, thanks

@giusparsifal
Copy link

giusparsifal commented May 14, 2024

Hello, I've tried all solutions written here, for some of you worked, but I still not able to work it out. I've tried also yo unistall and install again but nothing seems to work.
I had a similar problem (with no result) with another workflow, can't find, in that case, ip-adapter.bin, even if I have the files.
Don't know what else to do...
Thanks a lot everybody for suggestion though!

@arfans22
Copy link

arfans22 commented Jun 3, 2024

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added: folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

only this worked for me! big thanks sir!

@aswordok
Copy link

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added: folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

Thank you. That's the right solution

@jeffwheeless
Copy link

jeffwheeless commented Jun 14, 2024

if anyone is still struggling with this change this class IPAdapterModelLoader inside of IPAdapaterPlus.py and it will give you debugging of where to put the models. My problem was the models folder needed to be named IpAdapter instead of ipadapter.

class SetEncoder(json.JSONEncoder):
    def default(self, obj):
        if isinstance(obj, set):
            return list(obj)
        return json.JSONEncoder.default(self, obj)
    
class IPAdapterModelLoader:
    @classmethod
    def INPUT_TYPES(s):
        # debug_list = json.dumps(folder_paths.folder_names_and_paths["ipadapter"])
        debug_list = json.dumps(folder_paths.folder_names_and_paths["ipadapter"], cls=SetEncoder)
        print(f"\033[33mINFO: ipadapter " + str(debug_list) + "\033[0m") #  loaded from 
        return {"required": { "ipadapter_file": (folder_paths.get_filename_list("ipadapter"), )}}
        
    RETURN_TYPES = ("IPADAPTER",)
    FUNCTION = "load_ipadapter_model"
    CATEGORY = "ipadapter/loaders"

    def load_ipadapter_model(self, ipadapter_file):
        ipadapter_file = folder_paths.get_full_path("ipadapter", ipadapter_file)
        return (ipadapter_model_loader(ipadapter_file),)

@Troyificus
Copy link

Troyificus commented Jun 16, 2024

EDIT OK I fixed my problem doing the following:

Opened up ComfyUI Manager

Clicked 'Install Models'

Searched for 'ipadapter' and installed 'ip-adapter-plus_sd15.safetensors' (I had already installed all the others on the list)

image

And it's now working!


I've tried every single solution above, and I'm still getting the same error:


Error occurred when executing IPAdapterUnifiedLoader:

IPAdapter model not found.

  File "C:\Users\Trism\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Trism\ComfyUI\execution.py", line 81, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Trism\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Trism\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus-main\IPAdapterPlus.py", line 515, in load_models
    raise Exception("IPAdapter model not found.")

@RoaringAPE
Copy link

same

@Troyificus
Copy link

Found a solution, I've updated my post.

@Jp-west
Copy link

Jp-west commented Jun 21, 2024

I attempted to resolve this issue by implementing all the suggested workarounds; however, they were unsuccessful. Subsequently, I installed all the SDXL and SD1.5 iPadapters models from the ComfyUI manager, including Loras, and this solution proved to be effective.
IpAdapter

@Vektor369
Copy link

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added: folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

You have GOT to be £µ¢א¡π9 joking me. One line?!? One line!?! This error came up last year. How can this still be a thing!?! I spent all day on this!

Well, thank you very much, sir. You are my hero.

(One line...)

@Gocry
Copy link

Gocry commented Jul 9, 2024

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added: folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

thanks bro, I've been suffering from it for days

@37OMKAR
Copy link

37OMKAR commented Jul 20, 2024

sing xformers attention in VAE
Using xformers attention in VAE
INFO: Clip Vision model loaded from F:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\models\clip_vision\CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors
!!! Exception during processing!!! IPAdapter model not found.
Traceback (most recent call last):
File "F:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "F:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "F:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "F:\StabilityMatrix-win-x64\Data\Packages\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus\IPAdapterPlus.py", line 535, in load_models
raise Exception("IPAdapter model not found.")
Exception: IPAdapter model not found.

i done every thing but its asking for a .py file and in models there is only saftensor and bin help

@Rubio-Ai
Copy link

I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added: folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)
and that seems to have solved the issue.

Thank you. That's the right solution

But where do I add the `folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")] ??? Please

@NiceWonBruva
Copy link

Below is the answer posted by upasunda on feb11th.
For me it went like this...
C:\Users\Mike\AppData\Roaming\StabilityMatrix\Packages\ComfyUI
In there was a file (Yes in that list there) called folder_paths.py
Open that WITH NOTEBOOK
Then add the line he mentioned " folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions) "
Click save
Then reload comfyui
It will now work.
Been on this issue for almost an hour so yeah thought I'd help any who were still confused.
Happy headaches <3

Upasunda commented on Feb 11
I ran into this issue as well, seems for some reason the ipadapter path had not been added to folder_paths.py in the ComfyUI root directory. I added:
folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

and that seems to have solved the issue.

@monica-dulgheru
Copy link

monica-dulgheru commented Aug 29, 2024

I installed ComfyUI manually and ComfyUI_IPAdapter_plus as at 2024-08-29.

After much time unsuccessfully trying to get ComfyUI to output a more informative error message (where is it searching for the ipadapter models?) by changing change main.py and execution.py and IPAdapaterPlus.py I gave up and just traced the methods myself.

I quickly found just like @Upasunda that the ipadapter path is still not in the folder_paths.py in the ComfyUI root directory.

So this is the full set-up that worked for me:

Add folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

to: folder_paths.py in the ComfyUI root directory

Take all the of the IPAdapter models from https://huggingface.co/h94/IP-Adapter/tree/main/sdxl_models and put them in ComfyUI/models/ipadapter folder -> where you will have to create the ipadapter folder in the ComfyUI/models folder.

IMPORTANT: Make sure what you write in folder_paths.py and what you name your folder in ComfyUI/models/ is THE SAME. Eg: if you use "ipadapters" in ([os.path.join(models_dir, "ipadapters")] then name your folder adapters. If you're using singular, then use the singular when you create your folder.

For folder_names_and_paths["ipadapter"] you must use the word ipadapter.

@MrW00dy
Copy link

MrW00dy commented Oct 15, 2024

The SOLUTION for me was finding the "extra_model_paths.yaml" mentioned in the first comment and looking at the paths for ipadapter and don't you know it I'm using Stability Matrix and my paths are all different, put files in correct path and it works.

@azamet90
Copy link

azamet90 commented Nov 8, 2024

I installed ComfyUI manually and ComfyUI_IPAdapter_plus as at 2024-08-29.

After much time unsuccessfully trying to get ComfyUI to output a more informative error message (where is it searching for the ipadapter models?) by changing change main.py and execution.py and IPAdapaterPlus.py I gave up and just traced the methods myself.

I quickly found just like @Upasunda that the ipadapter path is still not in the folder_paths.py in the ComfyUI root directory.

So this is the full set-up that worked for me:

Add folder_names_and_paths["ipadapter"] = ([os.path.join(models_dir, "ipadapter")], supported_pt_extensions)

to: folder_paths.py in the ComfyUI root directory

Take all the of the IPAdapter models from https://huggingface.co/h94/IP-Adapter/tree/main/sdxl_models and put them in ComfyUI/models/ipadapter folder -> where you will have to create the ipadapter folder in the ComfyUI/models folder.

IMPORTANT: Make sure what you write in folder_paths.py and what you name your folder in ComfyUI/models/ is THE SAME. Eg: if you use "ipadapters" in ([os.path.join(models_dir, "ipadapters")] then name your folder adapters. If you're using singular, then use the singular when you create your folder.

For folder_names_and_paths["ipadapter"] you must use the word ipadapter.

this one did not fix my problem, i have the same trash problem -.-

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