<filename>rgbd_seg/criteria/builder.py<gh_stars>100-1000
from ..utils import build_from_cfg
from .registry import CRITERIA


def build_criterion(cfg):
    criterion = build_from_cfg(cfg, CRITERIA, mode='registry')
    return criterion

<filename>rgbd_seg/criteria/builder.py<gh_stars>100-1000
from ..utils import build_from_cfg
from .registry import CRITERIA


def build_criterion(cfg):
    criterion = build_from_cfg(cfg, CRITERIA, mode='registry')
    return criterion
