(
self,
tokenizer_path=None
)
| 6 | |
| 7 | class CogPrompter(BasePrompter): |
| 8 | def __init__( |
| 9 | self, |
| 10 | tokenizer_path=None |
| 11 | ): |
| 12 | if tokenizer_path is None: |
| 13 | base_path = os.path.dirname(os.path.dirname(__file__)) |
| 14 | tokenizer_path = os.path.join(base_path, "tokenizer_configs/cog/tokenizer") |
| 15 | super().__init__() |
| 16 | self.tokenizer = T5TokenizerFast.from_pretrained(tokenizer_path) |
| 17 | self.text_encoder: FluxTextEncoder2 = None |
| 18 | |
| 19 | |
| 20 | def fetch_models(self, text_encoder: FluxTextEncoder2 = None): |
nothing calls this directly
no test coverage detected