def from_config(cls, config_dict, merge_default=True): # Override from Configurable if merge_default: config_dict = merge_dict(cls.get_default_config(), config_dict) elem_type, elem_conf = cls_conf_from_config_dict( config_dict, DetectionElement.get_impls()) return DetectionElementFactory(elem_type, elem_conf)
def get_default_config(cls): # Override from Configurable return make_default_config(DetectionElement.get_impls())