nntrainer icon indicating copy to clipboard operation
nntrainer copied to clipboard

Added code for adding new Classes in runtime for simpleshot learning @open sesame 10/06 21:02

Open priyankmohanverma opened this issue 2 years ago • 15 comments

How to run?

build the code

Download the Dataset

You can download the dataset used from https://github.sec.samsung.net/21-Tizen-ME-SRI-D/On-Device-Learning/tree/master/Project/Source/nntrainer/Applications/SimpleShot/tasks and move to app_path+"/tasks/"

After building, run with $./executable model method train_file validation_file label_file app_path

3 . For Adding 5 Classes /usr/lib/nntrainer/bin/applications/simpleshot_runner conv4 L2N facenet 5classtrain.dat 5classtest.dat 5classlabel.txt /usr/lib/nntrainer/bin/applications/res/app/SimpleShot

This appends centroid of 5 classes in tensor.bin and corresponding labels in AllLabels.txt

For Adding 2 new Classes

usr/lib/nntrainer/bin/applications/simpleshot_runner facenet L2N 2classtrain.dat 2classtest.dat 2classlabel.txt /usr/lib/nntrainer/bin/applications/res/app/SimpleShot

This appends centroid of 2 classes in tensor.bin(total 7 Classes) and corresponding labels in AllLabels.txt

Testing for Query Images belonging to 7 Classes Give labels_file : 'null' Train_file: could be anything doesn't ,matter Test File : Query Images

/usr/lib/nntrainer/bin/applications/simpleshot_runner facenet L2N 7classtrain.dat 7classtest.dat null /usr/lib/nntrainer/bin/applications/res/app/SimpleShot

This gives out accuracy of 92.562%.

priyankmohanverma avatar Sep 23 '21 12:09 priyankmohanverma

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #1585. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.

taos-ci avatar Sep 23 '21 12:09 taos-ci

We generate a report if there are dangerous coding constructs in your code. Please read http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109232125580.1346960067749-b814d2c0f5438a856e351649df3f8be8b1366d14/report/.

taos-ci avatar Sep 23 '21 12:09 taos-ci

INFO: You can read if there are misspelled characters at our misspelling check report. Please read http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109232125580.1346960067749-b814d2c0f5438a856e351649df3f8be8b1366d14/report/.

taos-ci avatar Sep 23 '21 12:09 taos-ci

To contributor, We have used 'Signed-off-by:' notation by default to handle the license issues, that result from contributors. Note that 'Is there a Signed-off-by line?' is important because lawyers tell us we must have to it to cleanly maintain the open-source license issues even though it has nothing to do with the code itself.

taos-ci avatar Sep 23 '21 12:09 taos-ci

:octocat: cibot: @priyankmohanverma, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109232125580.1346960067749-b814d2c0f5438a856e351649df3f8be8b1366d14/.

taos-ci avatar Sep 23 '21 12:09 taos-ci

Thanks for your PR. But We recommend to write PR titles and comments to describe what changes included more clear and concise manner ( for example #1547 ). And also you need to add signed-off-by. ( Please check the feedback of CI. )

Also please read how to contribute

And you need to do the build test in your local machine or fix the build error shown in CI. ( CI do the build tests for tizen, ubuntu and android )

jijoongmoon avatar Sep 24 '21 03:09 jijoongmoon

We generate a report if there are dangerous coding constructs in your code. Please read http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109241638220.23050594329834-7a9a3462f0c4f6fbf33ff918c6b6697b3c8e61b8/report/.

taos-ci avatar Sep 24 '21 07:09 taos-ci

INFO: You can read if there are misspelled characters at our misspelling check report. Please read http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109241638220.23050594329834-7a9a3462f0c4f6fbf33ff918c6b6697b3c8e61b8/report/.

taos-ci avatar Sep 24 '21 07:09 taos-ci

:octocat: cibot: @priyankmohanverma, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109241638220.23050594329834-7a9a3462f0c4f6fbf33ff918c6b6697b3c8e61b8/.

taos-ci avatar Sep 24 '21 07:09 taos-ci

:octocat: cibot: @priyankmohanverma, Oooops. The commit has an invalid executable file. The file is Applications/SimpleShot/task_runner.cpp. Please turn the executable bits off. Run chmod 644 file-name command.

taos-ci avatar Sep 24 '21 08:09 taos-ci

:octocat: cibot: @priyankmohanverma, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109241733260.51850390434265-9499b0c776b409aa70d157c26b9cc4090ace802c/.

taos-ci avatar Sep 24 '21 08:09 taos-ci

We generate a report if there are dangerous coding constructs in your code. Please read http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109271543350.8039219379425-d8b045b9345fcbf05118529d7af6e6ae5e3e3abd/report/.

taos-ci avatar Sep 27 '21 06:09 taos-ci

INFO: You can read if there are misspelled characters at our misspelling check report. Please read http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109271543350.8039219379425-d8b045b9345fcbf05118529d7af6e6ae5e3e3abd/report/.

taos-ci avatar Sep 27 '21 06:09 taos-ci

:octocat: cibot: @priyankmohanverma, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202109271626360.61223697662354-2af9b1808f70d98d4ab9d7ff86f6d77c385619a1/.

taos-ci avatar Sep 27 '21 07:09 taos-ci

:octocat: cibot: @priyankmohanverma, A builder checker could not be completed because one of the checkers is not completed. In order to find out a reason, please go to http://nnstreamer.mooo.com/nntrainer/ci/repo-workers/pr-checker/1585-202110062102420.397784948349-2af9b1808f70d98d4ab9d7ff86f6d77c385619a1/.

taos-ci avatar Oct 06 '21 12:10 taos-ci