shadow-cann commited on
Commit
b4533cd
·
verified ·
1 Parent(s): 2032094

Add files using upload-large-folder tool

Browse files
1719774851694593_realquant_201909262051154_0.jpg ADDED
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - zh
4
+ tags:
5
+ - hisilicon
6
+ - hispark
7
+ - npu
8
+ - openharmony
9
+ - modelzoo
10
+ - pytorch
11
+ ---
12
+
13
+ # TinySam
14
+
15
+ TinySAM 通过全阶段知识蒸馏、在线硬提示采样、量化等系列优化策略,构建轻量级 “万物分割” 模型,解决了原始 SAM 模型计算量大、部署困难的痛点,助力高效分割任务在资源受限场景下的应用。
16
+
17
+ ## Mirror Metadata
18
+
19
+ - Hugging Face repo: shadow-cann/hispark-modelzoo-tinysam
20
+ - Portal model id: i9t43v4pec00
21
+ - Created at: 2025-12-26 16:38:13
22
+ - Updated at: 2025-12-30 20:02:17
23
+ - Category: 计算机视觉
24
+
25
+ ## Framework
26
+
27
+ - PyTorch
28
+
29
+ ## Supported OS
30
+
31
+ - OpenHarmony
32
+ - Linux
33
+
34
+ ## Computing Power
35
+
36
+ - Hi3403V100 SVP_NNN
37
+
38
+ ## Tags
39
+
40
+ - 分割
41
+
42
+ ## Detail Parameters
43
+
44
+ - 输入: 448*448
45
+ - 参数量: 5.739M
46
+ - 计算量: 15.423GFLOPs
47
+
48
+ ## Files In This Repo
49
+
50
+ - prompt_encoder_deploy_model.onnx (源模型 / 源模型下载; 源模型 / 源模型元数据)
51
+ - image_encoder_deploy_model.onnx (源模型 / 源模型下载; 源模型 / 源模型元数据)
52
+ - tinysam.pth (源模型 / 源模型下载; 源模型 / 源模型元数据)
53
+ - mask_decoder_deploy_model.onnx (源模型 / 源模型下载; 源模型 / 源模型元数据)
54
+ - SVP_NNN_PC_V1.0.6.0.tgz (附加资源 / 附加资源)
55
+
56
+ ## Upstream Links
57
+
58
+ - Portal card: https://gitbubble.github.io/hisilicon-developer-portal-mirror/model-detail.html?id=i9t43v4pec00
59
+ - Upstream repository: https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/segmentation/TinySam
60
+ - License reference: https://github.com/xinghaochen/TinySAM/blob/main/LICENSE
61
+
62
+ ## Notes
63
+
64
+ - This repository was mirrored from the HiSilicon Developer Portal model card and local downloads captured on 2026-03-27.
65
+ - File ownership follows the portal card mapping, not just filename similarity.
66
+ - Cover image: 1719774851694593_realquant_201909262051154_0.jpg
SVP_NNN_PC_V1.0.6.0.tgz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:536b103d08e9490f968207326798e1fc50ea4234888b73db729cd6e6a04c5d8b
3
+ size 31072256
image_encoder_deploy_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eba37b07c310782c2e718a6c2e92ee8c78bf062bb6a8eb91478efc7d9cba3204
3
+ size 10825872
mask_decoder_deploy_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ef3da9acde5c23398b654e74a0873657c5e5e7b87ff352fd6a764c099376148
3
+ size 4977575
model-card.json ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "TinySam",
3
+ "id": "i9t43v4pec00",
4
+ "description": "TinySAM 通过全阶段知识蒸馏、在线硬提示采样、量化等系列优化策略,构建轻量级 “万物分割” 模型,解决了原始 SAM 模型计算量大、部署困难的痛点,助力高效分割任务在资源受限场景下的应用。",
5
+ "category": "计算机视觉",
6
+ "framework": [
7
+ "PyTorch"
8
+ ],
9
+ "supportOs": [
10
+ "OpenHarmony",
11
+ "Linux"
12
+ ],
13
+ "computingPower": [
14
+ "Hi3403V100 SVP_NNN"
15
+ ],
16
+ "tags": [
17
+ "分割"
18
+ ],
19
+ "repositoryUrl": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/segmentation/TinySam",
20
+ "licenseUrl": "https://github.com/xinghaochen/TinySAM/blob/main/LICENSE",
21
+ "downloads": [
22
+ {
23
+ "fileName": "prompt_encoder_deploy_model.onnx",
24
+ "variants": [
25
+ "源模型 / 源模型下载",
26
+ "源模型 / 源模型元数据"
27
+ ]
28
+ },
29
+ {
30
+ "fileName": "image_encoder_deploy_model.onnx",
31
+ "variants": [
32
+ "源模型 / 源模型下载",
33
+ "源模型 / 源模型元数据"
34
+ ]
35
+ },
36
+ {
37
+ "fileName": "tinysam.pth",
38
+ "variants": [
39
+ "源模型 / 源模型下载",
40
+ "源模型 / 源模型元数据"
41
+ ]
42
+ },
43
+ {
44
+ "fileName": "mask_decoder_deploy_model.onnx",
45
+ "variants": [
46
+ "源模型 / 源模型下载",
47
+ "源模型 / 源模型元数据"
48
+ ]
49
+ },
50
+ {
51
+ "fileName": "SVP_NNN_PC_V1.0.6.0.tgz",
52
+ "variants": [
53
+ "附加资源 / 附加资源"
54
+ ]
55
+ }
56
+ ],
57
+ "apiDetail": {
58
+ "createdBy": 138418613601624,
59
+ "creationDate": "2025-12-26 16:38:13",
60
+ "creationUserCN": "ahau15",
61
+ "lastUpdatedBy": null,
62
+ "lastUpdateDate": "2025-12-30 20:02:17",
63
+ "lastUpdateUserCN": "ahau15",
64
+ "rowIdx": -1,
65
+ "id": "i9t43v4pec00",
66
+ "name": "TinySam",
67
+ "isBeta": 1,
68
+ "betaVersionDesc": "模型性能待优化",
69
+ "description": "TinySAM 通过全阶段知识蒸馏、在线硬提示采样、量化等系列优化策略,构建轻量级 “万物分割” 模型,解决了原始 SAM 模型计算量大、部署困难的痛点,助力高效分割任务在资源受限场景下的应用。",
70
+ "parentId": "i9t43v4pec00",
71
+ "coverImageId": 1719774851694593,
72
+ "coverImageUrl": "https://openxinhuo-board-image.obs.cn-east-3.myhuaweicloud.com/1719774851694593%2Frealquant_201909262051154_0.jpg",
73
+ "modelEffectId": null,
74
+ "modelEffectUrl": "",
75
+ "computerVersion": [
76
+ "分割"
77
+ ],
78
+ "naturalLanguageProcess": [],
79
+ "multimodal": [],
80
+ "video": [],
81
+ "framework": [
82
+ "PyTorch"
83
+ ],
84
+ "modelRepository": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/segmentation/TinySam",
85
+ "originModel": [
86
+ {
87
+ "id": "1719775025758211",
88
+ "name": "prompt_encoder_deploy_model.onnx",
89
+ "url": null,
90
+ "size": "5458"
91
+ },
92
+ {
93
+ "id": "1719775025758212",
94
+ "name": "image_encoder_deploy_model.onnx",
95
+ "url": null,
96
+ "size": "10825872"
97
+ },
98
+ {
99
+ "id": "1719775025758210",
100
+ "name": "tinysam.pth",
101
+ "url": null,
102
+ "size": "40708627"
103
+ },
104
+ {
105
+ "id": "1719775080284161",
106
+ "name": "mask_decoder_deploy_model.onnx",
107
+ "url": null,
108
+ "size": "4977575"
109
+ }
110
+ ],
111
+ "originModelLink": null,
112
+ "dataSet": "https://cocodataset.org/#download",
113
+ "modelLicense": "https://github.com/xinghaochen/TinySAM/blob/main/LICENSE",
114
+ "detailParams": [
115
+ {
116
+ "name": "输入",
117
+ "value": "448*448"
118
+ },
119
+ {
120
+ "name": "参数量",
121
+ "value": "5.739M"
122
+ },
123
+ {
124
+ "name": "计算量",
125
+ "value": "15.423GFLOPs"
126
+ }
127
+ ],
128
+ "quickStart": {
129
+ "url": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/segmentation/TinySam/",
130
+ "markDownUrl": null,
131
+ "developLanguage": [
132
+ {
133
+ "language": "C++",
134
+ "context": "{\"ops\":[{\"insert\":\"TinySam模型可以通过以下代码完成快速推理\\n#include \\\"sam_predictor.h\\\"\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\\n\"},{\"insert\":\"using namespace Infer;\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\\n\"},{\"insert\":\"int main()\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"{\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"    EnvInit();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"    SAMBoxPredictor predictor;\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"    predictor.loadModel(modelPaths);\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"    predictor.setImage(image); // 编码图像数据\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"    predictor.predict(boxes); // 设置检测��进行分割模型掩码解码\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"    EnvDeinit();\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"    return 0;\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"}\"},{\"attributes\":{\"code-block\":\"plain\"},\"insert\":\"\\n\"},{\"insert\":\"备注:上述C++代码依赖的动态库与文件位于\"},{\"attributes\":{\"link\":\"https://gitee.com/HiSpark/modelzoo/tree/master/samples/common\"},\"insert\":\"/samples/common\"},{\"insert\":\"目录下,编译相关配置参考\"},{\"attributes\":{\"link\":\"https://gitee.com/HiSpark/modelzoo/blob/master/samples/built-in/segmentation/TinySam/src/CMakeLists.txt\"},\"insert\":\"CMakeLists.txt\"},{\"insert\":\"。\\n\\n\"}]}"
135
+ }
136
+ ]
137
+ },
138
+ "status": "released",
139
+ "currentHandler": "",
140
+ "currentHandlerName": "",
141
+ "jsonPath": "https://gitee.com/HiSpark/modelzoo-dev/blob/master/samples/built-in/classification/DenseNet121/DenseNet121.json",
142
+ "modelAdaptor": [
143
+ {
144
+ "createdBy": null,
145
+ "creationDate": null,
146
+ "creationUserCN": null,
147
+ "lastUpdatedBy": null,
148
+ "lastUpdateDate": null,
149
+ "lastUpdateUserCN": null,
150
+ "rowIdx": -1,
151
+ "id": "i8ttm5k1tc00",
152
+ "name": "Hi3403V100 SVP_NNN",
153
+ "modelId": "i9t43v4pec00",
154
+ "modelName": "TinySam",
155
+ "supportNames": [
156
+ "a8w8"
157
+ ],
158
+ "toolkit": [
159
+ {
160
+ "name": "CANN配置",
161
+ "url": "https://hispark-obs.obs.cn-east-3.myhuaweicloud.com/SVP_NNN_PC_V1.0.6.0.tgz",
162
+ "desc": "Al异构计算架构;提升计算效率的关键平台",
163
+ "imgId": "cann"
164
+ },
165
+ {
166
+ "name": "编译工具库",
167
+ "url": "https://gitee.com/HiSpark/pegasus/blob/Beta-v0.9.1/docs/Hi3403V100%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E6%8C%87%E5%8D%97/Hi3403V100%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E6%8C%87%E5%8D%97.md",
168
+ "desc": "高效编译,精准适配;AI性能优化,应用流畅运行",
169
+ "imgId": "tool"
170
+ },
171
+ {
172
+ "name": "SDK",
173
+ "url": "https://gitee.com/HiSpark/ss928v100_clang/tree/Beta-v0.9.1/",
174
+ "desc": "稳定、易用的设计;支撑客户快速产品量产",
175
+ "imgId": "sdk"
176
+ }
177
+ ],
178
+ "supportOs": [
179
+ "OpenHarmony",
180
+ "Linux"
181
+ ],
182
+ "supportQuantify": [
183
+ {
184
+ "createdBy": 132241120926760,
185
+ "creationDate": "2026-03-26 19:58:35",
186
+ "creationUserCN": "liaoshibin",
187
+ "lastUpdatedBy": 132241120926760,
188
+ "lastUpdateDate": "2026-03-26 19:58:35",
189
+ "lastUpdateUserCN": "liaoshibin",
190
+ "rowIdx": -1,
191
+ "id": "j6th29kstk00",
192
+ "name": "a8w8",
193
+ "computingId": "i8ttm5k1tc00",
194
+ "computingName": "Hi3403V100 SVP_NNN",
195
+ "omOfflineModelUrl": null,
196
+ "omOfflineModelId": 1719805822435329,
197
+ "omOfflineModelSize": "10573427",
198
+ "omOfflineModelName": "tinysam改后缀为zip解压后使用.om",
199
+ "omOfflineModel": [
200
+ {
201
+ "id": "1719805822435329",
202
+ "name": "tinysam改后缀为zip解压后使用.om",
203
+ "url": null,
204
+ "size": "10573427"
205
+ }
206
+ ],
207
+ "omOfflineModelLink": null,
208
+ "releaseTime": "2025-12-26",
209
+ "boardOs": null,
210
+ "modelLicense": "https://gitee.com/HiSpark/modelzoo/tree/master/samples/built-in/segmentation/TinySam/LICENSE",
211
+ "modelPerformance": [
212
+ {
213
+ "performanceValue": "250.58",
214
+ "unit": "耗时(ms)",
215
+ "desc": null
216
+ },
217
+ {
218
+ "performanceValue": "3.99",
219
+ "unit": "性能(fps)",
220
+ "desc": ""
221
+ },
222
+ {
223
+ "performanceValue": "330.25",
224
+ "unit": "单帧内存带宽(MB)",
225
+ "desc": ""
226
+ },
227
+ {
228
+ "performanceValue": "32.442",
229
+ "unit": "内存(MB)",
230
+ "desc": ""
231
+ }
232
+ ],
233
+ "deleted": 0
234
+ }
235
+ ],
236
+ "deleted": 0
237
+ }
238
+ ],
239
+ "saveType": null,
240
+ "deleteType": null,
241
+ "latest": "Y",
242
+ "deleted": 0,
243
+ "modelPhase": "released",
244
+ "remark": null,
245
+ "fileInfo": null,
246
+ "reviewType": null,
247
+ "owner": "ahau15",
248
+ "ownerBy": 138418613601624,
249
+ "optional": null,
250
+ "optionalList": [
251
+ "whalenowings",
252
+ "0e900d99dee8461b8"
253
+ ],
254
+ "optionalBy": null,
255
+ "downloadNum": 11,
256
+ "collectNum": null,
257
+ "isCollect": null
258
+ }
259
+ }
prompt_encoder_deploy_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7a2f42d2a1a1feb4e6034baa17c16816a637607abe5db59fface86efe6af7cc
3
+ size 5458
tinysam.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b8edcf93af46e2a658ae455574de62873778a5cc3fd8e8adf094dcdfa957cf2
3
+ size 40708627