mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-02 11:17:05 +08:00
Add adapter map for algo selection
This commit is contained in:
parent
f5bdfcf0fe
commit
7aa3184e85
@ -15,9 +15,18 @@ adapters: list[type[WeightAdapterBase]] = [
|
||||
OFTAdapter,
|
||||
BOFTAdapter,
|
||||
]
|
||||
adapter_maps: dict[str, type[WeightAdapterBase]] = {
|
||||
"LoRA": LoRAAdapter,
|
||||
"LoHa": LoHaAdapter,
|
||||
"LoKr": LoKrAdapter,
|
||||
"GLoRA": GLoRAAdapter,
|
||||
"OFT": OFTAdapter,
|
||||
"BOFT": BOFTAdapter,
|
||||
}
|
||||
|
||||
__all__ = [
|
||||
"WeightAdapterBase",
|
||||
"WeightAdapterTrainBase",
|
||||
"adapters"
|
||||
"adapters",
|
||||
"adapter_maps",
|
||||
] + [a.__name__ for a in adapters]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user