init: tianyan-edge edge agent with Ascend NPU inference backend
- Go main process: stream ingestor, infer client, event uploader, heartbeat, config agent, OTA agent - Python inference server rewritten to use CANN ACL (acl module) replacing ultralytics/PyTorch; supports YOLOv8 raw and YOLOv10 NMS-free output formats via OUTPUT_FORMAT env var - systemd services for edge-agent and edge-infer - build/install/package scripts targeting arm64 Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
19
scripts/package-usb.sh
Normal file
19
scripts/package-usb.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
DIST_DIR="$ROOT_DIR/dist"
|
||||
PKG_NAME="tianyan-edge-$(date +%Y%m%d-%H%M%S)"
|
||||
PKG_DIR="$DIST_DIR/$PKG_NAME"
|
||||
|
||||
mkdir -p "$PKG_DIR"
|
||||
cp -r "$ROOT_DIR/build" "$PKG_DIR/"
|
||||
cp -r "$ROOT_DIR/python" "$PKG_DIR/"
|
||||
cp -r "$ROOT_DIR/systemd" "$PKG_DIR/"
|
||||
cp -r "$ROOT_DIR/config" "$PKG_DIR/"
|
||||
cp -r "$ROOT_DIR/scripts/install.sh" "$ROOT_DIR/scripts/uninstall.sh" "$PKG_DIR/"
|
||||
|
||||
cd "$DIST_DIR"
|
||||
tar -czf "$PKG_NAME.tar.gz" "$PKG_NAME"
|
||||
|
||||
echo "usb package ready: $DIST_DIR/$PKG_NAME.tar.gz"
|
||||
Reference in New Issue
Block a user