in optimum/amd/ryzenai/pipelines/object_detection.py [0:0]
def _sanitize_parameters(self, **kwargs):
preprocess_params = {}
if "timeout" in kwargs:
preprocess_params["timeout"] = kwargs["timeout"]
postprocess_params = {}
if "threshold" in kwargs:
postprocess_params["threshold"] = kwargs["threshold"]
if "nms_threshold" in kwargs:
postprocess_params["nms_threshold"] = kwargs["nms_threshold"]
if "data_format" in kwargs:
preprocess_params["data_format"] = kwargs["data_format"]
postprocess_params["data_format"] = kwargs["data_format"]
return preprocess_params, {}, postprocess_params