MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / __init__

Method __init__

diffsynth/prompters/cog_prompter.py:8–17  ·  view source on GitHub ↗
(
        self,
        tokenizer_path=None
    )

Source from the content-addressed store, hash-verified

6
7class 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):

Callers

nothing calls this directly

Calls 1

from_pretrainedMethod · 0.45

Tested by

no test coverage detected