MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / __init__

Method __init__

src/diffusers/models/lora.py:385–390  ·  view source on GitHub ↗
(self, *args, lora_layer: Optional[LoRALinearLayer] = None, **kwargs)

Source from the content-addressed store, hash-verified

383 """
384
385 def __init__(self, *args, lora_layer: Optional[LoRALinearLayer] = None, **kwargs):
386 deprecation_message = "Use of `LoRACompatibleLinear` is deprecated. Please switch to PEFT backend by installing PEFT: `pip install peft`."
387 deprecate("LoRACompatibleLinear", "1.0.0", deprecation_message)
388
389 super().__init__(*args, **kwargs)
390 self.lora_layer = lora_layer
391
392 def set_lora_layer(self, lora_layer: Optional[LoRALinearLayer]):
393 deprecation_message = "Use of `set_lora_layer()` is deprecated. Please switch to PEFT backend by installing PEFT: `pip install peft`."

Callers

nothing calls this directly

Calls 2

deprecateFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected