HanzoHuang commited on
Commit
ea58fa4
·
verified ·
1 Parent(s): cb6db10
LICENSE ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains free
18
+ software for all its users.
19
+
20
+ When we speak of free software, we are referring to freedom, not
21
+ price. Our General Public Licenses are designed to make sure that you
22
+ have the freedom to distribute copies of free software (and charge for
23
+ them if you wish), that you receive source code or can get it if you
24
+ want it, that you can change the software or use pieces of it in new
25
+ free programs, and that you know you can do these things.
26
+
27
+ Developers that use our General Public Licenses protect your rights
28
+ with two steps: (1) assert copyright on the software, and (2) offer
29
+ you this License which gives you legal permission to copy, distribute
30
+ and/or modify the software.
31
+
32
+ A secondary benefit of defending all users' freedom is that
33
+ improvements made in alternate versions of the program, if they
34
+ receive widespread use, become available for other developers to
35
+ incorporate. Many developers of free software are heartened and
36
+ encouraged by the resulting cooperation. However, in the case of
37
+ software used on network servers, this result may fail to come about.
38
+ The GNU General Public License permits making a modified version and
39
+ letting the public access it on a server without ever releasing its
40
+ source code to the public.
41
+
42
+ The GNU Affero General Public License is designed specifically to
43
+ ensure that, in such cases, the modified source code becomes available
44
+ to the community. It requires the operator of a network server to
45
+ provide the source code of the modified version running there to the
46
+ users of that server. Therefore, public use of a modified version, on
47
+ a publicly accessible server, gives the public access to the source
48
+ code of the modified version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is
52
+ a different license, not a version of the Affero GPL, but Affero has
53
+ released a new version of the Affero GPL which permits relicensing under
54
+ this license.
55
+
56
+ The precise terms and conditions for copying, distribution and
57
+ modification follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 0. Definitions.
62
+
63
+ "This License" refers to version 3 of the GNU Affero General Public License.
64
+
65
+ "Copyright" also means copyright-like laws that apply to other kinds of
66
+ works, such as semiconductor masks.
67
+
68
+ "The Program" refers to any copyrightable work licensed under this
69
+ License. Each licensee is addressed as "you". "Licensees" and
70
+ "recipients" may be individuals or organizations.
71
+
72
+ To "modify" a work means to copy from or adapt all or part of the work
73
+ in a fashion requiring copyright permission, other than the making of an
74
+ exact copy. The resulting work is called a "modified version" of the
75
+ earlier work or a work "based on" the earlier work.
76
+
77
+ A "covered work" means either the unmodified Program or a work based
78
+ on the Program.
79
+
80
+ To "propagate" a work means to do anything with it that, without
81
+ permission, would make you directly or secondarily liable for
82
+ infringement under applicable copyright law, except executing it on a
83
+ computer or modifying a private copy. Propagation includes copying,
84
+ distribution (with or without modification), making available to the
85
+ public, and in some countries other activities as well.
86
+
87
+ To "convey" a work means any kind of propagation that enables other
88
+ parties to make or receive copies. Mere interaction with a user through
89
+ a computer network, with no transfer of a copy, is not conveying.
90
+
91
+ An interactive user interface displays "Appropriate Legal Notices"
92
+ to the extent that it includes a convenient and prominently visible
93
+ feature that (1) displays an appropriate copyright notice, and (2)
94
+ tells the user that there is no warranty for the work (except to the
95
+ extent that warranties are provided), that licensees may convey the
96
+ work under this License, and how to view a copy of this License. If
97
+ the interface presents a list of user commands or options, such as a
98
+ menu, a prominent item in the list meets this criterion.
99
+
100
+ 1. Source Code.
101
+
102
+ The "source code" for a work means the preferred form of the work
103
+ for making modifications to it. "Object code" means any non-source
104
+ form of a work.
105
+
106
+ A "Standard Interface" means an interface that either is an official
107
+ standard defined by a recognized standards body, or, in the case of
108
+ interfaces specified for a particular programming language, one that
109
+ is widely used among developers working in that language.
110
+
111
+ The "System Libraries" of an executable work include anything, other
112
+ than the work as a whole, that (a) is included in the normal form of
113
+ packaging a Major Component, but which is not part of that Major
114
+ Component, and (b) serves only to enable use of the work with that
115
+ Major Component, or to implement a Standard Interface for which an
116
+ implementation is available to the public in source code form. A
117
+ "Major Component", in this context, means a major essential component
118
+ (kernel, window system, and so on) of the specific operating system
119
+ (if any) on which the executable work runs, or a compiler used to
120
+ produce the work, or an object code interpreter used to run it.
121
+
122
+ The "Corresponding Source" for a work in object code form means all
123
+ the source code needed to generate, install, and (for an executable
124
+ work) run the object code and to modify the work, including scripts to
125
+ control those activities. However, it does not include the work's
126
+ System Libraries, or general-purpose tools or generally available free
127
+ programs which are used unmodified in performing those activities but
128
+ which are not part of the work. For example, Corresponding Source
129
+ includes interface definition files associated with source files for
130
+ the work, and the source code for shared libraries and dynamically
131
+ linked subprograms that the work is specifically designed to require,
132
+ such as by intimate data communication or control flow between those
133
+ subprograms and other parts of the work.
134
+
135
+ The Corresponding Source need not include anything that users
136
+ can regenerate automatically from other parts of the Corresponding
137
+ Source.
138
+
139
+ The Corresponding Source for a work in source code form is that
140
+ same work.
141
+
142
+ 2. Basic Permissions.
143
+
144
+ All rights granted under this License are granted for the term of
145
+ copyright on the Program, and are irrevocable provided the stated
146
+ conditions are met. This License explicitly affirms your unlimited
147
+ permission to run the unmodified Program. The output from running a
148
+ covered work is covered by this License only if the output, given its
149
+ content, constitutes a covered work. This License acknowledges your
150
+ rights of fair use or other equivalent, as provided by copyright law.
151
+
152
+ You may make, run and propagate covered works that you do not
153
+ convey, without conditions so long as your license otherwise remains
154
+ in force. You may convey covered works to others for the sole purpose
155
+ of having them make modifications exclusively for you, or provide you
156
+ with facilities for running those works, provided that you comply with
157
+ the terms of this License in conveying all material for which you do
158
+ not control copyright. Those thus making or running the covered works
159
+ for you must do so exclusively on your behalf, under your direction
160
+ and control, on terms that prohibit them from making any copies of
161
+ your copyrighted material outside their relationship with you.
162
+
163
+ Conveying under any other circumstances is permitted solely under
164
+ the conditions stated below. Sublicensing is not allowed; section 10
165
+ makes it unnecessary.
166
+
167
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
168
+
169
+ No covered work shall be deemed part of an effective technological
170
+ measure under any applicable law fulfilling obligations under article
171
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
172
+ similar laws prohibiting or restricting circumvention of such
173
+ measures.
174
+
175
+ When you convey a covered work, you waive any legal power to forbid
176
+ circumvention of technological measures to the extent such circumvention
177
+ is effected by exercising rights under this License with respect to
178
+ the covered work, and you disclaim any intention to limit operation or
179
+ modification of the work as a means of enforcing, against the work's
180
+ users, your or third parties' legal rights to forbid circumvention of
181
+ technological measures.
182
+
183
+ 4. Conveying Verbatim Copies.
184
+
185
+ You may convey verbatim copies of the Program's source code as you
186
+ receive it, in any medium, provided that you conspicuously and
187
+ appropriately publish on each copy an appropriate copyright notice;
188
+ keep intact all notices stating that this License and any
189
+ non-permissive terms added in accord with section 7 apply to the code;
190
+ keep intact all notices of the absence of any warranty; and give all
191
+ recipients a copy of this License along with the Program.
192
+
193
+ You may charge any price or no price for each copy that you convey,
194
+ and you may offer support or warranty protection for a fee.
195
+
196
+ 5. Conveying Modified Source Versions.
197
+
198
+ You may convey a work based on the Program, or the modifications to
199
+ produce it from the Program, in the form of source code under the
200
+ terms of section 4, provided that you also meet all of these conditions:
201
+
202
+ a) The work must carry prominent notices stating that you modified
203
+ it, and giving a relevant date.
204
+
205
+ b) The work must carry prominent notices stating that it is
206
+ released under this License and any conditions added under section
207
+ 7. This requirement modifies the requirement in section 4 to
208
+ "keep intact all notices".
209
+
210
+ c) You must license the entire work, as a whole, under this
211
+ License to anyone who comes into possession of a copy. This
212
+ License will therefore apply, along with any applicable section 7
213
+ additional terms, to the whole of the work, and all its parts,
214
+ regardless of how they are packaged. This License gives no
215
+ permission to license the work in any other way, but it does not
216
+ invalidate such permission if you have separately received it.
217
+
218
+ d) If the work has interactive user interfaces, each must display
219
+ Appropriate Legal Notices; however, if the Program has interactive
220
+ interfaces that do not display Appropriate Legal Notices, your
221
+ work need not make them do so.
222
+
223
+ A compilation of a covered work with other separate and independent
224
+ works, which are not by their nature extensions of the covered work,
225
+ and which are not combined with it such as to form a larger program,
226
+ in or on a volume of a storage or distribution medium, is called an
227
+ "aggregate" if the compilation and its resulting copyright are not
228
+ used to limit the access or legal rights of the compilation's users
229
+ beyond what the individual works permit. Inclusion of a covered work
230
+ in an aggregate does not cause this License to apply to the other
231
+ parts of the aggregate.
232
+
233
+ 6. Conveying Non-Source Forms.
234
+
235
+ You may convey a covered work in object code form under the terms
236
+ of sections 4 and 5, provided that you also convey the
237
+ machine-readable Corresponding Source under the terms of this License,
238
+ in one of these ways:
239
+
240
+ a) Convey the object code in, or embodied in, a physical product
241
+ (including a physical distribution medium), accompanied by the
242
+ Corresponding Source fixed on a durable physical medium
243
+ customarily used for software interchange.
244
+
245
+ b) Convey the object code in, or embodied in, a physical product
246
+ (including a physical distribution medium), accompanied by a
247
+ written offer, valid for at least three years and valid for as
248
+ long as you offer spare parts or customer support for that product
249
+ model, to give anyone who possesses the object code either (1) a
250
+ copy of the Corresponding Source for all the software in the
251
+ product that is covered by this License, on a durable physical
252
+ medium customarily used for software interchange, for a price no
253
+ more than your reasonable cost of physically performing this
254
+ conveying of source, or (2) access to copy the
255
+ Corresponding Source from a network server at no charge.
256
+
257
+ c) Convey individual copies of the object code with a copy of the
258
+ written offer to provide the Corresponding Source. This
259
+ alternative is allowed only occasionally and noncommercially, and
260
+ only if you received the object code with such an offer, in accord
261
+ with subsection 6b.
262
+
263
+ d) Convey the object code by offering access from a designated
264
+ place (gratis or for a charge), and offer equivalent access to the
265
+ Corresponding Source in the same way through the same place at no
266
+ further charge. You need not require recipients to copy the
267
+ Corresponding Source along with the object code. If the place to
268
+ copy the object code is a network server, the Corresponding Source
269
+ may be on a different server (operated by you or a third party)
270
+ that supports equivalent copying facilities, provided you maintain
271
+ clear directions next to the object code saying where to find the
272
+ Corresponding Source. Regardless of what server hosts the
273
+ Corresponding Source, you remain obligated to ensure that it is
274
+ available for as long as needed to satisfy these requirements.
275
+
276
+ e) Convey the object code using peer-to-peer transmission, provided
277
+ you inform other peers where the object code and Corresponding
278
+ Source of the work are being offered to the general public at no
279
+ charge under subsection 6d.
280
+
281
+ A separable portion of the object code, whose source code is excluded
282
+ from the Corresponding Source as a System Library, need not be
283
+ included in conveying the object code work.
284
+
285
+ A "User Product" is either (1) a "consumer product", which means any
286
+ tangible personal property which is normally used for personal, family,
287
+ or household purposes, or (2) anything designed or sold for incorporation
288
+ into a dwelling. In determining whether a product is a consumer product,
289
+ doubtful cases shall be resolved in favor of coverage. For a particular
290
+ product received by a particular user, "normally used" refers to a
291
+ typical or common use of that class of product, regardless of the status
292
+ of the particular user or of the way in which the particular user
293
+ actually uses, or expects or is expected to use, the product. A product
294
+ is a consumer product regardless of whether the product has substantial
295
+ commercial, industrial or non-consumer uses, unless such uses represent
296
+ the only significant mode of use of the product.
297
+
298
+ "Installation Information" for a User Product means any methods,
299
+ procedures, authorization keys, or other information required to install
300
+ and execute modified versions of a covered work in that User Product from
301
+ a modified version of its Corresponding Source. The information must
302
+ suffice to ensure that the continued functioning of the modified object
303
+ code is in no case prevented or interfered with solely because
304
+ modification has been made.
305
+
306
+ If you convey an object code work under this section in, or with, or
307
+ specifically for use in, a User Product, and the conveying occurs as
308
+ part of a transaction in which the right of possession and use of the
309
+ User Product is transferred to the recipient in perpetuity or for a
310
+ fixed term (regardless of how the transaction is characterized), the
311
+ Corresponding Source conveyed under this section must be accompanied
312
+ by the Installation Information. But this requirement does not apply
313
+ if neither you nor any third party retains the ability to install
314
+ modified object code on the User Product (for example, the work has
315
+ been installed in ROM).
316
+
317
+ The requirement to provide Installation Information does not include a
318
+ requirement to continue to provide support service, warranty, or updates
319
+ for a work that has been modified or installed by the recipient, or for
320
+ the User Product in which it has been modified or installed. Access to a
321
+ network may be denied when the modification itself materially and
322
+ adversely affects the operation of the network or violates the rules and
323
+ protocols for communication across the network.
324
+
325
+ Corresponding Source conveyed, and Installation Information provided,
326
+ in accord with this section must be in a format that is publicly
327
+ documented (and with an implementation available to the public in
328
+ source code form), and must require no special password or key for
329
+ unpacking, reading or copying.
330
+
331
+ 7. Additional Terms.
332
+
333
+ "Additional permissions" are terms that supplement the terms of this
334
+ License by making exceptions from one or more of its conditions.
335
+ Additional permissions that are applicable to the entire Program shall
336
+ be treated as though they were included in this License, to the extent
337
+ that they are valid under applicable law. If additional permissions
338
+ apply only to part of the Program, that part may be used separately
339
+ under those permissions, but the entire Program remains governed by
340
+ this License without regard to the additional permissions.
341
+
342
+ When you convey a copy of a covered work, you may at your option
343
+ remove any additional permissions from that copy, or from any part of
344
+ it. (Additional permissions may be written to require their own
345
+ removal in certain cases when you modify the work.) You may place
346
+ additional permissions on material, added by you to a covered work,
347
+ for which you have or can give appropriate copyright permission.
348
+
349
+ Notwithstanding any other provision of this License, for material you
350
+ add to a covered work, you may (if authorized by the copyright holders of
351
+ that material) supplement the terms of this License with terms:
352
+
353
+ a) Disclaiming warranty or limiting liability differently from the
354
+ terms of sections 15 and 16 of this License; or
355
+
356
+ b) Requiring preservation of specified reasonable legal notices or
357
+ author attributions in that material or in the Appropriate Legal
358
+ Notices displayed by works containing it; or
359
+
360
+ c) Prohibiting misrepresentation of the origin of that material, or
361
+ requiring that modified versions of such material be marked in
362
+ reasonable ways as different from the original version; or
363
+
364
+ d) Limiting the use for publicity purposes of names of licensors or
365
+ authors of the material; or
366
+
367
+ e) Declining to grant rights under trademark law for use of some
368
+ trade names, trademarks, or service marks; or
369
+
370
+ f) Requiring indemnification of licensors and authors of that
371
+ material by anyone who conveys the material (or modified versions of
372
+ it) with contractual assumptions of liability to the recipient, for
373
+ any liability that these contractual assumptions directly impose on
374
+ those licensors and authors.
375
+
376
+ All other non-permissive additional terms are considered "further
377
+ restrictions" within the meaning of section 10. If the Program as you
378
+ received it, or any part of it, contains a notice stating that it is
379
+ governed by this License along with a term that is a further
380
+ restriction, you may remove that term. If a license document contains
381
+ a further restriction but permits relicensing or conveying under this
382
+ License, you may add to a covered work material governed by the terms
383
+ of that license document, provided that the further restriction does
384
+ not survive such relicensing or conveying.
385
+
386
+ If you add terms to a covered work in accord with this section, you
387
+ must place, in the relevant source files, a statement of the
388
+ additional terms that apply to those files, or a notice indicating
389
+ where to find the applicable terms.
390
+
391
+ Additional terms, permissive or non-permissive, may be stated in the
392
+ form of a separately written license, or stated as exceptions;
393
+ the above requirements apply either way.
394
+
395
+ 8. Termination.
396
+
397
+ You may not propagate or modify a covered work except as expressly
398
+ provided under this License. Any attempt otherwise to propagate or
399
+ modify it is void, and will automatically terminate your rights under
400
+ this License (including any patent licenses granted under the third
401
+ paragraph of section 11).
402
+
403
+ However, if you cease all violation of this License, then your
404
+ license from a particular copyright holder is reinstated (a)
405
+ provisionally, unless and until the copyright holder explicitly and
406
+ finally terminates your license, and (b) permanently, if the copyright
407
+ holder fails to notify you of the violation by some reasonable means
408
+ prior to 60 days after the cessation.
409
+
410
+ Moreover, your license from a particular copyright holder is
411
+ reinstated permanently if the copyright holder notifies you of the
412
+ violation by some reasonable means, this is the first time you have
413
+ received notice of violation of this License (for any work) from that
414
+ copyright holder, and you cure the violation prior to 30 days after
415
+ your receipt of the notice.
416
+
417
+ Termination of your rights under this section does not terminate the
418
+ licenses of parties who have received copies or rights from you under
419
+ this License. If your rights have been terminated and not permanently
420
+ reinstated, you do not qualify to receive new licenses for the same
421
+ material under section 10.
422
+
423
+ 9. Acceptance Not Required for Having Copies.
424
+
425
+ You are not required to accept this License in order to receive or
426
+ run a copy of the Program. Ancillary propagation of a covered work
427
+ occurring solely as a consequence of using peer-to-peer transmission
428
+ to receive a copy likewise does not require acceptance. However,
429
+ nothing other than this License grants you permission to propagate or
430
+ modify any covered work. These actions infringe copyright if you do
431
+ not accept this License. Therefore, by modifying or propagating a
432
+ covered work, you indicate your acceptance of this License to do so.
433
+
434
+ 10. Automatic Licensing of Downstream Recipients.
435
+
436
+ Each time you convey a covered work, the recipient automatically
437
+ receives a license from the original licensors, to run, modify and
438
+ propagate that work, subject to this License. You are not responsible
439
+ for enforcing compliance by third parties with this License.
440
+
441
+ An "entity transaction" is a transaction transferring control of an
442
+ organization, or substantially all assets of one, or subdividing an
443
+ organization, or merging organizations. If propagation of a covered
444
+ work results from an entity transaction, each party to that
445
+ transaction who receives a copy of the work also receives whatever
446
+ licenses to the work the party's predecessor in interest had or could
447
+ give under the previous paragraph, plus a right to possession of the
448
+ Corresponding Source of the work from the predecessor in interest, if
449
+ the predecessor has it or can get it with reasonable efforts.
450
+
451
+ You may not impose any further restrictions on the exercise of the
452
+ rights granted or affirmed under this License. For example, you may
453
+ not impose a license fee, royalty, or other charge for exercise of
454
+ rights granted under this License, and you may not initiate litigation
455
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
456
+ any patent claim is infringed by making, using, selling, offering for
457
+ sale, or importing the Program or any portion of it.
458
+
459
+ 11. Patents.
460
+
461
+ A "contributor" is a copyright holder who authorizes use under this
462
+ License of the Program or a work on which the Program is based. The
463
+ work thus licensed is called the contributor's "contributor version".
464
+
465
+ A contributor's "essential patent claims" are all patent claims
466
+ owned or controlled by the contributor, whether already acquired or
467
+ hereafter acquired, that would be infringed by some manner, permitted
468
+ by this License, of making, using, or selling its contributor version,
469
+ but do not include claims that would be infringed only as a
470
+ consequence of further modification of the contributor version. For
471
+ purposes of this definition, "control" includes the right to grant
472
+ patent sublicenses in a manner consistent with the requirements of
473
+ this License.
474
+
475
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
476
+ patent license under the contributor's essential patent claims, to
477
+ make, use, sell, offer for sale, import and otherwise run, modify and
478
+ propagate the contents of its contributor version.
479
+
480
+ In the following three paragraphs, a "patent license" is any express
481
+ agreement or commitment, however denominated, not to enforce a patent
482
+ (such as an express permission to practice a patent or covenant not to
483
+ sue for patent infringement). To "grant" such a patent license to a
484
+ party means to make such an agreement or commitment not to enforce a
485
+ patent against the party.
486
+
487
+ If you convey a covered work, knowingly relying on a patent license,
488
+ and the Corresponding Source of the work is not available for anyone
489
+ to copy, free of charge and under the terms of this License, through a
490
+ publicly available network server or other readily accessible means,
491
+ then you must either (1) cause the Corresponding Source to be so
492
+ available, or (2) arrange to deprive yourself of the benefit of the
493
+ patent license for this particular work, or (3) arrange, in a manner
494
+ consistent with the requirements of this License, to extend the patent
495
+ license to downstream recipients. "Knowingly relying" means you have
496
+ actual knowledge that, but for the patent license, your conveying the
497
+ covered work in a country, or your recipient's use of the covered work
498
+ in a country, would infringe one or more identifiable patents in that
499
+ country that you have reason to believe are valid.
500
+
501
+ If, pursuant to or in connection with a single transaction or
502
+ arrangement, you convey, or propagate by procuring conveyance of, a
503
+ covered work, and grant a patent license to some of the parties
504
+ receiving the covered work authorizing them to use, propagate, modify
505
+ or convey a specific copy of the covered work, then the patent license
506
+ you grant is automatically extended to all recipients of the covered
507
+ work and works based on it.
508
+
509
+ A patent license is "discriminatory" if it does not include within
510
+ the scope of its coverage, prohibits the exercise of, or is
511
+ conditioned on the non-exercise of one or more of the rights that are
512
+ specifically granted under this License. You may not convey a covered
513
+ work if you are a party to an arrangement with a third party that is
514
+ in the business of distributing software, under which you make payment
515
+ to the third party based on the extent of your activity of conveying
516
+ the work, and under which the third party grants, to any of the
517
+ parties who would receive the covered work from you, a discriminatory
518
+ patent license (a) in connection with copies of the covered work
519
+ conveyed by you (or copies made from those copies), or (b) primarily
520
+ for and in connection with specific products or compilations that
521
+ contain the covered work, unless you entered into that arrangement,
522
+ or that patent license was granted, prior to 28 March 2007.
523
+
524
+ Nothing in this License shall be construed as excluding or limiting
525
+ any implied license or other defenses to infringement that may
526
+ otherwise be available to you under applicable patent law.
527
+
528
+ 12. No Surrender of Others' Freedom.
529
+
530
+ If conditions are imposed on you (whether by court order, agreement or
531
+ otherwise) that contradict the conditions of this License, they do not
532
+ excuse you from the conditions of this License. If you cannot convey a
533
+ covered work so as to satisfy simultaneously your obligations under this
534
+ License and any other pertinent obligations, then as a consequence you may
535
+ not convey it at all. For example, if you agree to terms that obligate you
536
+ to collect a royalty for further conveying from those to whom you convey
537
+ the Program, the only way you could satisfy both those terms and this
538
+ License would be to refrain entirely from conveying the Program.
539
+
540
+ 13. Remote Network Interaction; Use with the GNU General Public License.
541
+
542
+ Notwithstanding any other provision of this License, if you modify the
543
+ Program, your modified version must prominently offer all users
544
+ interacting with it remotely through a computer network (if your version
545
+ supports such interaction) an opportunity to receive the Corresponding
546
+ Source of your version by providing access to the Corresponding Source
547
+ from a network server at no charge, through some standard or customary
548
+ means of facilitating copying of software. This Corresponding Source
549
+ shall include the Corresponding Source for any work covered by version 3
550
+ of the GNU General Public License that is incorporated pursuant to the
551
+ following paragraph.
552
+
553
+ Notwithstanding any other provision of this License, you have
554
+ permission to link or combine any covered work with a work licensed
555
+ under version 3 of the GNU General Public License into a single
556
+ combined work, and to convey the resulting work. The terms of this
557
+ License will continue to apply to the part which is the covered work,
558
+ but the work with which it is combined will remain governed by version
559
+ 3 of the GNU General Public License.
560
+
561
+ 14. Revised Versions of this License.
562
+
563
+ The Free Software Foundation may publish revised and/or new versions of
564
+ the GNU Affero General Public License from time to time. Such new versions
565
+ will be similar in spirit to the present version, but may differ in detail to
566
+ address new problems or concerns.
567
+
568
+ Each version is given a distinguishing version number. If the
569
+ Program specifies that a certain numbered version of the GNU Affero General
570
+ Public License "or any later version" applies to it, you have the
571
+ option of following the terms and conditions either of that numbered
572
+ version or of any later version published by the Free Software
573
+ Foundation. If the Program does not specify a version number of the
574
+ GNU Affero General Public License, you may choose any version ever published
575
+ by the Free Software Foundation.
576
+
577
+ If the Program specifies that a proxy can decide which future
578
+ versions of the GNU Affero General Public License can be used, that proxy's
579
+ public statement of acceptance of a version permanently authorizes you
580
+ to choose that version for the Program.
581
+
582
+ Later license versions may give you additional or different
583
+ permissions. However, no additional obligations are imposed on any
584
+ author or copyright holder as a result of your choosing to follow a
585
+ later version.
586
+
587
+ 15. Disclaimer of Warranty.
588
+
589
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
590
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
591
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
592
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
593
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
594
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
595
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
596
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
597
+
598
+ 16. Limitation of Liability.
599
+
600
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
601
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
602
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
603
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
604
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
605
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
606
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
607
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
608
+ SUCH DAMAGES.
609
+
610
+ 17. Interpretation of Sections 15 and 16.
611
+
612
+ If the disclaimer of warranty and limitation of liability provided
613
+ above cannot be given local legal effect according to their terms,
614
+ reviewing courts shall apply local law that most closely approximates
615
+ an absolute waiver of all civil liability in connection with the
616
+ Program, unless a warranty or assumption of liability accompanies a
617
+ copy of the Program in return for a fee.
618
+
619
+ END OF TERMS AND CONDITIONS
620
+
621
+ How to Apply These Terms to Your New Programs
622
+
623
+ If you develop a new program, and you want it to be of the greatest
624
+ possible use to the public, the best way to achieve this is to make it
625
+ free software which everyone can redistribute and change under these terms.
626
+
627
+ To do so, attach the following notices to the program. It is safest
628
+ to attach them to the start of each source file to most effectively
629
+ state the exclusion of warranty; and each file should have at least
630
+ the "copyright" line and a pointer to where the full notice is found.
631
+
632
+ <one line to give the program's name and a brief idea of what it does.>
633
+ Copyright (C) <year> <name of author>
634
+
635
+ This program is free software: you can redistribute it and/or modify
636
+ it under the terms of the GNU Affero General Public License as published by
637
+ the Free Software Foundation, either version 3 of the License, or
638
+ (at your option) any later version.
639
+
640
+ This program is distributed in the hope that it will be useful,
641
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
642
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
643
+ GNU Affero General Public License for more details.
644
+
645
+ You should have received a copy of the GNU Affero General Public License
646
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
647
+
648
+ Also add information on how to contact you by electronic and paper mail.
649
+
650
+ If your software can interact with users remotely through a computer
651
+ network, you should also make sure that it provides a way for users to
652
+ get its source. For example, if your program is a web application, its
653
+ interface could display a "Source" link that leads users to an archive
654
+ of the code. There are many ways you could offer source, and different
655
+ solutions will be better for different programs; see section 13 for the
656
+ specific requirements.
657
+
658
+ You should also get your employer (if you work as a programmer) or school,
659
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
660
+ For more information on this, and how to apply and follow the GNU AGPL, see
661
+ <https://www.gnu.org/licenses/>.
manifest.json ADDED
@@ -0,0 +1,458 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "yolov10n",
4
+ "family": "yolov10",
5
+ "size": "n",
6
+ "task": "detect",
7
+ "imgsz": 640,
8
+ "chip": "rk3576",
9
+ "precision": "fp16",
10
+ "status": "ok",
11
+ "bytes": 12645878,
12
+ "sha256": "23b6e5907197089889b114d5568cbd712b7b4d0e951c953d6d3e7d96d65ab5a3",
13
+ "metadata_sha256": "f49d67037740a0b2d4c416fec8bbe07def3a45aafdbe98fe083651eb1b4475fe",
14
+ "head_precision": "fp16",
15
+ "decode_precision": null,
16
+ "fp16_decode_tensors": null,
17
+ "classes": 80,
18
+ "path": "models/detect/yolov10n/rk3576/fp16",
19
+ "weights": "source/weights/yolov10n.pt"
20
+ },
21
+ {
22
+ "name": "yolov10n",
23
+ "family": "yolov10",
24
+ "size": "n",
25
+ "task": "detect",
26
+ "imgsz": 640,
27
+ "chip": "rk3588",
28
+ "precision": "fp16",
29
+ "status": "ok",
30
+ "bytes": 6910518,
31
+ "sha256": "8b7149905594fb2e89ee70d65e6e3f0f48a52a2bc7024798c4991e062eaae243",
32
+ "metadata_sha256": "7bd6f42d3d66134b878887c70fa0a6c7cbf0e8103ab0305f9033d52e02d4f2a2",
33
+ "head_precision": "fp16",
34
+ "decode_precision": null,
35
+ "fp16_decode_tensors": null,
36
+ "classes": 80,
37
+ "path": "models/detect/yolov10n/rk3588/fp16",
38
+ "weights": "source/weights/yolov10n.pt"
39
+ },
40
+ {
41
+ "name": "yolov10n",
42
+ "family": "yolov10",
43
+ "size": "n",
44
+ "task": "detect",
45
+ "imgsz": 640,
46
+ "chip": "rk3576",
47
+ "precision": "int8",
48
+ "status": "ok",
49
+ "bytes": 10427088,
50
+ "sha256": "8d2b4a19d4e4ec7d3f8e82cfad7c688de117fa65e496f2a3a411976120901529",
51
+ "metadata_sha256": "72a01ffb8e43303c0f90612aa80003bf6f7b257c69e7a3bc40d2879d1bf21b7f",
52
+ "head_precision": "int8",
53
+ "decode_precision": null,
54
+ "fp16_decode_tensors": null,
55
+ "classes": 80,
56
+ "path": "models/detect/yolov10n/rk3576/int8",
57
+ "weights": "source/weights/yolov10n.pt"
58
+ },
59
+ {
60
+ "name": "yolov10n",
61
+ "family": "yolov10",
62
+ "size": "n",
63
+ "task": "detect",
64
+ "imgsz": 640,
65
+ "chip": "rk3588",
66
+ "precision": "int8",
67
+ "status": "ok",
68
+ "bytes": 4443152,
69
+ "sha256": "d761a35e6261b575452060b267f136d0481132c7d5edd02f8b151e762bc54121",
70
+ "metadata_sha256": "e9c6c824508de7d4bc0535ab28ecede971b5b45a2baa0bb2bfd5aedd0a97f8a1",
71
+ "head_precision": "int8",
72
+ "decode_precision": null,
73
+ "fp16_decode_tensors": null,
74
+ "classes": 80,
75
+ "path": "models/detect/yolov10n/rk3588/int8",
76
+ "weights": "source/weights/yolov10n.pt"
77
+ },
78
+ {
79
+ "name": "yolov10s",
80
+ "family": "yolov10",
81
+ "size": "s",
82
+ "task": "detect",
83
+ "imgsz": 640,
84
+ "chip": "rk3576",
85
+ "precision": "fp16",
86
+ "status": "ok",
87
+ "bytes": 23346038,
88
+ "sha256": "9362a4f679c67420e817af49c66999b381b04a7b39be6d8fa1bded1b0815c276",
89
+ "metadata_sha256": "7d618606081cf56b4b0aeab8f45f47a02b8b536bc2d467048683bee5df336ae0",
90
+ "head_precision": "fp16",
91
+ "decode_precision": null,
92
+ "fp16_decode_tensors": null,
93
+ "classes": 80,
94
+ "path": "models/detect/yolov10s/rk3576/fp16",
95
+ "weights": "source/weights/yolov10s.pt"
96
+ },
97
+ {
98
+ "name": "yolov10s",
99
+ "family": "yolov10",
100
+ "size": "s",
101
+ "task": "detect",
102
+ "imgsz": 640,
103
+ "chip": "rk3588",
104
+ "precision": "fp16",
105
+ "status": "ok",
106
+ "bytes": 17283830,
107
+ "sha256": "e98d5a1ce6c070a78381d9f4e565d12ec611495a71d3f397ea73312bfe38a199",
108
+ "metadata_sha256": "f74d574e56d0b5976b66a9bad66f8b446f0b6da6f98fe5322babb4e81277bcc6",
109
+ "head_precision": "fp16",
110
+ "decode_precision": null,
111
+ "fp16_decode_tensors": null,
112
+ "classes": 80,
113
+ "path": "models/detect/yolov10s/rk3588/fp16",
114
+ "weights": "source/weights/yolov10s.pt"
115
+ },
116
+ {
117
+ "name": "yolov10s",
118
+ "family": "yolov10",
119
+ "size": "s",
120
+ "task": "detect",
121
+ "imgsz": 640,
122
+ "chip": "rk3576",
123
+ "precision": "int8",
124
+ "status": "ok",
125
+ "bytes": 16022928,
126
+ "sha256": "62dc3c35bb5fbca318302cabe425ac502757f3ee326c0685b40bd275a858493f",
127
+ "metadata_sha256": "23c415f8b5cc97a0a39c1dce311cc011704d70805bf6deab474423fe595a0cc0",
128
+ "head_precision": "int8",
129
+ "decode_precision": null,
130
+ "fp16_decode_tensors": null,
131
+ "classes": 80,
132
+ "path": "models/detect/yolov10s/rk3576/int8",
133
+ "weights": "source/weights/yolov10s.pt"
134
+ },
135
+ {
136
+ "name": "yolov10s",
137
+ "family": "yolov10",
138
+ "size": "s",
139
+ "task": "detect",
140
+ "imgsz": 640,
141
+ "chip": "rk3588",
142
+ "precision": "int8",
143
+ "status": "ok",
144
+ "bytes": 9616656,
145
+ "sha256": "ac3ed12cce29670930376f4a438db1ecc3e2b86d00dd431e5a1a0566eb69d159",
146
+ "metadata_sha256": "235a37f0aa9fced65a9950ad065ad3dd4c693993e15344586209919e54aeb371",
147
+ "head_precision": "int8",
148
+ "decode_precision": null,
149
+ "fp16_decode_tensors": null,
150
+ "classes": 80,
151
+ "path": "models/detect/yolov10s/rk3588/int8",
152
+ "weights": "source/weights/yolov10s.pt"
153
+ },
154
+ {
155
+ "name": "yolov10m",
156
+ "family": "yolov10",
157
+ "size": "m",
158
+ "task": "detect",
159
+ "imgsz": 640,
160
+ "chip": "rk3576",
161
+ "precision": "fp16",
162
+ "status": "ok",
163
+ "bytes": 41903094,
164
+ "sha256": "b1944c32f39bfee5e8ecac59772408d717f070df1741e5b7f396a08e3fed58bb",
165
+ "metadata_sha256": "4b019da41f4a3492d61dd0741dac21e5344f5b12d5fdd9d63de5e59370f440d2",
166
+ "head_precision": "fp16",
167
+ "decode_precision": null,
168
+ "fp16_decode_tensors": null,
169
+ "classes": 80,
170
+ "path": "models/detect/yolov10m/rk3576/fp16",
171
+ "weights": "source/weights/yolov10m.pt"
172
+ },
173
+ {
174
+ "name": "yolov10m",
175
+ "family": "yolov10",
176
+ "size": "m",
177
+ "task": "detect",
178
+ "imgsz": 640,
179
+ "chip": "rk3588",
180
+ "precision": "fp16",
181
+ "status": "ok",
182
+ "bytes": 34710198,
183
+ "sha256": "e693770f259846cead855d64abcac410e3264a284b2881f5484f274f8a13fe9b",
184
+ "metadata_sha256": "9036d7a0c7e5acb9de81a48f0cb93dee658a547beefdc5ec1823c1c7f52951c4",
185
+ "head_precision": "fp16",
186
+ "decode_precision": null,
187
+ "fp16_decode_tensors": null,
188
+ "classes": 80,
189
+ "path": "models/detect/yolov10m/rk3588/fp16",
190
+ "weights": "source/weights/yolov10m.pt"
191
+ },
192
+ {
193
+ "name": "yolov10m",
194
+ "family": "yolov10",
195
+ "size": "m",
196
+ "task": "detect",
197
+ "imgsz": 640,
198
+ "chip": "rk3576",
199
+ "precision": "int8",
200
+ "status": "ok",
201
+ "bytes": 26528720,
202
+ "sha256": "9282fd9627f63b851929c349a890afa625ab753cd0ca1740eef5ba540406c7f3",
203
+ "metadata_sha256": "b45c046728b165a7112fb0486ce62a0a9928b6cdb41eee1126669f0321c476e2",
204
+ "head_precision": "int8",
205
+ "decode_precision": null,
206
+ "fp16_decode_tensors": null,
207
+ "classes": 80,
208
+ "path": "models/detect/yolov10m/rk3576/int8",
209
+ "weights": "source/weights/yolov10m.pt"
210
+ },
211
+ {
212
+ "name": "yolov10m",
213
+ "family": "yolov10",
214
+ "size": "m",
215
+ "task": "detect",
216
+ "imgsz": 640,
217
+ "chip": "rk3588",
218
+ "precision": "int8",
219
+ "status": "ok",
220
+ "bytes": 18826704,
221
+ "sha256": "5ea841ef11d9953aaa3da1156c55e0e6110e1624319ffc7428f6814b842956ce",
222
+ "metadata_sha256": "f23eb748e03830954b57daf7b242d1b4fa3c6d0005e661b0823dd761d0acbd10",
223
+ "head_precision": "int8",
224
+ "decode_precision": null,
225
+ "fp16_decode_tensors": null,
226
+ "classes": 80,
227
+ "path": "models/detect/yolov10m/rk3588/int8",
228
+ "weights": "source/weights/yolov10m.pt"
229
+ },
230
+ {
231
+ "name": "yolov10l",
232
+ "family": "yolov10",
233
+ "size": "l",
234
+ "task": "detect",
235
+ "imgsz": 640,
236
+ "chip": "rk3588",
237
+ "precision": "fp16",
238
+ "status": "ok",
239
+ "bytes": 54352566,
240
+ "sha256": "5727d3f54db2ae45cfc369de7baef215a2228fc20c42b20dddac3ad7c38288a9",
241
+ "metadata_sha256": "925a4227ac615575c6a6d764b6b1fe290de7192aca6c5f1e7c3e9f495f3db5e4",
242
+ "head_precision": "fp16",
243
+ "decode_precision": null,
244
+ "fp16_decode_tensors": null,
245
+ "classes": 80,
246
+ "path": "models/detect/yolov10l/rk3588/fp16",
247
+ "weights": "source/weights/yolov10l.pt"
248
+ },
249
+ {
250
+ "name": "yolov10l",
251
+ "family": "yolov10",
252
+ "size": "l",
253
+ "task": "detect",
254
+ "imgsz": 640,
255
+ "chip": "rk3576",
256
+ "precision": "fp16",
257
+ "status": "ok",
258
+ "bytes": 63007670,
259
+ "sha256": "01f5dbc3e967ef9973d7dda90b66026d4a26d57019dbbc602e2b87c7a46ba3d2",
260
+ "metadata_sha256": "2d606f3d85ce50db8093966136276df0d43f6212d24872299f8868624ad545df",
261
+ "head_precision": "fp16",
262
+ "decode_precision": null,
263
+ "fp16_decode_tensors": null,
264
+ "classes": 80,
265
+ "path": "models/detect/yolov10l/rk3576/fp16",
266
+ "weights": "source/weights/yolov10l.pt"
267
+ },
268
+ {
269
+ "name": "yolov10l",
270
+ "family": "yolov10",
271
+ "size": "l",
272
+ "task": "detect",
273
+ "imgsz": 640,
274
+ "chip": "rk3588",
275
+ "precision": "int8",
276
+ "status": "ok",
277
+ "bytes": 28567568,
278
+ "sha256": "2fce99f3903cdbe6be73659248e15f5394ae5e3cf8e5e7c0e9cc51af7fa87d59",
279
+ "metadata_sha256": "f7e9a85402b27de07ccfff74194c435861f69f2cc8023c23096ab2116dc8000b",
280
+ "head_precision": "int8",
281
+ "decode_precision": null,
282
+ "fp16_decode_tensors": null,
283
+ "classes": 80,
284
+ "path": "models/detect/yolov10l/rk3588/int8",
285
+ "weights": "source/weights/yolov10l.pt"
286
+ },
287
+ {
288
+ "name": "yolov10l",
289
+ "family": "yolov10",
290
+ "size": "l",
291
+ "task": "detect",
292
+ "imgsz": 640,
293
+ "chip": "rk3576",
294
+ "precision": "int8",
295
+ "status": "ok",
296
+ "bytes": 37800400,
297
+ "sha256": "a67f61b81be2cb99bb14f50b2d2505e8ed714e758da0522fbff9bcca65695aac",
298
+ "metadata_sha256": "de72f42326bd3bb02809c5db43cc1799a5eb89f6676bcb6e044ad8922d416cea",
299
+ "head_precision": "int8",
300
+ "decode_precision": null,
301
+ "fp16_decode_tensors": null,
302
+ "classes": 80,
303
+ "path": "models/detect/yolov10l/rk3576/int8",
304
+ "weights": "source/weights/yolov10l.pt"
305
+ },
306
+ {
307
+ "name": "yolov10x",
308
+ "family": "yolov10",
309
+ "size": "x",
310
+ "task": "detect",
311
+ "imgsz": 640,
312
+ "chip": "rk3588",
313
+ "precision": "fp16",
314
+ "status": "ok",
315
+ "bytes": 64524918,
316
+ "sha256": "d012b65977322a9a18a25a9973168263558e7b9a7f634077f1b8640a184403c3",
317
+ "metadata_sha256": "d57cd325ae23e581256630af683c030bb62b172ca0210901390d43b2182dcc8e",
318
+ "head_precision": "fp16",
319
+ "decode_precision": null,
320
+ "fp16_decode_tensors": null,
321
+ "classes": 80,
322
+ "path": "models/detect/yolov10x/rk3588/fp16",
323
+ "weights": "source/weights/yolov10x.pt"
324
+ },
325
+ {
326
+ "name": "yolov10x",
327
+ "family": "yolov10",
328
+ "size": "x",
329
+ "task": "detect",
330
+ "imgsz": 640,
331
+ "chip": "rk3576",
332
+ "precision": "fp16",
333
+ "status": "ok",
334
+ "bytes": 75614134,
335
+ "sha256": "e7709c35717d12c2c4b2dafc4a434d9bb120af3c95a1d99e22bfa619b3c3beba",
336
+ "metadata_sha256": "14b195e21b29726081aff60e10337fcee96138aa387b7f51b2e190e175773d85",
337
+ "head_precision": "fp16",
338
+ "decode_precision": null,
339
+ "fp16_decode_tensors": null,
340
+ "classes": 80,
341
+ "path": "models/detect/yolov10x/rk3576/fp16",
342
+ "weights": "source/weights/yolov10x.pt"
343
+ },
344
+ {
345
+ "name": "yolov10x",
346
+ "family": "yolov10",
347
+ "size": "x",
348
+ "task": "detect",
349
+ "imgsz": 640,
350
+ "chip": "rk3576",
351
+ "precision": "int8",
352
+ "status": "ok",
353
+ "bytes": 45566736,
354
+ "sha256": "5d0d5a0ea734102653bb5c27ead449a3ad787a07ec6cfc5cd6ae69c7cc40cac1",
355
+ "metadata_sha256": "361dbaf48b65003f0ea070ba2f406857109595e0329c512899cb10ec19ca80a6",
356
+ "head_precision": "int8",
357
+ "decode_precision": null,
358
+ "fp16_decode_tensors": null,
359
+ "classes": 80,
360
+ "path": "models/detect/yolov10x/rk3576/int8",
361
+ "weights": "source/weights/yolov10x.pt"
362
+ },
363
+ {
364
+ "name": "yolov10x",
365
+ "family": "yolov10",
366
+ "size": "x",
367
+ "task": "detect",
368
+ "imgsz": 640,
369
+ "chip": "rk3588",
370
+ "precision": "int8",
371
+ "status": "ok",
372
+ "bytes": 34309520,
373
+ "sha256": "34d3e02eed527419c89e0cd9e8caf13e8ac496952579a2addc6b9b67726f1821",
374
+ "metadata_sha256": "0562fbede78c9859e62cb303dc28678dbc722344616c6331e5d3aceb6934787e",
375
+ "head_precision": "int8",
376
+ "decode_precision": null,
377
+ "fp16_decode_tensors": null,
378
+ "classes": 80,
379
+ "path": "models/detect/yolov10x/rk3588/int8",
380
+ "weights": "source/weights/yolov10x.pt"
381
+ },
382
+ {
383
+ "name": "yolov10b",
384
+ "family": "yolov10",
385
+ "size": "b",
386
+ "task": "detect",
387
+ "imgsz": 640,
388
+ "chip": "rk3576",
389
+ "precision": "fp16",
390
+ "status": "ok",
391
+ "bytes": 50356022,
392
+ "sha256": "add1b6d570363fee0f8646de9bee0667bc9143eedd5e3d58d6a448392e5c7e6c",
393
+ "metadata_sha256": "396609ec13e07811ee080363414f1379c0d959527ed58f5b99bce244065c1d7e",
394
+ "head_precision": "fp16",
395
+ "decode_precision": null,
396
+ "fp16_decode_tensors": null,
397
+ "classes": 80,
398
+ "path": "models/detect/yolov10b/rk3576/fp16",
399
+ "weights": "source/weights/yolov10b.pt"
400
+ },
401
+ {
402
+ "name": "yolov10b",
403
+ "family": "yolov10",
404
+ "size": "b",
405
+ "task": "detect",
406
+ "imgsz": 640,
407
+ "chip": "rk3588",
408
+ "precision": "fp16",
409
+ "status": "ok",
410
+ "bytes": 42772662,
411
+ "sha256": "70d5d627de189fbe6109b299fcb5ac913905dabe13662a3ba5c4be5ad23b12ef",
412
+ "metadata_sha256": "be341c68d6d1253c7856ed9e4fddbb7af7cbb04dcf893d30588cd7b574661433",
413
+ "head_precision": "fp16",
414
+ "decode_precision": null,
415
+ "fp16_decode_tensors": null,
416
+ "classes": 80,
417
+ "path": "models/detect/yolov10b/rk3588/fp16",
418
+ "weights": "source/weights/yolov10b.pt"
419
+ },
420
+ {
421
+ "name": "yolov10b",
422
+ "family": "yolov10",
423
+ "size": "b",
424
+ "task": "detect",
425
+ "imgsz": 640,
426
+ "chip": "rk3588",
427
+ "precision": "int8",
428
+ "status": "ok",
429
+ "bytes": 22567184,
430
+ "sha256": "dc149b3d45c0c2d2f94a8b01109b57f8d3b3f6ccb9cca1bc47041ed0be7876aa",
431
+ "metadata_sha256": "e0472ec86380a876f8c8b566faebfabb42a9aa27c3b496c6dac607046c517dc3",
432
+ "head_precision": "int8",
433
+ "decode_precision": null,
434
+ "fp16_decode_tensors": null,
435
+ "classes": 80,
436
+ "path": "models/detect/yolov10b/rk3588/int8",
437
+ "weights": "source/weights/yolov10b.pt"
438
+ },
439
+ {
440
+ "name": "yolov10b",
441
+ "family": "yolov10",
442
+ "size": "b",
443
+ "task": "detect",
444
+ "imgsz": 640,
445
+ "chip": "rk3576",
446
+ "precision": "int8",
447
+ "status": "ok",
448
+ "bytes": 30591888,
449
+ "sha256": "4c11279d9f96f25ff66b7eb61ac43b40de8e28fada8b69b3bc9ec0abde3cf78c",
450
+ "metadata_sha256": "ab2b3e2099b6638cb9788ce9c2b3829f0bd6914016e85a2196ca3421fdf7f93b",
451
+ "head_precision": "int8",
452
+ "decode_precision": null,
453
+ "fp16_decode_tensors": null,
454
+ "classes": 80,
455
+ "path": "models/detect/yolov10b/rk3576/int8",
456
+ "weights": "source/weights/yolov10b.pt"
457
+ }
458
+ ]
source/calibration.json ADDED
@@ -0,0 +1,645 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source": "https://github.com/ultralytics/assets/releases/download/v0.0.0/coco128.zip",
3
+ "images": [
4
+ {
5
+ "name": "000000000009.jpg",
6
+ "bytes": 62835,
7
+ "sha256": "3b0bb6bebad60a3329f1e3484434872e86998aeb7750d779b308e4a064868c2c"
8
+ },
9
+ {
10
+ "name": "000000000025.jpg",
11
+ "bytes": 89652,
12
+ "sha256": "9f016b98f31e4fe826910e56ee39fa0c2889f48d38cc5f4f6b6421c8c5fc7214"
13
+ },
14
+ {
15
+ "name": "000000000030.jpg",
16
+ "bytes": 30089,
17
+ "sha256": "4ec415419155289eefffa7a620ed77bdeee94f477225e87ceaa00cb5f2515fe7"
18
+ },
19
+ {
20
+ "name": "000000000034.jpg",
21
+ "bytes": 105097,
22
+ "sha256": "0e67e637241ac2fbf132aa2b6cc9775b474b520e1c9a99dbef377063a5a48b85"
23
+ },
24
+ {
25
+ "name": "000000000036.jpg",
26
+ "bytes": 66757,
27
+ "sha256": "2bb515b26d250fcdf16effa3a7280babe32ae9b6f7608563e53cd01f5cd66ad4"
28
+ },
29
+ {
30
+ "name": "000000000042.jpg",
31
+ "bytes": 56556,
32
+ "sha256": "9008ddd846fc6002ec47ea6067cb92cf70f294773cc15765b6a14ffb392f52fa"
33
+ },
34
+ {
35
+ "name": "000000000049.jpg",
36
+ "bytes": 40899,
37
+ "sha256": "bc1482d2cba6e4db671c8eedbc7c8d86e0a31c927587a24297647f530349fe7b"
38
+ },
39
+ {
40
+ "name": "000000000061.jpg",
41
+ "bytes": 135566,
42
+ "sha256": "a1a9ac88e4c5cfbdd1cd425a6d262b1e78bf32676a9c17a2861ca6a23a731955"
43
+ },
44
+ {
45
+ "name": "000000000064.jpg",
46
+ "bytes": 59706,
47
+ "sha256": "406f84619f5197d416f60566d41ad4d58f1d10b0a182652bbda266eedbc3f1ab"
48
+ },
49
+ {
50
+ "name": "000000000071.jpg",
51
+ "bytes": 57039,
52
+ "sha256": "5393bf6575c435daa599c1272d9e61e99c099994ae4d3755311684663fed0917"
53
+ },
54
+ {
55
+ "name": "000000000072.jpg",
56
+ "bytes": 83098,
57
+ "sha256": "93d0d304967360bed3bfe2aafc701817e83f494c687e625fb8b765d2be54c9b2"
58
+ },
59
+ {
60
+ "name": "000000000073.jpg",
61
+ "bytes": 124117,
62
+ "sha256": "4a17dd87b487b4b6432d3aa60f6026a5349c8708834a3cae141ff16e0539a32c"
63
+ },
64
+ {
65
+ "name": "000000000074.jpg",
66
+ "bytes": 47165,
67
+ "sha256": "99d864809a7355862032b54283bd4808971da5a2b976b20467203e6c192e755d"
68
+ },
69
+ {
70
+ "name": "000000000077.jpg",
71
+ "bytes": 50183,
72
+ "sha256": "e07c725d9941691ac87386f0f4edd44f62a232696288bf95fb5ddef9384347b1"
73
+ },
74
+ {
75
+ "name": "000000000078.jpg",
76
+ "bytes": 73636,
77
+ "sha256": "3139fdefaa9b4320c8a4eec2032c77306a0fd167dd88633bd73f66f952baf5a7"
78
+ },
79
+ {
80
+ "name": "000000000081.jpg",
81
+ "bytes": 23700,
82
+ "sha256": "9f9dd4dcc774b81fcbb64531eb717859562ff162cf058e12f80c7b4630cbaa6b"
83
+ },
84
+ {
85
+ "name": "000000000086.jpg",
86
+ "bytes": 87717,
87
+ "sha256": "f58a99916783cdf4a7619286dc46adedd4ea1143bcc2cd773c6504aa5280915a"
88
+ },
89
+ {
90
+ "name": "000000000089.jpg",
91
+ "bytes": 41759,
92
+ "sha256": "cc548c7e669fefde96bdb7b1454c90cf518d414b85eb36827cc78f488d622e5a"
93
+ },
94
+ {
95
+ "name": "000000000092.jpg",
96
+ "bytes": 29143,
97
+ "sha256": "886950d096ad454f0bbb9a63167c795bd49eb9d4c0cb24a72888b3429d11900a"
98
+ },
99
+ {
100
+ "name": "000000000094.jpg",
101
+ "bytes": 66547,
102
+ "sha256": "143779e4a70bb6b6e10232aa02c2ce99a9a1246d763da344b424aba4ca71cd9f"
103
+ },
104
+ {
105
+ "name": "000000000109.jpg",
106
+ "bytes": 62103,
107
+ "sha256": "69edeeca53763fb2a4ee51739e4f9a4f053584b4f3ca4ff9911c49fa52ed2762"
108
+ },
109
+ {
110
+ "name": "000000000110.jpg",
111
+ "bytes": 56509,
112
+ "sha256": "39d967c7856965853e90b9283db4a6895a034eb17fe0c84581d17af4a59edcf2"
113
+ },
114
+ {
115
+ "name": "000000000113.jpg",
116
+ "bytes": 55067,
117
+ "sha256": "51d5f657eacbc0f37f0d847f903abc90bb33479fa0459fdc64ebbeb5cac34d99"
118
+ },
119
+ {
120
+ "name": "000000000127.jpg",
121
+ "bytes": 64488,
122
+ "sha256": "0ce2f02f39d5d49260d91762bc9a659f8f9d516d8e416c8120306330bfd58023"
123
+ },
124
+ {
125
+ "name": "000000000133.jpg",
126
+ "bytes": 40373,
127
+ "sha256": "d8d2ea5e94c83ba74bef9dc52d58e0526e08d03355381683fb953db71ec529e6"
128
+ },
129
+ {
130
+ "name": "000000000136.jpg",
131
+ "bytes": 31511,
132
+ "sha256": "e20c569a1e6174fd845a434a3fe3d50fb4f8a0e275fb348cc2c9b42a11600ccc"
133
+ },
134
+ {
135
+ "name": "000000000138.jpg",
136
+ "bytes": 73743,
137
+ "sha256": "0255bce78addf8d82e9f5d434ad2a98fccd5542cbb041980ce7ad00054a3227e"
138
+ },
139
+ {
140
+ "name": "000000000142.jpg",
141
+ "bytes": 43512,
142
+ "sha256": "3c852dc71abcf6cf06ed58202d1b2c850bb783553f05c63cd6ca511936b431aa"
143
+ },
144
+ {
145
+ "name": "000000000143.jpg",
146
+ "bytes": 30392,
147
+ "sha256": "03d4d20019d5abdf6f9314a166f8f8cf582f1d0d2167beef7ec2400d0f1b629e"
148
+ },
149
+ {
150
+ "name": "000000000144.jpg",
151
+ "bytes": 117593,
152
+ "sha256": "6740b5472043073062f46b253399a6bc2fe68ca77d429f652ad956c03d51b0fa"
153
+ },
154
+ {
155
+ "name": "000000000149.jpg",
156
+ "bytes": 29226,
157
+ "sha256": "73a20e38429ba6c78f62a90df787360c4a9ae3d331b002b509a8ee15179788a4"
158
+ },
159
+ {
160
+ "name": "000000000151.jpg",
161
+ "bytes": 107259,
162
+ "sha256": "b92d7d249e574fbd4ad8ba2fbc2c1879ca281b779f1276ac3daa0304b80039e4"
163
+ },
164
+ {
165
+ "name": "000000000154.jpg",
166
+ "bytes": 63228,
167
+ "sha256": "2938c94a9b07cacf10a8343c35949b065ae868190a11020f458f50450bd13552"
168
+ },
169
+ {
170
+ "name": "000000000164.jpg",
171
+ "bytes": 40901,
172
+ "sha256": "186a1427f32ce7e5cf17052f66d5ee7cd57d7f83762001891e16195a6bda586d"
173
+ },
174
+ {
175
+ "name": "000000000165.jpg",
176
+ "bytes": 64301,
177
+ "sha256": "2d3d9e0b4b165c0f783b97cd963097b13effa1af851c9576617fb7c910d63cd8"
178
+ },
179
+ {
180
+ "name": "000000000192.jpg",
181
+ "bytes": 62642,
182
+ "sha256": "93a9d9132aefccbb1f1bfb51198b5b427d1cf4a977ef259c9d0507ee5b0df732"
183
+ },
184
+ {
185
+ "name": "000000000194.jpg",
186
+ "bytes": 52676,
187
+ "sha256": "0713bcf193a25769b047e4dde7820e7fa857bab06f9140a4a64c78d94ed9b4a1"
188
+ },
189
+ {
190
+ "name": "000000000196.jpg",
191
+ "bytes": 70172,
192
+ "sha256": "1e1d801e63ed90d34ee666845ebcc17b56edef1f864d048ff588ce7073bc94a2"
193
+ },
194
+ {
195
+ "name": "000000000201.jpg",
196
+ "bytes": 52369,
197
+ "sha256": "4efc7ce561df432c2d3d9a60040f62b1b8389b36b401269bfc6802065dfcb9d8"
198
+ },
199
+ {
200
+ "name": "000000000208.jpg",
201
+ "bytes": 41630,
202
+ "sha256": "5ef004c8572c1d3a5e7c92ed16edc47529892a5306c7f70216e332a6cd65ad2d"
203
+ },
204
+ {
205
+ "name": "000000000241.jpg",
206
+ "bytes": 48024,
207
+ "sha256": "14007b87745069ed85c6412dffc8ad11a22de98d5f5c9ae896523e12622961c5"
208
+ },
209
+ {
210
+ "name": "000000000247.jpg",
211
+ "bytes": 48428,
212
+ "sha256": "a57c40ee95f73bb493e573bbbd593d037fdf176a02f1d3f6a3f437c8f78f805a"
213
+ },
214
+ {
215
+ "name": "000000000250.jpg",
216
+ "bytes": 49998,
217
+ "sha256": "a4e4243da053d3a958a1f52fd8fe9cc264d39e07077266a7089b281597050a29"
218
+ },
219
+ {
220
+ "name": "000000000257.jpg",
221
+ "bytes": 60297,
222
+ "sha256": "ae711135026cbd548fa1e04edc0ee96bce57162587e0238e7f76b4dc46cf4208"
223
+ },
224
+ {
225
+ "name": "000000000260.jpg",
226
+ "bytes": 26982,
227
+ "sha256": "f70992bbd14794773e27801c4cf4ba34ca4f453eb2efded62c2a558c40e3885b"
228
+ },
229
+ {
230
+ "name": "000000000263.jpg",
231
+ "bytes": 55292,
232
+ "sha256": "4abc27b830dedd072dab619c6b7f2467886f601e41b0cc8c2de888f57cf90d7b"
233
+ },
234
+ {
235
+ "name": "000000000283.jpg",
236
+ "bytes": 35093,
237
+ "sha256": "a668b293598b0097c9b38c136e54b8b43241df22d1c183f6f204a87eaf1f0724"
238
+ },
239
+ {
240
+ "name": "000000000294.jpg",
241
+ "bytes": 33028,
242
+ "sha256": "66bff049c25ed6498e69a51ac65b88d5fc800233fed0f89ee07ab178f7db766d"
243
+ },
244
+ {
245
+ "name": "000000000307.jpg",
246
+ "bytes": 96160,
247
+ "sha256": "c839076b4fa14020f97c8a5909c84a1e85c912ca262a91c8c4648ebe27caf61f"
248
+ },
249
+ {
250
+ "name": "000000000308.jpg",
251
+ "bytes": 60331,
252
+ "sha256": "07c410e96a812351bf385add8645b8dc2ed064902ff2ef01072be6351b428393"
253
+ },
254
+ {
255
+ "name": "000000000309.jpg",
256
+ "bytes": 114443,
257
+ "sha256": "40087a8191fc80eba012c1ba4735402b4890aa0669a84ea0d3dac043ca543247"
258
+ },
259
+ {
260
+ "name": "000000000312.jpg",
261
+ "bytes": 91689,
262
+ "sha256": "cd2fac2dfdc17fb1af0d12228e344d2e828fbe28a7c1e32396a95cb0b129d096"
263
+ },
264
+ {
265
+ "name": "000000000315.jpg",
266
+ "bytes": 54518,
267
+ "sha256": "5804350236bc0d52715f9354498d52f8d260b0e3d8f965526cd85ca6a18b7caa"
268
+ },
269
+ {
270
+ "name": "000000000321.jpg",
271
+ "bytes": 45914,
272
+ "sha256": "60f0acad099ad5cf55f44968cea66e125e0beb7eb20a1d78888ee9db34e28cd8"
273
+ },
274
+ {
275
+ "name": "000000000322.jpg",
276
+ "bytes": 35865,
277
+ "sha256": "4dddb450ab0a84a458c3da0cfa868a42b9b146de1cda3dd13c34b3599c7b80d3"
278
+ },
279
+ {
280
+ "name": "000000000326.jpg",
281
+ "bytes": 22412,
282
+ "sha256": "d8c9b6803795082707fcd62f2d1d38826709836504e330db3e7b4713c3316d59"
283
+ },
284
+ {
285
+ "name": "000000000328.jpg",
286
+ "bytes": 66986,
287
+ "sha256": "8ba0ed80d34589221b1243e0764471d91716b3a267827cb37ecfc3cfae52cc90"
288
+ },
289
+ {
290
+ "name": "000000000332.jpg",
291
+ "bytes": 48907,
292
+ "sha256": "8d4946138c446940ed080738744214cd75948a98fd3a1933d0031bd14144f541"
293
+ },
294
+ {
295
+ "name": "000000000338.jpg",
296
+ "bytes": 36236,
297
+ "sha256": "fdf5b5b2f8227082a5542fbc33b5f8740b040d345653c33bec6158d835542d6b"
298
+ },
299
+ {
300
+ "name": "000000000349.jpg",
301
+ "bytes": 33736,
302
+ "sha256": "8ad9716416dc27aeff76bb09d936949f67627cb30948288b61c117df34501049"
303
+ },
304
+ {
305
+ "name": "000000000357.jpg",
306
+ "bytes": 26957,
307
+ "sha256": "939b5473ea4787a01c2293a3e62979442eea5c9b3dcaab8803c07a5b6d47e087"
308
+ },
309
+ {
310
+ "name": "000000000359.jpg",
311
+ "bytes": 18860,
312
+ "sha256": "8da8a8320518a8adadbbd79615e066fd60b31c6025919665264ff9d0f746a5dd"
313
+ },
314
+ {
315
+ "name": "000000000360.jpg",
316
+ "bytes": 35980,
317
+ "sha256": "1a5d039418eacc09510efabcd466dc05701f0dac9ae0040b05a1b30b796ef96e"
318
+ },
319
+ {
320
+ "name": "000000000368.jpg",
321
+ "bytes": 116152,
322
+ "sha256": "a10be0a1beb5a34b50af22cc657dbf186a944db7ce8924e570295f35bd954036"
323
+ },
324
+ {
325
+ "name": "000000000370.jpg",
326
+ "bytes": 36164,
327
+ "sha256": "0d3719ec6f6f54229f498f7b01b113a864cd1eeccac196086741d98e23ae2455"
328
+ },
329
+ {
330
+ "name": "000000000382.jpg",
331
+ "bytes": 33310,
332
+ "sha256": "9455b8af106ef7a2a3b6c4c7ceeda5f4e81b5e364a2aef8e6cf68abc1396f8bd"
333
+ },
334
+ {
335
+ "name": "000000000384.jpg",
336
+ "bytes": 27793,
337
+ "sha256": "dfbae064fadcaa79bd319410903bc92052349472115e2d515e0ecf3c944d1048"
338
+ },
339
+ {
340
+ "name": "000000000387.jpg",
341
+ "bytes": 53134,
342
+ "sha256": "079af237aafcdddfe5a528ef5e40f38ca449fce9ad5a49fbdaaeef068fac7c76"
343
+ },
344
+ {
345
+ "name": "000000000389.jpg",
346
+ "bytes": 51895,
347
+ "sha256": "f6d313afba47fe0747d1d78cd342f420eb305de8faadb5cb164de428522b40d6"
348
+ },
349
+ {
350
+ "name": "000000000394.jpg",
351
+ "bytes": 68453,
352
+ "sha256": "2cf78c1cfa98714d2ed8a643f931c39511bbb6085fddf157b27ed709089e0343"
353
+ },
354
+ {
355
+ "name": "000000000395.jpg",
356
+ "bytes": 55487,
357
+ "sha256": "8d823d141724cc8656ccd48b49d6e44556ca399fbbd8458cc488f0d9816809a4"
358
+ },
359
+ {
360
+ "name": "000000000397.jpg",
361
+ "bytes": 56346,
362
+ "sha256": "5011e5e9eac564d30fa652281a7fd1d7693545077971741a241f400611e4c33e"
363
+ },
364
+ {
365
+ "name": "000000000400.jpg",
366
+ "bytes": 63846,
367
+ "sha256": "7b78338d4c7a30f7c38eb3bf11a7623a195e10926359adfd7281d6ce99e42dcb"
368
+ },
369
+ {
370
+ "name": "000000000404.jpg",
371
+ "bytes": 41249,
372
+ "sha256": "c46b3242d195c8c81b6776f4bfa385ef886ff1e7cb814e2c29e03303b85403b2"
373
+ },
374
+ {
375
+ "name": "000000000415.jpg",
376
+ "bytes": 28284,
377
+ "sha256": "cc75d90eac7419395e81ddd7e33c81dbec387892e086b40cbf12dc3fe09f8bb1"
378
+ },
379
+ {
380
+ "name": "000000000419.jpg",
381
+ "bytes": 67866,
382
+ "sha256": "4b4e5c24a3aafa6d591ab385cc3756f90a804212a8e060ba374d1658b69b308e"
383
+ },
384
+ {
385
+ "name": "000000000428.jpg",
386
+ "bytes": 22969,
387
+ "sha256": "49e87dbacfb3911d83fde336b7c01b79cc7bc77a021a601f2eb8d861f170a466"
388
+ },
389
+ {
390
+ "name": "000000000431.jpg",
391
+ "bytes": 43550,
392
+ "sha256": "1ecf0c6810ad0972f867b0f53f94c03d3398fc6958af4cac60dde350533f7b8c"
393
+ },
394
+ {
395
+ "name": "000000000436.jpg",
396
+ "bytes": 32998,
397
+ "sha256": "84b778ac377b3fb394edee6f6c3e688c600a3ac440247b64942b1e6e116ff9a3"
398
+ },
399
+ {
400
+ "name": "000000000438.jpg",
401
+ "bytes": 58374,
402
+ "sha256": "ee66d39f65c8ce3421fda1ca85b1942f6dff29813c97b6fb4ea4ed015c3a822a"
403
+ },
404
+ {
405
+ "name": "000000000443.jpg",
406
+ "bytes": 37330,
407
+ "sha256": "f6483d57885c348a27dcdc272e4bd5296c75596d7c64fe638b24dbb503209902"
408
+ },
409
+ {
410
+ "name": "000000000446.jpg",
411
+ "bytes": 36624,
412
+ "sha256": "41f3d2ce74148a9628d29ac8ddb5eeed3a07394a55b72e75df5d418d5887ef50"
413
+ },
414
+ {
415
+ "name": "000000000450.jpg",
416
+ "bytes": 49942,
417
+ "sha256": "3b1fe58cb414f373c61990a5fed4f1a6418a02b2e8a3ed3ecef613f4e7198068"
418
+ },
419
+ {
420
+ "name": "000000000459.jpg",
421
+ "bytes": 36307,
422
+ "sha256": "9dac859e6bc3eaf091e94593a005735f9c3c3e71c1c40a708b4c24da99b2e06c"
423
+ },
424
+ {
425
+ "name": "000000000471.jpg",
426
+ "bytes": 33837,
427
+ "sha256": "8f473ca6e651f74a74efea3673445230f6bb7d6ae92f76bf3c1e523853ec3995"
428
+ },
429
+ {
430
+ "name": "000000000472.jpg",
431
+ "bytes": 9286,
432
+ "sha256": "e86077ae0fa75248880ca12cdc9ef09bb68fa68083313ce280fd77082c780769"
433
+ },
434
+ {
435
+ "name": "000000000474.jpg",
436
+ "bytes": 37728,
437
+ "sha256": "e5a6b72ea2fda1cd1ea969018036e6da16fa491f9a2ac974a7361b539b00a155"
438
+ },
439
+ {
440
+ "name": "000000000486.jpg",
441
+ "bytes": 57241,
442
+ "sha256": "cb30e9ff9b1182fc9aa328f601f0ca640236eea29ec695b57edc11a572dfbfed"
443
+ },
444
+ {
445
+ "name": "000000000488.jpg",
446
+ "bytes": 48780,
447
+ "sha256": "9e1c9d4c88d38e6a2cd2f775bea82c137c14dc3b13f8430bcdadcb89ab0b7022"
448
+ },
449
+ {
450
+ "name": "000000000490.jpg",
451
+ "bytes": 26278,
452
+ "sha256": "1274c3c4010d45ddd84faf1c56f7c997c0c2533e4f25c6ccea25e8233e5684e5"
453
+ },
454
+ {
455
+ "name": "000000000491.jpg",
456
+ "bytes": 27309,
457
+ "sha256": "9d5732e879b066bfe8a38e3fcad64836fa1a5ac9f507625082c4b14fe449f993"
458
+ },
459
+ {
460
+ "name": "000000000502.jpg",
461
+ "bytes": 82455,
462
+ "sha256": "f7ce0feeb7699cd56886c64ac4ea923c76be97b34ee3a2ea0909c45e08411ec0"
463
+ },
464
+ {
465
+ "name": "000000000508.jpg",
466
+ "bytes": 36527,
467
+ "sha256": "0fc73f660a10ed91c52f76a2b34b5fa252bf70ff84f7b2a35374726388528ca2"
468
+ },
469
+ {
470
+ "name": "000000000510.jpg",
471
+ "bytes": 76888,
472
+ "sha256": "c2fcc1d44e81016f4c53e7e610c44dc28a2ca1bc5e73f73623129d261bff15e2"
473
+ },
474
+ {
475
+ "name": "000000000514.jpg",
476
+ "bytes": 30781,
477
+ "sha256": "073520d67d44551b4e0bc24d4eb3a6bb68bf00481a8b15d9f34479e787d2cba9"
478
+ },
479
+ {
480
+ "name": "000000000520.jpg",
481
+ "bytes": 50302,
482
+ "sha256": "2b971302ba56e1049294f9e0b198f37316148c8257b8d7344002aed624c45844"
483
+ },
484
+ {
485
+ "name": "000000000529.jpg",
486
+ "bytes": 61674,
487
+ "sha256": "5d9958bdec3062b05090258293a19af01d231de69b943d1ff0bb4a7b943e6db3"
488
+ },
489
+ {
490
+ "name": "000000000531.jpg",
491
+ "bytes": 33369,
492
+ "sha256": "111bb407e512f23fcc14bbc51ad4b312b0797332aab86ecd9373808286ed30b1"
493
+ },
494
+ {
495
+ "name": "000000000532.jpg",
496
+ "bytes": 68045,
497
+ "sha256": "60745e50cb857e4683d3622ac6c1e7ade63bd73ee458eb76a70455badaee2869"
498
+ },
499
+ {
500
+ "name": "000000000536.jpg",
501
+ "bytes": 19624,
502
+ "sha256": "745e538b3979ffa93f63bb294163e173d9a99413bce6cf3289215b541c9f1eb1"
503
+ },
504
+ {
505
+ "name": "000000000540.jpg",
506
+ "bytes": 73559,
507
+ "sha256": "32099f009fcb436bad1bd59b5d48b3e5620fa667a83db5a09879e158dd346103"
508
+ },
509
+ {
510
+ "name": "000000000542.jpg",
511
+ "bytes": 50365,
512
+ "sha256": "ef93fd2248a41119a34a86d11478b87bd0c715ff3c2c65f3f5f54a3f31a3dedf"
513
+ },
514
+ {
515
+ "name": "000000000544.jpg",
516
+ "bytes": 92299,
517
+ "sha256": "f599082d9c87db6029fc3d6e468074d1294dc98a8755152ca7324811aa1d10cd"
518
+ },
519
+ {
520
+ "name": "000000000560.jpg",
521
+ "bytes": 42878,
522
+ "sha256": "96801af258ded041845af111c4535dcb12a512cf22f6fd9854e5723920532d60"
523
+ },
524
+ {
525
+ "name": "000000000562.jpg",
526
+ "bytes": 14565,
527
+ "sha256": "e31320272d768add7113d41a9c65407fd4868da1229f8658fc877e9b07c4c794"
528
+ },
529
+ {
530
+ "name": "000000000564.jpg",
531
+ "bytes": 46726,
532
+ "sha256": "1f67bf49851ff43dba866f0cd6cc1b6f1d35ee75255a6092483550548584f477"
533
+ },
534
+ {
535
+ "name": "000000000569.jpg",
536
+ "bytes": 55042,
537
+ "sha256": "07655c58e2286ec5e8b74eee71a03841ccf732cbc502d6c380d894a14041ad5f"
538
+ },
539
+ {
540
+ "name": "000000000572.jpg",
541
+ "bytes": 34991,
542
+ "sha256": "b779e782a66c196373580de6ede5c4faacabf05fb521eab8df4d11b71d8d2770"
543
+ },
544
+ {
545
+ "name": "000000000575.jpg",
546
+ "bytes": 163333,
547
+ "sha256": "839789fe6192bbd5776761d675aa76017b67810b556f3e25e2f3a31acffd86f3"
548
+ },
549
+ {
550
+ "name": "000000000581.jpg",
551
+ "bytes": 45065,
552
+ "sha256": "60ad7a794ae3032c302c4e1d5111099921ce7e8df23df4401f60bdc74dc83bf1"
553
+ },
554
+ {
555
+ "name": "000000000584.jpg",
556
+ "bytes": 48307,
557
+ "sha256": "f1ae69b71470e4d4e88e342b69fa47187fe5c7a56882eac0e548107075f4716f"
558
+ },
559
+ {
560
+ "name": "000000000589.jpg",
561
+ "bytes": 36369,
562
+ "sha256": "b028805b2fb2c666ef72d4a7a01677bcf0ed56fb4d14cadc8646acdf379999c7"
563
+ },
564
+ {
565
+ "name": "000000000590.jpg",
566
+ "bytes": 41324,
567
+ "sha256": "dd687875b5ff4fd0a91dcc910690da36858271562ea908ff61661b4cec9b4cee"
568
+ },
569
+ {
570
+ "name": "000000000595.jpg",
571
+ "bytes": 91739,
572
+ "sha256": "8152ff314326c47105e065ec16ef28e1baa9dd640f40475fe385b612d5e65cf1"
573
+ },
574
+ {
575
+ "name": "000000000597.jpg",
576
+ "bytes": 31374,
577
+ "sha256": "f611f233ff6657baa61f32f573a213ef1b1af031e892f8b4e287c21a856497e7"
578
+ },
579
+ {
580
+ "name": "000000000599.jpg",
581
+ "bytes": 57584,
582
+ "sha256": "9d924b4353cca7295c149e3659866a18e78234f0dc701df119191152f4a31fec"
583
+ },
584
+ {
585
+ "name": "000000000605.jpg",
586
+ "bytes": 85596,
587
+ "sha256": "9135dd0723240d2d4f64ce2173901a0f23a222dea98b72e1259c28f28fa2aab6"
588
+ },
589
+ {
590
+ "name": "000000000612.jpg",
591
+ "bytes": 78481,
592
+ "sha256": "9ee977eaa2947ffa1508dfc8b6e3c179a9945ee3a55529f91ede04689f00e667"
593
+ },
594
+ {
595
+ "name": "000000000620.jpg",
596
+ "bytes": 51808,
597
+ "sha256": "4c7d0e5b1ac23a287f95640c4aaab93a0e120c384558e3fff70b96f6f1eb80ce"
598
+ },
599
+ {
600
+ "name": "000000000623.jpg",
601
+ "bytes": 30476,
602
+ "sha256": "c11d16bc49acabc2a52b990174110753dbe3a9a71eb7aa37af8f5fc4c616fb20"
603
+ },
604
+ {
605
+ "name": "000000000625.jpg",
606
+ "bytes": 75952,
607
+ "sha256": "0938276afa762c367dac4968bc9a3d4abf9d83db1f4bea67262bff976568e24c"
608
+ },
609
+ {
610
+ "name": "000000000626.jpg",
611
+ "bytes": 38403,
612
+ "sha256": "47b4a3b3fe24c6b1f77a9d89aa2e5d1a3b410b7ba611f54c252c2e13e975afc8"
613
+ },
614
+ {
615
+ "name": "000000000629.jpg",
616
+ "bytes": 77526,
617
+ "sha256": "be76e3e5bed8c8a9a0d8081844bfca7ce013093e746b66aad13922373644ad32"
618
+ },
619
+ {
620
+ "name": "000000000634.jpg",
621
+ "bytes": 36504,
622
+ "sha256": "d769636e9b9d22fa6fd4dcc2e683b2c95a5a9c247b3cc95df7367b1dba52f9bc"
623
+ },
624
+ {
625
+ "name": "000000000636.jpg",
626
+ "bytes": 46706,
627
+ "sha256": "8e948d6888e7bf449e91883d3a2b0d61804308aada31fbf289add4da4dd978e8"
628
+ },
629
+ {
630
+ "name": "000000000641.jpg",
631
+ "bytes": 63438,
632
+ "sha256": "8eae4239a000d602acb4c58801a3c070e4bf3da608e57e7a3dcbd5ef719895cc"
633
+ },
634
+ {
635
+ "name": "000000000643.jpg",
636
+ "bytes": 31400,
637
+ "sha256": "53d61e69ccf08b42a1cefa414c69a1c03d72aba2852e1fde35c4da3df8753b3f"
638
+ },
639
+ {
640
+ "name": "000000000650.jpg",
641
+ "bytes": 33865,
642
+ "sha256": "9bb45795336c1d05189fe51a77e04270cd1da8929d62060926798f3dd2d25204"
643
+ }
644
+ ]
645
+ }
source/convert-model.py ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Export an Ultralytics checkpoint and its metadata for one Rockchip chip."""
3
+
4
+ import argparse
5
+ import os
6
+ from pathlib import Path
7
+ import shutil
8
+ import tempfile
9
+
10
+
11
+ def main():
12
+ parser = argparse.ArgumentParser(description=__doc__)
13
+ parser.add_argument("model", help="Checkpoint path or official model name, e.g. yolo11n-seg.pt")
14
+ parser.add_argument("--chip", required=True, choices=("rk3576", "rk3588"))
15
+ parser.add_argument("--output", required=True, type=Path, help="New output directory")
16
+ parser.add_argument("--imgsz", type=int, help="Square input size; defaults depend on the task")
17
+ parser.add_argument("--precision", choices=("fp16", "int8", "mixed"), default="fp16")
18
+ parser.add_argument("--data", type=Path, help="Calibration YAML, image list, or directory; detection INT8 needs a dataset YAML")
19
+ parser.add_argument("--calibration-limit", type=int, default=100,
20
+ help="Maximum calibration images for mixed precision (default: 100)")
21
+ args = parser.parse_args()
22
+
23
+ destination = args.output.resolve()
24
+ if destination.exists():
25
+ parser.error("Output already exists; choose a new directory")
26
+ if args.precision != "fp16" and not args.data:
27
+ parser.error("Quantization requires --data with representative calibration images")
28
+ if args.imgsz and (args.imgsz < 32 or args.imgsz > 4096 or args.imgsz % 32):
29
+ parser.error("--imgsz must be a multiple of 32 between 32 and 4096")
30
+ if not 1 <= args.calibration_limit <= 10000:
31
+ parser.error("--calibration-limit must be between 1 and 10000")
32
+ checkpoint = Path(args.model).expanduser()
33
+ checkpoint = checkpoint.resolve() if checkpoint.is_file() else None
34
+ dataset = args.data.resolve() if args.data else None
35
+
36
+ # Conversion runs in an existing toolkit environment; do not install packages for the user.
37
+ os.environ["YOLO_AUTOINSTALL"] = "false"
38
+ from ultralytics import YOLO
39
+ from ultralytics.utils import YAML
40
+
41
+ previous_directory = Path.cwd()
42
+ try:
43
+ # Exporters write intermediate files beside the checkpoint. Keep the original untouched.
44
+ with tempfile.TemporaryDirectory(prefix="nvr-export-") as scratch:
45
+ os.chdir(scratch)
46
+ if checkpoint:
47
+ shutil.copy2(checkpoint, checkpoint.name)
48
+ model = YOLO(checkpoint.name if checkpoint else args.model)
49
+ size = args.imgsz or {"classify": 224, "semantic": 512, "depth": 384}.get(model.task, 640)
50
+ optimized = (args.precision == "mixed" or model.task in {"semantic", "depth"}
51
+ or (args.precision == "int8" and model.task != "detect"))
52
+ if optimized:
53
+ from rknn_export import export_optimized
54
+ binary, metadata = export_optimized(
55
+ model, args.chip, size, dataset, args.calibration_limit,
56
+ args.precision)
57
+ else:
58
+ settings = dict(format="rknn", name=args.chip, imgsz=size, batch=1,
59
+ quantize=8 if args.precision == "int8" else 16,
60
+ device="cpu", simplify=True, opset=19)
61
+ if dataset:
62
+ settings["data"] = str(dataset)
63
+ exported = Path(model.export(**settings))
64
+ binaries = list(exported.glob("*.rknn"))
65
+ if len(binaries) != 1:
66
+ raise RuntimeError("Expected one RKNN model in the export directory")
67
+ binary = binaries[0]
68
+ metadata = YAML.load(exported / "metadata.yaml")
69
+ metadata["precision"] = args.precision
70
+ metadata["target_platform"] = args.chip
71
+ metadata["coordinates"] = ("normalized" if args.precision == "int8"
72
+ and model.task == "detect" else "pixels")
73
+ metadata["preprocess"] = "center_crop" if model.task == "classify" else "letterbox"
74
+ destination.mkdir(parents=True)
75
+ shutil.copy2(binary, destination / "model.rknn")
76
+ YAML.save(destination / "metadata.yaml", metadata)
77
+ finally:
78
+ os.chdir(previous_directory)
79
+ print(f"Exported {model.task} for {args.chip}: {destination}")
80
+
81
+
82
+ if __name__ == "__main__":
83
+ main()
source/environment.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "python": "3.11.15",
3
+ "platform": "Linux-6.8.0-124-generic-x86_64-with-glibc2.39",
4
+ "ultralytics": "8.4.184",
5
+ "rknn_toolkit2": "2.3.2",
6
+ "tools": {
7
+ "convert-model.py": "43a013afc01235c14ffc630faa983461777c1d1a2ca5e77c47e906d7dca54847",
8
+ "rknn_export.py": "34b3c38badc7f9872b1ea1adbdd6e01b8f647a56157d7c69fe9578a553042af9"
9
+ }
10
+ }
source/rknn_export.py ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Calibration and task-aware RKNN export helpers."""
2
+
3
+ import ast
4
+ import math
5
+ from pathlib import Path
6
+
7
+ import cv2
8
+ import onnx
9
+ import yaml
10
+
11
+
12
+ IMAGE_SUFFIXES = {".jpg", ".jpeg", ".png", ".bmp", ".webp"}
13
+
14
+
15
+ def calibration_images(path, limit):
16
+ """Read image directories, image lists, or a dataset YAML without downloading data."""
17
+ path = Path(path).resolve()
18
+ if path.is_dir():
19
+ images = sorted(p for p in path.rglob("*") if p.suffix.lower() in IMAGE_SUFFIXES)
20
+ elif path.suffix.lower() in {".yaml", ".yml"}:
21
+ document = yaml.safe_load(path.read_text())
22
+ root = Path(document.get("path", "."))
23
+ if not root.is_absolute():
24
+ root = path.parent / root
25
+ split = document.get("val") or document.get("train")
26
+ if not split:
27
+ raise ValueError("Calibration YAML needs val or train image paths")
28
+ sources = split if isinstance(split, list) else [split]
29
+ images = []
30
+ for source in sources:
31
+ images.extend(calibration_images(root / source, limit))
32
+ elif path.suffix.lower() == ".txt":
33
+ images = []
34
+ for line in path.read_text().splitlines():
35
+ line = line.strip()
36
+ if line and not line.startswith("#"):
37
+ image = Path(line)
38
+ images.append(image if image.is_absolute() else path.parent / image)
39
+ elif path.suffix.lower() in IMAGE_SUFFIXES:
40
+ images = [path]
41
+ else:
42
+ raise ValueError("Calibration data must be an image directory, list, or dataset YAML")
43
+ images = list(dict.fromkeys(p.resolve() for p in images))[:limit]
44
+ if not images or any(not p.is_file() for p in images):
45
+ raise ValueError("Calibration images are missing or the dataset is empty")
46
+ return images
47
+
48
+
49
+ def prepare_calibration(images, directory, width, height, center_crop):
50
+ """Apply the application's crop/letterbox policy before RKNN calibration."""
51
+ import numpy as np
52
+
53
+ directory.mkdir()
54
+ paths = []
55
+ for index, path in enumerate(images):
56
+ image = cv2.imread(str(path), cv2.IMREAD_COLOR)
57
+ if image is None:
58
+ raise ValueError(f"Cannot read calibration image: {path}")
59
+ h, w = image.shape[:2]
60
+ if center_crop:
61
+ ratio = width / height
62
+ crop_w = min(w, int(h * ratio)) & ~1
63
+ crop_h = min(h, int(w / ratio)) & ~1
64
+ if min(crop_w, crop_h) < 2:
65
+ raise ValueError(f"Calibration image is too small: {path}")
66
+ x = ((w - crop_w) // 2) & ~1
67
+ y = ((h - crop_h) // 2) & ~1
68
+ output = cv2.resize(image[y:y + crop_h, x:x + crop_w], (width, height))
69
+ else:
70
+ scale = min(width / w, height / h)
71
+ rw = max(2, int(math.floor(w * scale + 0.5)) & ~1)
72
+ rh = max(2, int(math.floor(h * scale + 0.5)) & ~1)
73
+ x = ((width - rw) // 2) & ~1
74
+ y = ((height - rh) // 2) & ~1
75
+ output = np.full((height, width, 3), 114, dtype=np.uint8)
76
+ output[y:y + rh, x:x + rw] = cv2.resize(image, (rw, rh))
77
+ target = directory / f"{index:05d}.png"
78
+ if not cv2.imwrite(str(target), output):
79
+ raise RuntimeError(f"Cannot write calibration image: {target}")
80
+ paths.append(str(target))
81
+ dataset = directory / "images.txt"
82
+ dataset.write_text("\n".join(paths) + "\n")
83
+ return dataset
84
+
85
+
86
+ def floating_head_tensors(graph, head_index):
87
+ """Keep the complete prediction head and decoding in FP16."""
88
+ prefix = f"/model.{head_index}/"
89
+ tensors = {value for node in graph.node if node.name.startswith(prefix)
90
+ for value in node.output}
91
+ if not tensors:
92
+ raise ValueError("Cannot identify the prediction-head scope in this ONNX export")
93
+ return tensors
94
+
95
+
96
+ def floating_decode_tensors(graph):
97
+ """Keep terminal decoding separate from quantized learned predictions."""
98
+ producers = {name: node for node in graph.node for name in node.output}
99
+ pending = [value.name for value in graph.output]
100
+ protected = set()
101
+ learned = {"Conv", "ConvTranspose", "Gemm", "MatMul"}
102
+ while pending:
103
+ name = pending.pop()
104
+ node = producers.get(name)
105
+ if name in protected or node is None or node.op_type in learned:
106
+ continue
107
+ protected.add(name)
108
+ pending.extend(node.input)
109
+ return protected
110
+
111
+
112
+ def dense_output(graph, metadata, task):
113
+ """Return low-resolution dense predictions; reconstruct sampled pixels in C++."""
114
+ if task not in {"semantic", "depth"}:
115
+ return graph
116
+ producers = {name: node for node in graph.graph.node for name in node.output}
117
+ node = producers[graph.graph.output[0].name]
118
+ while node.op_type in {"Cast", "ArgMax", "Relu"}:
119
+ node = producers[node.input[0]]
120
+ if node.op_type != "Resize":
121
+ raise ValueError("Dense export needs a terminal bilinear Resize")
122
+ attributes = {a.name: onnx.helper.get_attribute_value(a) for a in node.attribute}
123
+ mode = attributes.get("coordinate_transformation_mode", b"half_pixel").decode()
124
+ if attributes.get("mode") != b"linear" or mode not in {"half_pixel", "align_corners"}:
125
+ raise ValueError("Unsupported dense resize convention")
126
+ inferred = onnx.shape_inference.infer_shapes(graph)
127
+ tensor = next((v for v in inferred.graph.value_info if v.name == node.input[0]), None)
128
+ if tensor is None or len(tensor.type.tensor_type.shape.dim) != 4:
129
+ raise ValueError("Cannot determine the dense prediction shape")
130
+ inputs = [value.name for value in inferred.graph.input]
131
+ result = onnx.utils.Extractor(inferred).extract_model(inputs, [node.input[0]])
132
+ metadata["dense_resize"] = mode
133
+ return result
134
+
135
+
136
+ def export_optimized(model, chip, size, data, limit, precision):
137
+ from rknn.api import RKNN
138
+
139
+ exported = Path(model.export(format="onnx", imgsz=size, batch=1, device="cpu",
140
+ opset=19, simplify=True, end2end=False)).resolve()
141
+ graph = onnx.load(str(exported))
142
+ metadata = {}
143
+ for entry in graph.metadata_props:
144
+ try:
145
+ metadata[entry.key] = ast.literal_eval(entry.value)
146
+ except (ValueError, SyntaxError):
147
+ metadata[entry.key] = entry.value
148
+ graph = dense_output(graph, metadata, model.task)
149
+ onnx.save(graph, str(exported))
150
+ result = exported.with_suffix(".rknn")
151
+
152
+ if precision != "fp16":
153
+ images = calibration_images(data, limit)
154
+ dataset = prepare_calibration(images, exported.parent / "calibration", size, size,
155
+ model.task == "classify")
156
+ head_index = model.model.model[-1].i
157
+ protected = (floating_head_tensors(graph.graph, head_index)
158
+ if precision == "mixed" else floating_decode_tensors(graph.graph))
159
+ head_prefix = f"/model.{head_index}/"
160
+ toolkit = RKNN(verbose=False)
161
+ try:
162
+ check(toolkit.config(mean_values=[[0, 0, 0]], std_values=[[255, 255, 255]],
163
+ target_platform=chip), "configure")
164
+ check(toolkit.load_onnx(model=str(exported)), "load ONNX")
165
+ check(toolkit.hybrid_quantization_step1(dataset=str(dataset), proposal=False),
166
+ "prepare mixed precision")
167
+ finally:
168
+ toolkit.release()
169
+ config_path = exported.with_suffix(".quantization.cfg")
170
+ config = yaml.safe_load(config_path.read_text())
171
+ # RKNN adds layout/conversion aliases such as output0-rs and output0_int8.
172
+ # Protecting only the public output would leave its packed source quantized.
173
+ matched = [key for key, parameter in config["quantize_parameters"].items()
174
+ if parameter.get("dtype") in {"float32", "float16", "int8", "uint8"}
175
+ and ((precision == "mixed" and key.startswith(head_prefix)) or any(
176
+ key == tensor or key.startswith(tensor + suffix)
177
+ for tensor in protected for suffix in ("_", "-", "#")))]
178
+ if not matched and precision == "mixed":
179
+ raise RuntimeError("Cannot identify floating-point prediction heads in this model")
180
+ config["custom_quantize_layers"] = {key: "float16" for key in matched}
181
+ config_path.write_text(yaml.safe_dump(config, sort_keys=False))
182
+
183
+ toolkit = RKNN(verbose=False)
184
+ try:
185
+ check(toolkit.hybrid_quantization_step2(
186
+ model_input=str(exported.with_suffix(".model")),
187
+ data_input=str(exported.with_suffix(".data")),
188
+ model_quantization_cfg=str(config_path)), "build mixed precision")
189
+ check(toolkit.export_rknn(str(result)), "save RKNN")
190
+ finally:
191
+ toolkit.release()
192
+ metadata.update(precision=precision, head_precision="fp16" if precision == "mixed" else "int8",
193
+ decode_precision="fp16" if matched else "none",
194
+ fp16_decode_tensors=len(matched), calibration_images=len(images))
195
+ print(f"{precision}: {len(matched)} FP16 head/decode tensors, {len(images)} calibration images")
196
+ else:
197
+ toolkit = RKNN(verbose=False)
198
+ try:
199
+ check(toolkit.config(mean_values=[[0, 0, 0]], std_values=[[255, 255, 255]],
200
+ target_platform=chip), "configure")
201
+ check(toolkit.load_onnx(model=str(exported)), "load ONNX")
202
+ check(toolkit.build(do_quantization=False), "build FP16")
203
+ check(toolkit.export_rknn(str(result)), "save RKNN")
204
+ finally:
205
+ toolkit.release()
206
+ metadata["precision"] = "fp16"
207
+ metadata["target_platform"] = chip
208
+ metadata["args"] = {**metadata.get("args", {}), "format": "rknn",
209
+ "precision": metadata["precision"]}
210
+ return result, metadata
211
+
212
+
213
+ def check(result, operation):
214
+ if result != 0:
215
+ raise RuntimeError(f"RKNN {operation} failed ({result})")
source/weights.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "name": "yolov10n",
4
+ "family": "yolov10",
5
+ "size": "n",
6
+ "task": "detect",
7
+ "imgsz": 640,
8
+ "bytes": 5860383,
9
+ "sha256": "11287ed0735678e7ba1ac2a9b3098c049155b3fde123992e724c1264bcc16b6f",
10
+ "source": "https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov10n.pt",
11
+ "file": "source/weights/yolov10n.pt"
12
+ },
13
+ {
14
+ "name": "yolov10s",
15
+ "family": "yolov10",
16
+ "size": "s",
17
+ "task": "detect",
18
+ "imgsz": 640,
19
+ "bytes": 16623111,
20
+ "sha256": "65fa8332c38a7189597a268897bce6c1026f9499711b9761fb0c2c639b91d4d6",
21
+ "source": "https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov10s.pt",
22
+ "file": "source/weights/yolov10s.pt"
23
+ },
24
+ {
25
+ "name": "yolov10m",
26
+ "family": "yolov10",
27
+ "size": "m",
28
+ "task": "detect",
29
+ "imgsz": 640,
30
+ "bytes": 33643667,
31
+ "sha256": "6dc78f7a88591cec1e8716b8f5c7e3aefa9206684f025d202be34439ccb329a0",
32
+ "source": "https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov10m.pt",
33
+ "file": "source/weights/yolov10m.pt"
34
+ },
35
+ {
36
+ "name": "yolov10b",
37
+ "family": "yolov10",
38
+ "size": "b",
39
+ "task": "detect",
40
+ "imgsz": 640,
41
+ "bytes": 41679663,
42
+ "sha256": "31ef0baecfa8010ebb4b53b0624836f30d73702b04710c23945782dba5d258c2",
43
+ "source": "https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov10b.pt",
44
+ "file": "source/weights/yolov10b.pt"
45
+ },
46
+ {
47
+ "name": "yolov10l",
48
+ "family": "yolov10",
49
+ "size": "l",
50
+ "task": "detect",
51
+ "imgsz": 640,
52
+ "bytes": 52425230,
53
+ "sha256": "d0685e1e597f73aba8e56bc9651b6bb939c5b2f201dff5de0b9ef2a6207ae301",
54
+ "source": "https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov10l.pt",
55
+ "file": "source/weights/yolov10l.pt"
56
+ },
57
+ {
58
+ "name": "yolov10x",
59
+ "family": "yolov10",
60
+ "size": "x",
61
+ "task": "detect",
62
+ "imgsz": 640,
63
+ "bytes": 64395854,
64
+ "sha256": "605982e0b2c2ff070351afc8df3ecb38c54cfd7f133813acb366f454eb79b9a6",
65
+ "source": "https://github.com/ultralytics/assets/releases/download/v8.4.0/yolov10x.pt",
66
+ "file": "source/weights/yolov10x.pt"
67
+ }
68
+ ]