Prepare pi-cross
Pull the arch you need from pi-cross. In this example, aarch64,
bullseye and g++ 10.2.0 are uesd for rpi 4 bullseye 64 bit os.
docker pull wesleych3n/pi-cross:arm64-bullseye-10.2.0
Create helper script and grant it execution privilege
docker run --rm wesleych3n/pi-cross:arm64-bullseye-10.2.0 > ./arm64-10.2.0
chmod +x ./arm64-10.2.0
WesleyCh3n changed 3 years agoView mode Like Bookmark
What is singleton
Singleton是整個類別(class)只會有一個實例(instance)存在,有利於系統控制整體的行為。
According to wiki:
The singleton design pattern solves problems by allowing it to:
Ensure that a class only has one instance
Easily access the sole instance of a class
Control its instantiation
WesleyCh3n changed 3 years agoView mode Like Bookmark
Overview
In train_*.py, it mainly contain the following parts:
Dataset: tf.data.Dataset
Model: tf.keras.models.Model
Model Structure
Training loop
Loss
WesleyCh3n changed 3 years agoView mode Like Bookmark
Reference
Calculate anchor box with different ratio
./darknet detector calc_anchors \
data/obj.data \
-num_of_clusters 7 \
-width 416 -height 416
edit .cfg corresponding to the numbers of anchor boxes
WesleyCh3n changed 3 years agoView mode Like Bookmark
Step 1. Remove older version of CUDA/CuDNN
Go to /usr/local/ see if there are any cuda-x.x folder. Then remove it with:
sudo rm -rf /usr/local/cuda-x.x/
Step 2. Install CUDA
Download from https://developer.nvidia.com/cuda-toolkit
Choose the way with your environment,
WesleyCh3n changed 3 years agoView mode Like Bookmark
Overview
Baseline Model Training
In baseline model training, we use Source domain dataset (
).
1. Weight Initialization: Cross-Entropy Loss
Edit exp/sample_experiment/baseline_softmax/params.py
WesleyCh3n changed 3 years agoView mode Like Bookmark
Reference
In this example, we use the following configuration
Server
Wireguard ip: 10.112.0.1
Wireguard external port: 51871
Wireguard public key: rcflbneYW/3wVQy8H/jDi/oGlLgyrC4vmJvt4YJOVmw=
Wireguard private key: yBo18fnFVjKrRS0dfH0DDehGrVBH1aDaZValIwdEW1I=
WesleyCh3n changed 3 years agoView mode Like Bookmark
Pods
2 Pods will be created in each node.
Stream pod: stream.t.yml
Backup image pods: backup.t.yml
stream.t.yml
This pod run ntu-iot-node and pass the arguments it used.
Mount Path:
WesleyCh3n changed 3 years agoView mode Like Bookmark
This is NTU BME MS thesis project. The purpose of this project is using edge
device (Rpi) to monitoring dairy cow feeding behavior. The code is focus on
streaming also recognizing individual cow faces by edge computing (with
Tensorflow Lite etc).
This repo contains c++ and python version. The python version is deprecated, but still
usable(in python branch). The main program uses c++.
Usage
$ ntu-node -h
WesleyCh3n changed 3 years agoView mode Like Bookmark
Overview
Introduction
This is NTU BME MS thesis project backend setting. Include several services:
Control:
k3s: Control running services in nodes.
Ansible: Update/Upgrade running program or configuration.
WireGuard: VPN service for communication between server and nodes.
WesleyCh3n changed 3 years agoView mode Like 1 Bookmark