From a2672fc84cb31b81c3541670a199785b6c49069d Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Thu, 4 Jul 2024 15:24:43 +0900 Subject: [PATCH] [ml-service] Add rpk pacakges for new example - Add rpk packages for new example. - Each rpk is packaged into `org.resource.model.sum_and_add-1.0.0.rpk` and `org.resource.model.sum_and_add-2.0.0.rpk` Signed-off-by: Yongjoo Ahn --- .../res/global/sum_and_add/rpk_config.json | 17 +++++++++++++ .../sum_and_add/sum_and_add.single.conf | 23 ++++++++++++++++++ .../global/sum_and_add/sum_and_add_one.tflite | Bin 0 -> 1184 bytes .../tizen-manifest.xml | 5 ++++ .../res/global/sum_and_add/rpk_config.json | 17 +++++++++++++ .../sum_and_add/sum_and_add.single.conf | 23 ++++++++++++++++++ .../global/sum_and_add/sum_and_add_two.tflite | Bin 0 -> 1184 bytes .../tizen-manifest.xml | 5 ++++ 8 files changed, 90 insertions(+) create mode 100644 Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/rpk_config.json create mode 100644 Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add.single.conf create mode 100644 Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add_one.tflite create mode 100644 Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/tizen-manifest.xml create mode 100644 Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/rpk_config.json create mode 100644 Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add.single.conf create mode 100644 Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add_two.tflite create mode 100644 Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/tizen-manifest.xml diff --git a/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/rpk_config.json b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/rpk_config.json new file mode 100644 index 00000000..ac6d6d19 --- /dev/null +++ b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/rpk_config.json @@ -0,0 +1,17 @@ +{ + "models" : [ + { + "name" : "sum_and_add_model", + "model" : "sum_and_add_one.tflite", + "description" : "sum and add 1.0", + "activate" : "true" + } + ], + "resources" : [ + { + "name" : "sum_and_add_resource_conf", + "path" : "sum_and_add.single.conf", + "description" : "Notes for this conf file" + } + ] +} \ No newline at end of file diff --git a/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add.single.conf b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add.single.conf new file mode 100644 index 00000000..94434010 --- /dev/null +++ b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add.single.conf @@ -0,0 +1,23 @@ +{ + "single" : { + "key" : "sum_and_add_model", + "framework" : "tensorflow-lite", + "custom" : "Delegate:XNNPACK,NumThreads:2", + "input_info" : [ + { + "type" : "float32", + "dimension" : "4:1" + } + ], + "output_info" : [ + { + "type" : "float32", + "dimension" : "1:1" + } + ] + }, + "information" : + { + "description" : "[sum_and_add_one.tflite] sum all values and add 1.0" + } +} diff --git a/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add_one.tflite b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add_one.tflite new file mode 100644 index 0000000000000000000000000000000000000000..2ae7a40b913a637bb856cbf36ca049134a8e87b7 GIT binary patch literal 1184 zcmZWoF>ljQ5WbYOjoPSGP(cwLG9bZ%<(R6f+DZ_m1+_}js*MnvWns5ia_q`^&csk8 zegGo_149P}*qE3R15-x^1_lNO)PDfx`=0Hzq!)d;^S$@oySsO9K}5O_TleOqCJQnz zb22Mc_$pF{E%1rF0)7GCO3=WAvdATT!^CdNlxC4Lg)j2STLUfweJ>vP;eqXX`%V%l z%|i%zou(-@Q30Yv9VW^)VGj3v`kU>UfX|5!`dl4@y$F!^9Wf?z`zmyEyYqNscW-mM zW4AZDjrB&if!I}D56@s6^0>F>hjyHV%I|shz>E8S6zV*FW9=t!0(=DC1INHifZR@= z_aW?AfKri};TiPZ(%uQ}E6${=I_z>;_vz7xliM%M@h4nkKUo{kxB^&4ec3SYy57Jt ztwnRmS`zu1pUpGsM%^?_7`e3mr0EWDdakdG$*OrbMIMYVa&-SW_8tMeqjqa^x7Lh8 z^g(&9p>yH=3+gJSf-z>`DdyrW>|@{^z?eP95217oENGNJeU6XiY1Y6!%&~%dre+-W zpqMY7&pn*Vf=?dgCg+Uydd?+>Tncp&FYAHGIDBjP;4Cxm7QpjP!G|g_7QuaYfH&~p zfZkJ%^7fNp$BC7%FeRSbbb?^T#2RB07J5#zh{3ou;0I!G)@+;Iv2CN_y6wpIg4Ozv zD{@Uw#dTdJr<5`Yua*+)Cs-e3tcJg3oW~it822ovFC#gzCw!L*e%_-K`|6qTGz$C5 z3Dp^o`S8xOu3yZjsF8KEPoEKQ9(v@R+u3{7ZTjy%iaZ#(tbcqLykAQ8F1EBSTmJz6 Chpu)2 literal 0 HcmV?d00001 diff --git a/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/tizen-manifest.xml b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/tizen-manifest.xml new file mode 100644 index 00000000..e7329d20 --- /dev/null +++ b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/tizen-manifest.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/rpk_config.json b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/rpk_config.json new file mode 100644 index 00000000..7e44b1ef --- /dev/null +++ b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/rpk_config.json @@ -0,0 +1,17 @@ +{ + "models" : [ + { + "name" : "sum_and_add_model", + "model" : "sum_and_add_two.tflite", + "description" : "sum and add 2.0", + "activate" : "true" + } + ], + "resources" : [ + { + "name" : "sum_and_add_resource_conf", + "path" : "sum_and_add.single.conf", + "description" : "Notes for this conf file" + } + ] +} \ No newline at end of file diff --git a/Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add.single.conf b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add.single.conf new file mode 100644 index 00000000..8a8dd874 --- /dev/null +++ b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add.single.conf @@ -0,0 +1,23 @@ +{ + "single" : { + "key" : "sum_and_add_model", + "framework" : "tensorflow-lite", + "custom" : "Delegate:XNNPACK,NumThreads:2", + "input_info" : [ + { + "type" : "float32", + "dimension" : "4:1" + } + ], + "output_info" : [ + { + "type" : "float32", + "dimension" : "1:1" + } + ] + }, + "information" : + { + "description" : "[sum_and_add_two.tflite] sum all values and add 2.0" + } +} diff --git a/Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add_two.tflite b/Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add_two.tflite new file mode 100644 index 0000000000000000000000000000000000000000..fb4ea14b8d2b1d0e2d1caec8c945be19b9518af3 GIT binary patch literal 1184 zcmZWoF>ljQ5WbYOjoPSGP(cwLG9bZ%<(R6fphKgypjJs*wGm>oEbO+H9J_L!Gcka~ z4`5_qVCc}HY)s6EfvF<{0|NsC>OTPUeb07U(u=;_`QH2P-QBylAR^tztp{^blLeWV zIhmCzd=)9f7WhQo0Kb55C1_x^EOG_kFtM95rCH=m;fs9oR)DKO--`!+xNp1Oo|6Ph z^AJMbrfEt|RDdW^hl#RHn8Q7v{$_h7;B(^rK3B(JF9PI!M~unbz7E~o>O5WF+1=Rc z*zNUhW3AC`Aa+&P!!sC%JnrrJp&cio@_U{=@Z!E7g*uPlSo;Z_0v~}B;0SmPklV@g zK7>6BP%1JrJcGVF+B>0r#hG+fhg~k~K0WzxdiRw%{)}tvCu`#w*8t0?FB|54*Be-- zwP-F`OCn$Mvw23{sGEifBbU~nG~EWyF7%Z#SvBvb$b<1At1qzkCBQpsw>EZa%_u}4 zl;;{c7v8_1u3{<}V+NjLF5bgF0*(R3>^Xi2rE6e8qx|U$d@N712JT^w72Gp5g6w%HxqHX5$mj$AKzR3CCh zZs@7FsjK9aQYPWmQeyoC>w}Ed@VAWfI3t(ip6B#sBq#QS?^40fdvs!79T?A}u&y`J<$Q`7SvULi8S& + + + +