-
Notifications
You must be signed in to change notification settings - Fork 97
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
safetensors do not appear in Load Diffusion Model node while the models already in unet folder #179
Comments
I just had this exact issue. After I uninstalled the ComfyUI-Flow-Control custom node, everything worked properly again. So it seems this custom node is not the problem. I am not sure why Comfy Manager is recommending I install Flow Control since it doesn't seem to actually be required. |
Looks like that nodepack includes the ComfyUI-GGUF nodeset in a subfolder for use in their own custom nodes, which makes sense. But for some reason the manager think it's required for any workflow that includes our nodes as it gets listed here as a duplicate despite never being exported here as far as I can tell. Pinging @ltdrdata - should probably have some logic for node class collisions with popular node sets as this could in theory be used as an exploit to force people to install unknown nodes. Also seems like an issue with the script that is used to parse node class mappings picking up any instance of |
The actual issue with the base nodes only listing gguf files seems to be caused by this bit of code in that linked node pack overriding the file list for the built in nodes. Something like this would work if the goal is to add orig = folder_paths.folder_names_and_paths.get("diffusion_models", folder_paths.folder_names_and_paths.get("unet", [[], set()]))
folder_paths.folder_names_and_paths["diffusion_models"] = (orig[0], {*orig[1], ".gguf"}) Though it might just be easier to create a new custom key and list both i.e how we do it here and here. @krich-cto |
This isn’t an issue that can be resolved by ComfyUI-Manager; it seems like it needs to be addressed on the core side. |
Unsure what you mean by core side but I think the main problem at hand should be resolvable by updating the db entry as the other node pack in question doesn't actually provide any of the conflicting nodes as far as I can tell, and they're just erroneously picked up despite not being imported anywhere (presumably because of a recursive scan function). |
Oh, I thought you were referring to the issue of another node overriding your nodes. I added the ComfyUI-GGUF nodes as a preemption nodes. |
Thanks that works for me |
Thank you, deleting helped me ComfyUI-Flow-Control |
and... how to uninstall [ComfyUI-Flow-Control] ???? thanks! |
You can uninstall any custom node by going into the comfy manager custom node list within comfyui. There will be a big list of custom nodes. Search your node in the text box to find it. Then click the uninstall button. |
now it works! Wow, it had been 3 days without a solution and reading in several forums I found this thread.. Thanks for the help!! |
Great! It works for me~ |
In the code I got from your repository had and if statement before that piece of code which caused the code block to be skipped since folder_paths.folder_names_and_paths already had the member "clip_gguf", but for some reason inside clip_gguf the path for it was empty. This code which is now in the master branch skips the copying of the path and that is reason for these issues people are having. I don't know why the dictionary at this point has the variable inside of it without a path partially initialized, but I guess there is a reason? if "clip_gguf" not in folder_paths.folder_names_and_paths:
orig = folder_paths.folder_names_and_paths.get("text_encoders", folder_paths.folder_names_and_paths.get("clip", [[], set()]))
folder_paths.folder_names_and_paths["clip_gguf"] = (orig[0], {".gguf"}) Could you push a change removing the if statement? |
The ComfyUI-Flow-Control node is moved to dev channel. And I added a warning message to description. |
i have never installed ComfyUI Flow Control node and i still have this same issue. Please help, basically .safetensor files are not shown in Unet Loader EDIT : i think i made it work by just creating a folder in the unet folder called safetensor and it showed up |
@HenriJohansson If I'm reading it right, then your specific issue is different from the one addressed here (which is about the built-in ComfyUI node not showing safetensors files). Anyway, here's a patch that probably fixes it, though it'd be good to know how/why the key is already present in the list. 3dc384b (also, editing on my laptop so if it breaks horribly I'll just revert it lol) @karankatke The first thing I'd try is track down if the issue exists with no custom nodes installed/enabled, and if not add them back 1 by 1 to find out which one breaks it. |
No, it was the GGUF specific one which I tried to use.
…On Thu, 26 Dec 2024, 22:53 City, ***@***.***> wrote:
@HenriJohansson <https://github.com/HenriJohansson> If I'm reading it
right, then your specific issue is different from the one addressed here
(which is about the built-in ComfyUI node not showing safetensors files).
Anyway, here's a patch that *probably* fixes it, though it'd be good to
know how/why the key is already present in the list. 3dc384b
<3dc384b>
(also, editing on my laptop so if it breaks horribly I'll just revert it
lol)
@karankatke <https://github.com/karankatke> The first thing I'd try is
track down if the issue exists with no custom nodes installed/enabled, and
if not add them back 1 by 1 to find out which one breaks it.
—
Reply to this email directly, view it on GitHub
<#179 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZB25LIYJ53MSMQEJI55A7L2HRUFRAVCNFSM6AAAAABTU7Q7OWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRTGA4TGNRRGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I have the same issue. I only installed the ComfyUI-Manager and ComfyUI-GGUF custom nodes. |
Same here. installed ComfyUI manager v3.3.9 and running python V3.12.7 |
Disable all custom nodes except ComfyUI-GGUF and try again. |
i disabled everything expect GGUF and still not working |
I fixed my difussion model not showing up by restarting ComfyUI. Sometimes when you put stuff in ComfyUI folders it doesn't detect it immediately. |
this worked for me |
Before installing the GGUF package, there was a UnetLoader node which can load my flux_dev.safetensors in my unet folder, everything was fine. After I installed the GGUF nodes, the UnetLoader node is gone and seems to be replaced by the Load Diffusion Model node, but the flux_dev.safetensors doesn't show in the node Load Diffusion Model, only .gguf models are listed, as shown in the pic.

I then loaded a workflow with the default flux_dev.safetensors file shown in the Load Diffusion Model node and tried to run it, and it triggered an error:
Prompt outputs failed validation
UNETLoader:
It seems that the safetensors are not included in the model list, but I placed the safetensors in the unet folder indeed.
The text was updated successfully, but these errors were encountered: