MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / set_full_adapter

Method set_full_adapter

diffsynth/models/sd_ipadapter.py:26–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

24 self.set_full_adapter()
25
26 def set_full_adapter(self):
27 block_ids = [1, 4, 9, 12, 17, 20, 40, 43, 46, 50, 53, 56, 60, 63, 66, 29]
28 self.call_block_id = {(i, 0): j for j, i in enumerate(block_ids)}
29
30 def set_less_adapter(self):
31 # IP-Adapter for SD v1.5 doesn't support this feature.

Callers 4

__init__Method · 0.95
set_less_adapterMethod · 0.95
__call__Method · 0.45
__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected