From d8ab9cc3f68101c23cb191b10118eaba7258d21b Mon Sep 17 00:00:00 2001 From: Suyeon Kim Date: Mon, 29 Apr 2024 15:18:36 +0900 Subject: [PATCH] [fix/ml-svc-model] fix the rpk example - fix ml-svc-model/mobilenetv3-rpk - the name and format of json file are modified. (model_description.json -> rpk_config.json) - add metadata mlops key in tizen-manifest.xml Signed-off-by: Suyeon Kim --- Tizen.native/ml-svc-model/README.md | 2 +- .../res/global/tizen.ai.model/model_description.json | 9 --------- .../res/global/tizen.ai.model/rpk_config.json | 10 ++++++++++ .../ml-svc-model/mobilenetv3-rpk/tizen-manifest.xml | 1 + 4 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 Tizen.native/ml-svc-model/mobilenetv3-rpk/res/global/tizen.ai.model/model_description.json create mode 100644 Tizen.native/ml-svc-model/mobilenetv3-rpk/res/global/tizen.ai.model/rpk_config.json diff --git a/Tizen.native/ml-svc-model/README.md b/Tizen.native/ml-svc-model/README.md index ff93e0ed..f2a795d8 100644 --- a/Tizen.native/ml-svc-model/README.md +++ b/Tizen.native/ml-svc-model/README.md @@ -14,7 +14,7 @@ ### Scenario using [Tizen Resource Package](https://docs.tizen.org/application/tizen-studio/native-tools/rpk-package/) -1. When the org.resource.mobilenetv3 tizen resource package (rpk) is installed, a daemon running in the Tizen device registers model files based on the provided "model_description.json" +1. When the org.resource.mobilenetv3 tizen resource package (rpk) is installed, a daemon running in the Tizen device registers model files based on the provided "rpk_config.json" 2. Without any change to imgcls app, it uses newly installed model file. ![rpk](./mobilenetv3_600.png) diff --git a/Tizen.native/ml-svc-model/mobilenetv3-rpk/res/global/tizen.ai.model/model_description.json b/Tizen.native/ml-svc-model/mobilenetv3-rpk/res/global/tizen.ai.model/model_description.json deleted file mode 100644 index 7f2989a7..00000000 --- a/Tizen.native/ml-svc-model/mobilenetv3-rpk/res/global/tizen.ai.model/model_description.json +++ /dev/null @@ -1,9 +0,0 @@ -[ - { - "name" : "imgcls-mobilenet-224-224-fp", - "shared" : "true", - "model" : "lite-model_mobilenet_v3_large_100_224_fp32_1.tflite", - "version" : "1.0.0", - "description" : "Image classification model" - } -] diff --git a/Tizen.native/ml-svc-model/mobilenetv3-rpk/res/global/tizen.ai.model/rpk_config.json b/Tizen.native/ml-svc-model/mobilenetv3-rpk/res/global/tizen.ai.model/rpk_config.json new file mode 100644 index 00000000..f5c2f89e --- /dev/null +++ b/Tizen.native/ml-svc-model/mobilenetv3-rpk/res/global/tizen.ai.model/rpk_config.json @@ -0,0 +1,10 @@ +{ + "models": [ + { + "name" : "imgcls-mobilenet-224-224-fp", + "model" : "lite-model_mobilenet_v3_large_100_224_fp32_1.tflite", + "description" : "Image classification model v1.0.0", + "activate" : "true" + } + ] +} \ No newline at end of file diff --git a/Tizen.native/ml-svc-model/mobilenetv3-rpk/tizen-manifest.xml b/Tizen.native/ml-svc-model/mobilenetv3-rpk/tizen-manifest.xml index 08634a18..905a6a16 100644 --- a/Tizen.native/ml-svc-model/mobilenetv3-rpk/tizen-manifest.xml +++ b/Tizen.native/ml-svc-model/mobilenetv3-rpk/tizen-manifest.xml @@ -1,4 +1,5 @@ +