Comfy-Org / ComfyUI_frontend

Official front-end implementation of ComfyUI
https://www.comfy.org/
GNU General Public License v3.0
607 stars 111 forks source link

[Feature Request]: Drag and Drop Embedding from Model Library #1029

Open silveroxides opened 1 month ago

silveroxides commented 1 month ago

Is there an existing issue for this?

What would your feature do ?

I suggest a feature that would allow dragging a model from the Model Library menu onto a node containing a text box to add the path to the model in the text box. Primarily for Embeddings to ease the adding of them to prompt for the user.

Additionally I suggest feature that if you drag a model onto a blank canvas, the search box opens and filters what nodes are able to load models from that models directory and final suggestion is if you drop a model onto an existing loader of appropriate type, it attempts to locate the model and set that to the appropriate INPUT_TYPES using folder_paths module. (checkpoints, loras, vae and vae_approx, controlnet, clip, diffusion_models, etc.) I include image examples of the first suggestion. yMKRBJxru4

Proposed workflow

Refer to feature description as it describes this.

Additional information

No response

JorgeR81 commented 1 month ago

There is already a PR ( https://github.com/Comfy-Org/ComfyUI_frontend/pull/1004 ) for Drag and Drop models onto existing nodes.

But I'm not sure if it includes embeddings, at the moment. That would be nice too.


The autocomplete feature, from pythongosssss is a good alternative, but it only supports 20 entries.

https://github.com/pythongosssss/ComfyUI-Custom-Scripts

emb

silveroxides commented 1 month ago

@JorgeR81 I already use the autocomplete one but it is kind of completely backwards, have poor alias support, no frequency database collection or any of the neat features that the tagautocomplete extension for a1111 has. Also I was requested by @mcmonkey4eva to make this issue after I brought it up in the discord server so that there was something to reference to on the repo.