Coder Social home page Coder Social logo

k210-tracking's Introduction

Kendryte K210 Animal Tracking

Kendryte Standalone SDK

Demo

demo

Analysis tool

Now available TrackingAnalyze

Train

Train yolo model using darknet or this repo.

To conver your keras model to kmodel, MaixPy_scripts or nncase can be used.

First prepare your yolo.h5 file, then

tflite_convert --keras_model_file=yolo.h5 --output_file=yolo.tflite
./tflite2kmodel.sh yolo.tflite

Usage

Compile

  • Ubuntu

Download RISC-V 64bit toolchain for Kendryte K210_ubuntu_amd64 from https://kendryte.com/downloads/.

Extract it to /opt/riscv-toolchain, and add export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/riscv-toolchain/bin/ to bashrc.

mkdir build && cd build
cmake .. -DPROJ=yolo3_frame_test_public_maixpy -DTOOLCHAIN=/opt/riscv-toolchain/bin && make
  • Windows

Download and install CMake and the latest toolchain.

mkdir build && cd build
cmake -G "MinGW Makefiles" .. -DPROJ=yolo3_frame_test_public_maixpy -DTOOLCHAIN=/path/to/toolchain/bin
make

flash

You will get yolo3_frame_test_public_maixpy.bin.

If you want to flash it in UOG, using yolo3_frame_test_public_maixpy.bin, then using flash-tool(s) burn it to your flash.

sudo kflash yolo3_frame_test_public_maixpy.bin -B dockE -p /dev/ttyUSB0 -b 3000000 -t

You may want to flash your bin and model toghther with kfpkg

cp ../src/yolo3_frame_test_public_maixpy/kfpkg/kpu_yolov3.kfpkg .
zip kpu_yolov3.kfpkg yolo.kmodel yolo3_frame_test_public_maixpy.bin
sudo kflash kpu_yolov3.kfpkg -B dockE -p /dev/ttyUSB0 -b 3000000 -t

Credit

k210-tracking's People

Contributors

zyayoung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

k210-tracking's Issues

Pretrained model (or documenting how to train it)

Missing feature

The pretrained model, or documentation about it.

Justification

It'd be useful to have the pretrained model detecting people (as in the image in the readme).

  • Partly so this code can be run quickly on the K210 to test e.g. FPS.
  • Even better - so it can be used directly for detecting people (or whatever else the model detects).

Workarounds

Alternatively, documentation of how the model was trained. The current docs imply it's yolo, but here implies it's 'modilenet yolov3 alpha=0.75' which I think may come from https://github.com/zhen8838/K210_Yolo_framework ? Making this clearer (and the data used, etc.) would be an easier step than making the model available.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.