
* Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * remove submodule * add mPLUG MiniGPT4 * Update Readme.md * Update Readme.md * Update Readme.md --------- Co-authored-by: Yuliang Liu <34134635+Yuliang-Liu@users.noreply.github.com>
13 lines
325 B
Python
13 lines
325 B
Python
import os
|
|
import numpy as np
|
|
|
|
from data_utils.registry import Registry, build_from_cfg
|
|
|
|
PROCESSORS = Registry('processors')
|
|
|
|
def build_processors(processors_cfg):
|
|
processors = dict()
|
|
for task, processor in processors_cfg.items():
|
|
processors[task] = build_from_cfg(processor, PROCESSORS)
|
|
return processors
|