mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-30 16:47:12 +08:00
Added get_attachment func on ModelPatcher
This commit is contained in:
parent
da6c0455cc
commit
c422553b0b
@ -828,6 +828,9 @@ class ModelPatcher:
|
|||||||
if key in self.attachments:
|
if key in self.attachments:
|
||||||
self.attachments.pop(key)
|
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]):
|
def set_injections(self, key: str, injections: List[PatcherInjection]):
|
||||||
self.injections[key] = injections
|
self.injections[key] = injections
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user