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

Method load

examples/community/stable_diffusion_tensorrt_inpaint.py:158–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

156 save_engine(engine, path=self.engine_path)
157
158 def load(self):
159 logger.warning(f"Loading TensorRT engine: {self.engine_path}")
160 self.engine = engine_from_bytes(bytes_from_path(self.engine_path))
161
162 def activate(self):
163 self.context = self.engine.create_execution_context()

Callers 15

build_enginesFunction · 0.95
load_numpyFunction · 0.45
load_ptFunction · 0.45
runMethod · 0.45
from_pretrainedMethod · 0.45
downloadMethod · 0.45
load_audioMethod · 0.45

Calls

no outgoing calls