Allow dragging model library outputs onto existing nodes #1004
+65
−39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
for #1000
This also changes modelToNodeStore to be backed by a list, which allows multiple node type registrations - that way many different nodes can be registered as compatible with a given model class.
(Future todo: automatic registration from object_info maybe? We can easily identify which inputs have lists that exact match a given expected model type list, and arguably that can be abused to define compatibility. Or if not, maybe a field in the custom node in python side?)
Having the list that allows multiple entries also means we can in the future display a list of what node types are valid and let the user choose / set defaults / etc.
I've registered a second core loader node for checkpoint and lora, and validated that dragging onto either works. Naturally this also providers an easy test reference for other future usages of the multiple node options list.
Also added
quickRegister
to reduce the copypasta