(self, config: T2IConfig)
| 33 | |
| 34 | class TextToImageInference: |
| 35 | def __init__(self, config: T2IConfig): |
| 36 | self.config = config |
| 37 | self.device = torch.device(config.device) |
| 38 | self._load_models() |
| 39 | |
| 40 | def _load_models(self): |
| 41 | self.model = blip3oQwenForInferenceLM.from_pretrained(self.config.model_path, torch_dtype=self.config.dtype).to(self.device) |
nothing calls this directly
no test coverage detected