mv_machine_learning: drop backbone model code dependency
authorInki Dae <inki.dae@samsung.com>
Thu, 19 Jan 2023 01:25:49 +0000 (10:25 +0900)
committerKwanghoon Son <k.son@samsung.com>
Mon, 13 Feb 2023 02:31:48 +0000 (11:31 +0900)
commitd3767875a124f792cec21e3124c4d9ca9a0a405c
treeeb88558189e86af9ccae7d5a3382265d7103ab70
parent4db04cd262dfd5b593b90f03b561641af20b4c41
mv_machine_learning: drop backbone model code dependency

[Issue type] code refactoring

Did code refactoring by dropping backbone model code dependency.

With this patch, we can change facenet to other without code modification.
Only what we have to do for the use of new backbone model is to update
each "value" attribute of two types of face_recognition.json file,
    "name"  : "FACE_RECOGNITION_INPUT_TENSOR_SHAPE",
    "type" : "array",
    "subtype" : "integer",
    "value" : [ 512, 1 ] <- input tensor shape of training model which is same
                            as output tensor shape of backbone model.

    "name"  : "FACENET_OUTPUT_TENSOR_NAME",
    "type"  : "string",
    "value" : "normalize/l2_normalize" <- output tensor name of backbone model.

Change-Id: I9e32c73e029d67a1c86e8b2c7b424cb09d614463
Signed-off-by: Inki Dae <inki.dae@samsung.com>
12 files changed:
mv_common/include/EngineConfig.h
mv_common/src/EngineConfig.cpp
mv_machine_learning/face_recognition/include/face_recognition.h
mv_machine_learning/face_recognition/include/face_recognition_type.h
mv_machine_learning/face_recognition/include/simple_shot.h
mv_machine_learning/face_recognition/meta/face_recognition.json
mv_machine_learning/face_recognition/src/face_recognition.cpp
mv_machine_learning/face_recognition/src/face_recognition_adapter.cpp
mv_machine_learning/face_recognition/src/facenet.cpp
mv_machine_learning/face_recognition/src/simple_shot.cpp
mv_machine_learning/training/include/training_model.h
mv_machine_learning/training/src/training_model.cpp