Closed klinter007 closed 10 months ago
the priority is as follow:
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
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. ;)
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
maybe you have an old version of the extension?
Same error here. I did a full update of Comfy. I also reinstalled IPAdaptor. Older, previously working workflows no longer see the models folder.
check if you have a comfyui/models/ipadapter/ directory
Same here, tried comfyui/models/ipadapter/ directory, the legacy one and the extra_model_paths.yaml and nothing worked even after reinstalling unfortunately.
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!
guys, you are asking for troubles in using onedrive
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.
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.
can you try the version I've uploaded yesterday?
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.
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!
Had the same issue, but resolved by putting models in the comfyui/custom_nodes/comfyui_ip_adapter_plus/models folder.
closing for lack of updates, feel free to reopen if you still have issues
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
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.
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 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.
it's "ipadapter" all lowercase
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..
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.
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,
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.
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
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.
[FIXED] your base path should be like this:
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
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
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!
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!
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
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),)
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)
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.")
same
Found a solution, I've updated my post.
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.
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...)
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
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
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
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.
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.
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.
model files are in model folder for sure. i've checked so many times. tried re-installing no help