MCPcopy Index your code
hub / github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT / set_unet

Method set_unet

model_helper.py:67–70  ·  view source on GitHub ↗
(self, ckpt: str)

Source from the content-addressed store, hash-verified

65 self.set_unet("None")
66
67 def set_unet(self, ckpt: str):
68 # TODO test if using this with TRT works
69 sd_unet.apply_unet(ckpt)
70 sd_hijack.model_hijack.apply_optimizations(ckpt)
71
72 def get_input_names(self) -> List[str]:
73 names = ["sample", "timesteps", "encoder_hidden_states"]

Callers 1

apply_torch_modelMethod · 0.95

Calls 1

apply_unetMethod · 0.80

Tested by

no test coverage detected