YakumoAkayi commited on
Commit
a81985e
·
verified ·
1 Parent(s): 78cf18e

Agora board builds (Model Farm, verified on real boards)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,7 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ targets/QCS6490/W8A16/decoder.ctx.bin.aidem filter=lfs diff=lfs merge=lfs -text
37
+ targets/QCS6490/W8A16/visual.ctx.bin.aidem filter=lfs diff=lfs merge=lfs -text
38
+ targets/QCS8550/W8A16/decoder.ctx.bin.aidem filter=lfs diff=lfs merge=lfs -text
39
+ targets/QCS8550/W8A16/visual.ctx.bin.aidem filter=lfs diff=lfs merge=lfs -text
LICENSE_MODEL_FARM.pdf ADDED
Binary file (71.1 kB). View file
 
NOTICE.md ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Provenance
2
+
3
+ Resources are copied without binary changes from the APLUX Model Farm build `CLIPSeg` that Agora verified on real boards (decoded sample check, then measured), pinned by sha256 in SHA256SUMS.
4
+
5
+ Agora arranges files under targets/<SoC>/<precision>/ and adds model.json. AidLite, AidGen, AidVoice and the Qualcomm QNN runtime are separate dependencies with their own terms.
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: aplux-model-farm
4
+ license_link: https://huggingface.co/APLUX-Agora/CLIPSeg/blob/main/LICENSE_MODEL_FARM.pdf
5
+ pipeline_tag: image-segmentation
6
+ tags: [Agora, QNN, AIoT, Qualcomm]
7
+ ---
8
+
9
+ # CLIPSeg model resources
10
+
11
+ 按英文目标描述分割图片,返回原图大小的掩码和完整特征。
12
+
13
+ Board builds that [Agora](https://mega.aidlux.com) runs and measures on real Qualcomm boards. Try it online, without a board: https://mega.aidlux.com/models/clipseg
14
+
15
+ | SoC · board | Precisions | Measured on Agora (default precision) |
16
+ | --- | --- | --- |
17
+ | QCS8550 · 犀牛派 X1 (Rhino Pi X1) | W8A16 | 61.0 ms |
18
+ | QCS6490 · 犀牛派 A1 (Rhino Pi A1) | W8A16 | 211.0 ms |
19
+
20
+ Task: 分割. Inputs: image (image), text (text). Outputs: masks (masks), out (json).
21
+
22
+ ## Download
23
+
24
+ ```bash
25
+ export AGORA_WORKSPACE="$HOME/my-clipseg"
26
+ export AGORA_SOC='QCS8550'
27
+ hf download APLUX-Agora/CLIPSeg \
28
+ --include "targets/$AGORA_SOC/*" --local-dir "$AGORA_WORKSPACE/resources"
29
+ ```
30
+
31
+ Each `targets/<SoC>/` holds `model.json` (default precision and variant paths) and one directory per precision. Context binaries are named `model.bin`; multi-file packages are kept as published by Model Farm.
32
+
33
+ Pre- and post-processing, the runner and an exported project: open the model on Agora and choose “部署指南”, or export any workflow that uses it.
34
+
35
+ ## Licence and provenance
36
+
37
+ Source model licence: see the original model's terms.
38
+ Converted, deployable resources: APLUX Model Farm License (LICENSE_MODEL_FARM.pdf). See NOTICE.md and SHA256SUMS.
SHA256SUMS ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 144a143f84b117dc0b7b37b75edc4057256b22ca61195bdb6266cf701cb4c8ad targets/QCS6490/W8A16/composite.json
2
+ de9df12b2b3fc61f1d5050c8fe1900ca9148deed7842133d68397671e22454be targets/QCS6490/W8A16/decoder.ctx.bin.aidem
3
+ 9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a targets/QCS6490/W8A16/merges.txt
4
+ 4fb09ebcfd7651205ca8299b993c30088e5535ef350a72d46c5c4580eeac0440 targets/QCS6490/W8A16/preprocessor.json
5
+ 2286c1fe27d35cf56a0d6c1820c68c07d7a3377baf3d3853f2e8241a084ed429 targets/QCS6490/W8A16/text.onnx
6
+ 6ffd501cd89b0d8f84c8fed1b790bab13ae0487f0f470fc73c3a872253750888 targets/QCS6490/W8A16/visual.ctx.bin.aidem
7
+ e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349 targets/QCS6490/W8A16/vocabulary.json
8
+ 2e95a15c995b3c12a342a050c93866115acf8c20c6b3bf862cbd4dccf288b08d targets/QCS8550/W8A16/composite.json
9
+ 1b9d62fa9c48f5d5eaddddbe8f7cc2b4d43ee2e4816ea51ec62a8942ef8176cf targets/QCS8550/W8A16/decoder.ctx.bin.aidem
10
+ 9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a targets/QCS8550/W8A16/merges.txt
11
+ 4fb09ebcfd7651205ca8299b993c30088e5535ef350a72d46c5c4580eeac0440 targets/QCS8550/W8A16/preprocessor.json
12
+ 2286c1fe27d35cf56a0d6c1820c68c07d7a3377baf3d3853f2e8241a084ed429 targets/QCS8550/W8A16/text.onnx
13
+ da832a2020e8abb8c476856c26e8c037547e4000c914d8ad21d16dfd8d3b3a4a targets/QCS8550/W8A16/visual.ctx.bin.aidem
14
+ e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349 targets/QCS8550/W8A16/vocabulary.json
targets/QCS6490/W8A16/composite.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "assets": {
3
+ "merges": "merges.txt",
4
+ "preprocessor": "preprocessor.json",
5
+ "vocabulary": "vocabulary.json"
6
+ },
7
+ "components": {
8
+ "decoder": "decoder.ctx.bin.aidem",
9
+ "text": "text.onnx",
10
+ "visual": "visual.ctx.bin.aidem"
11
+ },
12
+ "kind": "clipseg",
13
+ "source": {
14
+ "files": [
15
+ {
16
+ "path": "models/QCS6490/W8A16/clipseg_352_image_qcs6490_w8a16.qnn231.ctx.bin.aidem",
17
+ "sha256": "6ffd501cd89b0d8f84c8fed1b790bab13ae0487f0f470fc73c3a872253750888",
18
+ "size": 80640536
19
+ },
20
+ {
21
+ "path": "models/QCS6490/W8A16/clipseg_352_decoder_qcs6490_w8a16.qnn231.ctx.bin.aidem",
22
+ "sha256": "de9df12b2b3fc61f1d5050c8fe1900ca9148deed7842133d68397671e22454be",
23
+ "size": 1571954
24
+ },
25
+ {
26
+ "path": "models/QCS6490/W8A16/clipseg_352_text_int8.onnx",
27
+ "sha256": "2286c1fe27d35cf56a0d6c1820c68c07d7a3377baf3d3853f2e8241a084ed429",
28
+ "size": 67807017
29
+ },
30
+ {
31
+ "path": "code/python/clipseg_rd64_refined/merges.txt",
32
+ "sha256": "9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a",
33
+ "size": 524619
34
+ },
35
+ {
36
+ "path": "code/python/clipseg_rd64_refined/vocab.json",
37
+ "sha256": "e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349",
38
+ "size": 1059962
39
+ },
40
+ {
41
+ "path": "code/python/clipseg_rd64_refined/preprocessor_config.json",
42
+ "sha256": "4fb09ebcfd7651205ca8299b993c30088e5535ef350a72d46c5c4580eeac0440",
43
+ "size": 380
44
+ }
45
+ ],
46
+ "projectId": 1254,
47
+ "ref": "d59adbba14ec959ea61503d74a018952f505169f"
48
+ },
49
+ "version": 1
50
+ }
targets/QCS6490/W8A16/decoder.ctx.bin.aidem ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de9df12b2b3fc61f1d5050c8fe1900ca9148deed7842133d68397671e22454be
3
+ size 1571954
targets/QCS6490/W8A16/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
targets/QCS6490/W8A16/preprocessor.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "feature_extractor_type": "ViTImageProcessor",
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "processor_class": "CLIPSegProcessor",
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 352,
21
+ "width": 352
22
+ }
23
+ }
targets/QCS6490/W8A16/text.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2286c1fe27d35cf56a0d6c1820c68c07d7a3377baf3d3853f2e8241a084ed429
3
+ size 67807017
targets/QCS6490/W8A16/visual.ctx.bin.aidem ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ffd501cd89b0d8f84c8fed1b790bab13ae0487f0f470fc73c3a872253750888
3
+ size 80640536
targets/QCS6490/W8A16/vocabulary.json ADDED
The diff for this file is too large to render. See raw diff
 
targets/QCS6490/model.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "soc": "QCS6490",
3
+ "default_precision": "W8A16",
4
+ "variants": {
5
+ "W8A16": "W8A16/"
6
+ }
7
+ }
targets/QCS8550/W8A16/composite.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "assets": {
3
+ "merges": "merges.txt",
4
+ "preprocessor": "preprocessor.json",
5
+ "vocabulary": "vocabulary.json"
6
+ },
7
+ "components": {
8
+ "decoder": "decoder.ctx.bin.aidem",
9
+ "text": "text.onnx",
10
+ "visual": "visual.ctx.bin.aidem"
11
+ },
12
+ "kind": "clipseg",
13
+ "source": {
14
+ "files": [
15
+ {
16
+ "path": "models/QCS8550/W8A16/clipseg_352_image_qcs8550_w8a16.qnn231.ctx.bin.aidem",
17
+ "sha256": "da832a2020e8abb8c476856c26e8c037547e4000c914d8ad21d16dfd8d3b3a4a",
18
+ "size": 78477849
19
+ },
20
+ {
21
+ "path": "models/QCS8550/W8A16/clipseg_352_decoder_qcs8550_w8a16.qnn231.ctx.bin.aidem",
22
+ "sha256": "1b9d62fa9c48f5d5eaddddbe8f7cc2b4d43ee2e4816ea51ec62a8942ef8176cf",
23
+ "size": 1604659
24
+ },
25
+ {
26
+ "path": "models/QCS8550/W8A16/clipseg_352_text_int8.onnx",
27
+ "sha256": "2286c1fe27d35cf56a0d6c1820c68c07d7a3377baf3d3853f2e8241a084ed429",
28
+ "size": 67807017
29
+ },
30
+ {
31
+ "path": "code/python/clipseg_rd64_refined/merges.txt",
32
+ "sha256": "9fd691f7c8039210e0fced15865466c65820d09b63988b0174bfe25de299051a",
33
+ "size": 524619
34
+ },
35
+ {
36
+ "path": "code/python/clipseg_rd64_refined/vocab.json",
37
+ "sha256": "e089ad92ba36837a0d31433e555c8f45fe601ab5c221d4f607ded32d9f7a4349",
38
+ "size": 1059962
39
+ },
40
+ {
41
+ "path": "code/python/clipseg_rd64_refined/preprocessor_config.json",
42
+ "sha256": "4fb09ebcfd7651205ca8299b993c30088e5535ef350a72d46c5c4580eeac0440",
43
+ "size": 380
44
+ }
45
+ ],
46
+ "projectId": 1254,
47
+ "ref": "d59adbba14ec959ea61503d74a018952f505169f"
48
+ },
49
+ "version": 1
50
+ }
targets/QCS8550/W8A16/decoder.ctx.bin.aidem ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b9d62fa9c48f5d5eaddddbe8f7cc2b4d43ee2e4816ea51ec62a8942ef8176cf
3
+ size 1604659
targets/QCS8550/W8A16/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
targets/QCS8550/W8A16/preprocessor.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "feature_extractor_type": "ViTImageProcessor",
6
+ "image_mean": [
7
+ 0.485,
8
+ 0.456,
9
+ 0.406
10
+ ],
11
+ "image_std": [
12
+ 0.229,
13
+ 0.224,
14
+ 0.225
15
+ ],
16
+ "processor_class": "CLIPSegProcessor",
17
+ "resample": 2,
18
+ "rescale_factor": 0.00392156862745098,
19
+ "size": {
20
+ "height": 352,
21
+ "width": 352
22
+ }
23
+ }
targets/QCS8550/W8A16/text.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2286c1fe27d35cf56a0d6c1820c68c07d7a3377baf3d3853f2e8241a084ed429
3
+ size 67807017
targets/QCS8550/W8A16/visual.ctx.bin.aidem ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da832a2020e8abb8c476856c26e8c037547e4000c914d8ad21d16dfd8d3b3a4a
3
+ size 78477849
targets/QCS8550/W8A16/vocabulary.json ADDED
The diff for this file is too large to render. See raw diff
 
targets/QCS8550/model.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "soc": "QCS8550",
3
+ "default_precision": "W8A16",
4
+ "variants": {
5
+ "W8A16": "W8A16/"
6
+ }
7
+ }