MCPcopy Create free account
hub / github.com/JinjieNi/MegaDLMs / initializer

Method initializer

tools/preprocess_mmdata.py:48–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

46 self.args = args
47
48 def initializer(self):
49 # Use Encoder class as a container for global data
50 Encoder.tokenizer = build_tokenizer(self.args)
51
52 def encode(self, input_pair):
53 json_line, img_path = input_pair

Callers

nothing calls this directly

Calls 1

build_tokenizerFunction · 0.90

Tested by

no test coverage detected