Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions general/package/cpu-models/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ config BR2_PACKAGE_CPU_MODELS
bool "cpu-models"
default n
help
The person detector majestic's object detection runs on the CPU of
cameras without an NPU (HiSilicon/Goke parts with the IVE motion
backend): an int8 network majestic's own engine loads from
/usr/share/majestic/person.pdnet, with the thresholds of its three
presets beside it in person.json. 84 KB. MIT.
The int8 networks majestic's own engine runs on the CPU, in
/usr/share/majestic:
- person.qnet, the person detector its object detection runs on
cameras without an NPU (HiSilicon/Goke parts with the IVE motion
backend), with the thresholds of its three presets beside it in
person.json;
- drum.qnet, which reads the drums of a water, gas or electricity
meter for its meter reading.
134 KB together. MIT.

https://github.com/OpenIPC/cpu-models
5 changes: 3 additions & 2 deletions general/package/cpu-models/cpu-models.hash
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# From https://github.com/OpenIPC/cpu-models/releases/download/v1/SHA256SUMS
sha256 cc6c16ca4a9c927a3b86ea75d65c2081991a9e7d91a83da2f66a15f8252b426e person.pdnet
# From https://github.com/OpenIPC/cpu-models/releases/download/v2/SHA256SUMS
sha256 e09530b3a91eb7bf494d96e0a7896326e27ac962e6703ea993d7faa24ace25c6 person.qnet
sha256 6a95be78d14b4d98935b297e6835327e723f29d4f422cc339008b59916281464 person.json
sha256 4e2056686091c067ef31401e32ca9bc136c001fae37f9235e9042125e8d8c8ed drum.qnet
13 changes: 8 additions & 5 deletions general/package/cpu-models/cpu-models.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,25 @@
# Built and published by that repository's release workflow, never by hand:
# each asset traces to the commit and run that built it, and the release
# checked the engine against the model's reference arithmetic first.
CPU_MODELS_VERSION = v1
CPU_MODELS_VERSION = v2
CPU_MODELS_SITE = https://github.com/OpenIPC/cpu-models/releases/download/$(CPU_MODELS_VERSION)
CPU_MODELS_SOURCE = person.pdnet
CPU_MODELS_SOURCE = person.qnet
Comment thread
widgetii marked this conversation as resolved.
# The thresholds behind majestic's object-detection presets for this model,
# read beside it.
CPU_MODELS_EXTRA_DOWNLOADS = person.json
# read beside it; and the drum model majestic's meter reading classifies
# each drum of a utility meter with.
CPU_MODELS_EXTRA_DOWNLOADS = person.json drum.qnet
CPU_MODELS_LICENSE = MIT

define CPU_MODELS_EXTRACT_CMDS
cp $(addprefix $(CPU_MODELS_DL_DIR)/,$(CPU_MODELS_SOURCE) $(CPU_MODELS_EXTRA_DOWNLOADS)) $(@D)/
endef

define CPU_MODELS_INSTALL_TARGET_CMDS
# v1's blob, which the engine no longer reads, out of a reused target
rm -f $(TARGET_DIR)/usr/share/majestic/person.pdnet
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/share/majestic
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/share/majestic \
$(@D)/person.pdnet $(@D)/person.json
$(@D)/person.qnet $(@D)/person.json $(@D)/drum.qnet
Comment thread
qodo-free-for-open-source-projects[bot] marked this conversation as resolved.
endef

$(eval $(generic-package))
Loading