mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 16:07:11 +08:00
Added get_attachment func on ModelPatcher
This commit is contained in:
parent
da6c0455cc
commit
c422553b0b
@ -823,10 +823,13 @@ class ModelPatcher:
|
||||
|
||||
def set_attachments(self, key: str, attachment):
|
||||
self.attachments[key] = attachment
|
||||
|
||||
|
||||
def remove_attachments(self, key: str):
|
||||
if key in self.attachments:
|
||||
self.attachments.pop(key)
|
||||
|
||||
def get_attachment(self, key: str):
|
||||
return self.attachments.get(key, None)
|
||||
|
||||
def set_injections(self, key: str, injections: List[PatcherInjection]):
|
||||
self.injections[key] = injections
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user