MCPcopy Create free account
hub / github.com/modelscope/modelscope / __init__

Method __init__

modelscope/preprocessors/multi_modal.py:521–535  ·  view source on GitHub ↗
(self,
                 model_dir: str,
                 mode: str = ModeKeys.INFERENCE,
                 tokenizer_max_length: int = 25,
                 *args,
                 **kwargs)

Source from the content-addressed store, hash-verified

519class HiTeAPreprocessor(Preprocessor):
520
521 def __init__(self,
522 model_dir: str,
523 mode: str = ModeKeys.INFERENCE,
524 tokenizer_max_length: int = 25,
525 *args,
526 **kwargs):
527 super().__init__(*args, **kwargs)
528 self.model_dir = model_dir
529 self.mode = mode
530 self.tokenizer_max_length = tokenizer_max_length
531
532 self._tokenizer = None
533 self._patch_resize_transform = None
534 self._num_frames = None
535 self._video_map = {}
536
537 @property
538 def tokenizer(self):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected