[Issue type] : bug fix
Do not check model info given by user because the user-given model info
is optional but not mandatory. If the model info isn't set then default
one will be used instead.
Change-Id: I4b7dea2e2e3c53a6e418e5ac7f7cc22c328cdbd6
Signed-off-by: Inki Dae <inki.dae@samsung.com>
MEDIA_VISION_SUPPORT_CHECK(_mv_inference_face_check_system_info_feature_supported());
MEDIA_VISION_INSTANCE_CHECK(handle);
- MEDIA_VISION_INSTANCE_CHECK(model_name);
- MEDIA_VISION_NULL_ARG_CHECK(model_file);
- MEDIA_VISION_NULL_ARG_CHECK(meta_file);
- MEDIA_VISION_NULL_ARG_CHECK(label_file);
MEDIA_VISION_FUNCTION_ENTER();
LOGW("A given model name is invalid so default task type will be used.");
}
- _model_file = string(model_file);
- _meta_file = string(meta_file);
- _label_file = string(label_file);
+ if (model_file)
+ _model_file = model_file;
+ if (meta_file)
+ _meta_file = meta_file;
+ if (label_file)
+ _label_file = label_file;
if (_model_file.empty() && _meta_file.empty() && _label_file.empty()) {
LOGW("Given model info is invalid so default model info will be used instead.");