MCPcopy
hub / github.com/kohya-ss/sd-scripts / tokenize

Method tokenize

library/strategy_base.py:71–72  ·  view source on GitHub ↗
(self, text: Union[str, List[str]])

Source from the content-addressed store, hash-verified

69 return tokenizer
70
71 def tokenize(self, text: Union[str, List[str]]) -> List[torch.Tensor]:
72 raise NotImplementedError
73
74 def tokenize_with_weights(self, text: Union[str, List[str]]) -> Tuple[List[torch.Tensor], List[torch.Tensor]]:
75 """

Callers 15

generate_imageFunction · 0.45
encode_promptFunction · 0.45
encodeFunction · 0.45
prepare_text_inputsFunction · 0.45
sample_image_inferenceFunction · 0.45
__getitem__Method · 0.45
encode_promptFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected