MCPcopy Create free account
hub / github.com/AMAP-ML/EMF / T2IConfig

Class T2IConfig

inference.py:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23@dataclass
24class T2IConfig:
25
26 model_path: str = "../checkpoint"
27 device: str = "cuda:1"
28 dtype: torch.dtype = torch.bfloat16
29 scale: int = 0
30 seq_len: int = 729
31 top_p: float = 0.95
32 top_k: int = 1200
33
34class TextToImageInference:
35 def __init__(self, config: T2IConfig):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected