MCPcopy Create free account
hub / github.com/Atrovast/THGS / OpenCLIPNetworkConfig

Class OpenCLIPNetworkConfig

scripts/image_encoding.py:29–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28@dataclass
29class OpenCLIPNetworkConfig:
30 _target: Type = field(default_factory=lambda: OpenCLIPNetwork)
31 clip_model_type: str = "ViT-B-16"
32 clip_model_pretrained: str = "laion2b_s34b_b88k"
33 clip_n_dims: int = 512
34 negatives: Tuple[str] = ("object", "things", "stuff", "texture")
35 positives: Tuple[str] = ("",)
36
37class OpenCLIPNetwork(nn.Module):
38 def __init__(self, config: OpenCLIPNetworkConfig):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected