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

Method __init__

benchmarks/base_classes.py:140–145  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

138 lora_id = "latent-consistency/lcm-lora-sdxl"
139
140 def __init__(self, args):
141 super().__init__(args)
142 self.pipe.load_lora_weights(self.lora_id)
143 self.pipe.fuse_lora()
144 self.pipe.unload_lora_weights()
145 self.pipe.scheduler = LCMScheduler.from_config(self.pipe.scheduler.config)
146
147 def get_result_filepath(self, args):
148 pipeline_class_name = str(self.pipe.__class__.__name__)

Callers

nothing calls this directly

Calls 5

unload_lora_weightsMethod · 0.80
__init__Method · 0.45
load_lora_weightsMethod · 0.45
fuse_loraMethod · 0.45
from_configMethod · 0.45

Tested by

no test coverage detected