MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / make_CLIP

Function make_CLIP

demo/Diffusion/models.py:257–259  ·  view source on GitHub ↗
(version, hf_token, device, verbose, max_batch_size, inpaint=False)

Source from the content-addressed store, hash-verified

255 return opt_onnx_graph
256
257def make_CLIP(version, hf_token, device, verbose, max_batch_size, inpaint=False):
258 return CLIP(hf_token=hf_token, device=device, verbose=verbose, path=get_path(version, inpaint=inpaint),
259 max_batch_size=max_batch_size, embedding_dim=get_embedding_dim(version))
260
261class UNet(BaseModel):
262 def __init__(self,

Callers 1

loadEnginesMethod · 0.90

Calls 3

CLIPClass · 0.85
get_pathFunction · 0.85
get_embedding_dimFunction · 0.85

Tested by

no test coverage detected