MCPcopy Create free account
hub / github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT / TrtUnetOption

Class TrtUnetOption

scripts/trt.py:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class TrtUnetOption(sd_unet.SdUnetOption):
23 def __init__(self, name: str, filename: List[dict]):
24 self.label = f"[TRT] {name}"
25 self.model_name = name
26 self.configs = filename
27
28 def create_unet(self):
29 return TrtUnet(self.model_name, self.configs)
30
31
32class TrtUnet(sd_unet.SdUnet):

Callers 1

list_unetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected