[Feature Request] Use hashes instead simple names of models when you import images from A1111
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
I have my models splitted by folders, so I have character loras, style loras, realistic checkpoints, anime checkpoints
When I drop an image from A1111 to comfy, I expect it will set names of needed models with folders.
I guess, the issue is with importA1111 function
You can look at it here: https://github.com/comfyanonymous/ComfyUI/blob/38b7ac6e269e6ecc5bdd6fefdfb2fb1185b09c9d/web/scripts/pnginfo.js#L166
As you can see, when it comes to getting loras names, it simply extract it from `` string:

So I suggest:
1. extract names directly from metadata, because it comes with hash.
2. get this hash
3. use this hash to get location of a model
4. set text to location of file with all folders and subfolders. Like: "anime/characters/whatever.safetensors"
Contributor guide
Assessment
This issue has not been assessed yet.