Skip to content

Commit cb24144

Browse files
committed
feat:IP-adapter
1 parent 21538eb commit cb24144

3 files changed

Lines changed: 1129 additions & 0 deletions

File tree

__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@
7474
"Nodes `NunchakuPulidApply`,`NunchakuPulidLoader`, "
7575
"`NunchakuPuLIDLoaderV2` and `NunchakuFluxPuLIDApplyV2` import failed:"
7676
)
77+
try:
78+
from .nodes.models.ipadapter import NunchakuFluxIPAdapterApply, NunchakuIPAdapterLoader
79+
80+
NODE_CLASS_MAPPINGS["NunchakuFluxIPAdapterApply"] = NunchakuFluxIPAdapterApply
81+
NODE_CLASS_MAPPINGS["NunchakuIPAdapterLoader"] = NunchakuIPAdapterLoader
82+
except ImportError:
83+
logger.exception(
84+
"Cloned IP-Adapter nodes import failed. Make sure ipadapter_clone.py exists in the nunchaku folder."
85+
)
7786

7887
try:
7988
from .nodes.tools.merge_safetensors import NunchakuModelMerger

0 commit comments

Comments
 (0)