From 0474816d1ceeeb786032a48171e60a2e08fdb5d4 Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Fri, 18 Sep 2020 15:54:00 +0900 Subject: [PATCH] [CustomShortcut] Update docs and model **Changes proposed in this PR:** - Update model to use 10 data - Update readme.md **Self evaluation:** 1. Build test: [X]Passed [ ]Failed [ ]Skipped 2. Run test: [X]Passed [ ]Failed [ ]Skipped Signed-off-by: Jihoon Lee --- Applications/Tizen_native/CustomShortcut/README.md | 19 ++++++++++++++++++- .../Tizen_native/CustomShortcut/res/model.ini | 4 ++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Applications/Tizen_native/CustomShortcut/README.md b/Applications/Tizen_native/CustomShortcut/README.md index fc0e5b3..cf7a114 100644 --- a/Applications/Tizen_native/CustomShortcut/README.md +++ b/Applications/Tizen_native/CustomShortcut/README.md @@ -16,7 +16,6 @@ You can use `tizen studio gui` to build and run. If you want to do in CLI, you first need to [convert the project to CLI](https://developer.tizen.org/ko/development/tizen-studio/native-tools/cli/converting-projects-cli) and do as follows. -for the time being, you have to install and prepare nntrainer, capi-nntrainer to run this program ### Prerequisite @@ -24,6 +23,24 @@ for the time being, you have to install and prepare nntrainer, capi-nntrainer to - tizen studio 3.7 - wearable 6.0 rootstrap (built after Aug 25 2020) - appropriate wearable tizen device with tizen 6.0 installed (built after Aug 25 2020) +- gstreamer plugin png image decoder (https://gstreamer.freedesktop.org/documentation/png/pngdec.html?gi-language=c) + +### Install `pngdec` + +Currently, `pngdec` gstreamer element is required but it is not packaged by default in the released wearable OS. + + +```bash +# download newest version, checkout http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/armv7l/ +$ wget http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/armv7l/gst-plugins-good-extra-${version}.armv7l.rpm +$ sdb devices +List of devices attached +#device list +$ sdb root on +$ sdb shell "mount -o remount,rw /" +$ sdb push ${downloaded_rpm} /tmp_repos/ +$ sdb shell rpm -Uvh --force --nodeps /tmp_repos/${downloaded_rpm} +``` ### Install Newest nntrainer to the device diff --git a/Applications/Tizen_native/CustomShortcut/res/model.ini b/Applications/Tizen_native/CustomShortcut/res/model.ini index 4e148d2..d598292 100644 --- a/Applications/Tizen_native/CustomShortcut/res/model.ini +++ b/Applications/Tizen_native/CustomShortcut/res/model.ini @@ -9,14 +9,14 @@ Optimizer = adam # Optimizer : sgd (stochastic gradien decent), # adam (Adamtive Moment Estimation) loss = cross # Cost(loss) function : mse (mean squared error) # cross (cross entropy) -batch_size = 9 +batch_size = 10 save_path = "model.bin" # model path to save / read beta1 = 0.9 # beta 1 for adam beta2 = 0.9999 # beta 2 for adam epsilon = 1e-7 # epsilon for adam [DataSet] -BufferSize=9 +BufferSize=10 TrainData="trainingSet.dat" ValidData="trainingSet.dat" LabelData="label.dat" -- 2.7.4