MCPcopy Create free account
hub / github.com/Vchitect/Latte / __init__

Method __init__

models/clip.py:66–69  ·  view source on GitHub ↗
(self, path, dropout_prob=0.1)

Source from the content-addressed store, hash-verified

64 Embeds text prompt into vector representations. Also handles text dropout for classifier-free guidance.
65 """
66 def __init__(self, path, dropout_prob=0.1):
67 super().__init__()
68 self.text_encodder = FrozenCLIPEmbedder(path=path)
69 self.dropout_prob = dropout_prob
70
71 def token_drop(self, text_prompts, force_drop_ids=None):
72 """

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

FrozenCLIPEmbedderClass · 0.85

Tested by

no test coverage detected