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

Method load

examples/community/stable_diffusion_tensorrt_txt2img.py:143–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

141 save_engine(engine, path=self.engine_path)
142
143 def load(self):
144 logger.warning(f"Loading TensorRT engine: {self.engine_path}")
145 self.engine = engine_from_bytes(bytes_from_path(self.engine_path))
146
147 def activate(self):
148 self.context = self.engine.create_execution_context()

Callers 1

build_enginesFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected