File size: 325 Bytes
1040e55
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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