wpydcr commited on
Commit
26f1f28
·
1 Parent(s): 29be326

Add NanoAvatar models, bilingual model cards, and demo videos

Browse files
.gitattributes CHANGED
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ android-qnn/quality/cpu_fp32/audio10_fp32.onnx.data filter=lfs diff=lfs merge=lfs -text
37
+ android-qnn/quality/cpu_fp32/audio1_fp32.onnx.data filter=lfs diff=lfs merge=lfs -text
38
+ android-qnn/quality/cpu_fp32/face_fp32.onnx.data filter=lfs diff=lfs merge=lfs -text
39
+ assets/demo-en.mp4 filter=lfs diff=lfs merge=lfs -text
40
+ assets/demo-zh.mp4 filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,442 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ NanoAvatar Model License
2
+
3
+ Chinese HuBERT and its floating-point, quantized, and Android-compiled versions retain the upstream MIT license. This applies to:
4
+ full-precision/hubert_fp16.pt
5
+ quantized/hubert_w8a16.pt
6
+ Model files under android-qnn/models/hubert_flatgather_gelu_u16/
7
+
8
+ Upstream model and publisher: https://huggingface.co/TencentGameMate/chinese-hubert-large
9
+ Upstream project: https://github.com/TencentGameMate/chinese_speech_pretrain
10
+
11
+ The following NanoAvatar lip-sync models and their quantized or compiled versions are licensed under CC BY-NC 4.0:
12
+ full-precision/lip_fp32.pt
13
+ quantized/lip_mixed_int8.pt
14
+ Model files under android-qnn/quality/cpu_fp32/
15
+ Model files under android-qnn/quality/generator/
16
+
17
+ These models may be used for academic research and other noncommercial purposes, subject to attribution and the other terms of the license. Suggested attribution: NanoAvatar, with links to the project and license. Indicate modifications as required by the license.
18
+ For commercial licensing, contact wupingyu@mail.ustc.edu.cn.
19
+ Project: https://github.com/wpydcr/NanoAvatar
20
+ License: https://creativecommons.org/licenses/by-nc/4.0/
21
+
22
+ The licenses apply separately to the files listed above. They are not alternative license choices for the same file.
23
+
24
+ ===== MIT License Terms =====
25
+
26
+ MIT License
27
+
28
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
29
+
30
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33
+
34
+ ===== CC BY-NC 4.0 =====
35
+
36
+ Attribution-NonCommercial 4.0 International
37
+
38
+ =======================================================================
39
+
40
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
41
+ does not provide legal services or legal advice. Distribution of
42
+ Creative Commons public licenses does not create a lawyer-client or
43
+ other relationship. Creative Commons makes its licenses and related
44
+ information available on an "as-is" basis. Creative Commons gives no
45
+ warranties regarding its licenses, any material licensed under their
46
+ terms and conditions, or any related information. Creative Commons
47
+ disclaims all liability for damages resulting from their use to the
48
+ fullest extent possible.
49
+
50
+ Using Creative Commons Public Licenses
51
+
52
+ Creative Commons public licenses provide a standard set of terms and
53
+ conditions that creators and other rights holders may use to share
54
+ original works of authorship and other material subject to copyright
55
+ and certain other rights specified in the public license below. The
56
+ following considerations are for informational purposes only, are not
57
+ exhaustive, and do not form part of our licenses.
58
+
59
+ Considerations for licensors: Our public licenses are
60
+ intended for use by those authorized to give the public
61
+ permission to use material in ways otherwise restricted by
62
+ copyright and certain other rights. Our licenses are
63
+ irrevocable. Licensors should read and understand the terms
64
+ and conditions of the license they choose before applying it.
65
+ Licensors should also secure all rights necessary before
66
+ applying our licenses so that the public can reuse the
67
+ material as expected. Licensors should clearly mark any
68
+ material not subject to the license. This includes other CC-
69
+ licensed material, or material used under an exception or
70
+ limitation to copyright. More considerations for licensors:
71
+ wiki.creativecommons.org/Considerations_for_licensors
72
+
73
+ Considerations for the public: By using one of our public
74
+ licenses, a licensor grants the public permission to use the
75
+ licensed material under specified terms and conditions. If
76
+ the licensor's permission is not necessary for any reason--for
77
+ example, because of any applicable exception or limitation to
78
+ copyright--then that use is not regulated by the license. Our
79
+ licenses grant only permissions under copyright and certain
80
+ other rights that a licensor has authority to grant. Use of
81
+ the licensed material may still be restricted for other
82
+ reasons, including because others have copyright or other
83
+ rights in the material. A licensor may make special requests,
84
+ such as asking that all changes be marked or described.
85
+ Although not required by our licenses, you are encouraged to
86
+ respect those requests where reasonable. More considerations
87
+ for the public:
88
+ wiki.creativecommons.org/Considerations_for_licensees
89
+
90
+ =======================================================================
91
+
92
+ Creative Commons Attribution-NonCommercial 4.0 International Public
93
+ License
94
+
95
+ By exercising the Licensed Rights (defined below), You accept and agree
96
+ to be bound by the terms and conditions of this Creative Commons
97
+ Attribution-NonCommercial 4.0 International Public License ("Public
98
+ License"). To the extent this Public License may be interpreted as a
99
+ contract, You are granted the Licensed Rights in consideration of Your
100
+ acceptance of these terms and conditions, and the Licensor grants You
101
+ such rights in consideration of benefits the Licensor receives from
102
+ making the Licensed Material available under these terms and
103
+ conditions.
104
+
105
+
106
+ Section 1 -- Definitions.
107
+
108
+ a. Adapted Material means material subject to Copyright and Similar
109
+ Rights that is derived from or based upon the Licensed Material
110
+ and in which the Licensed Material is translated, altered,
111
+ arranged, transformed, or otherwise modified in a manner requiring
112
+ permission under the Copyright and Similar Rights held by the
113
+ Licensor. For purposes of this Public License, where the Licensed
114
+ Material is a musical work, performance, or sound recording,
115
+ Adapted Material is always produced where the Licensed Material is
116
+ synched in timed relation with a moving image.
117
+
118
+ b. Adapter's License means the license You apply to Your Copyright
119
+ and Similar Rights in Your contributions to Adapted Material in
120
+ accordance with the terms and conditions of this Public License.
121
+
122
+ c. Copyright and Similar Rights means copyright and/or similar rights
123
+ closely related to copyright including, without limitation,
124
+ performance, broadcast, sound recording, and Sui Generis Database
125
+ Rights, without regard to how the rights are labeled or
126
+ categorized. For purposes of this Public License, the rights
127
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
128
+ Rights.
129
+ d. Effective Technological Measures means those measures that, in the
130
+ absence of proper authority, may not be circumvented under laws
131
+ fulfilling obligations under Article 11 of the WIPO Copyright
132
+ Treaty adopted on December 20, 1996, and/or similar international
133
+ agreements.
134
+
135
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
136
+ any other exception or limitation to Copyright and Similar Rights
137
+ that applies to Your use of the Licensed Material.
138
+
139
+ f. Licensed Material means the artistic or literary work, database,
140
+ or other material to which the Licensor applied this Public
141
+ License.
142
+
143
+ g. Licensed Rights means the rights granted to You subject to the
144
+ terms and conditions of this Public License, which are limited to
145
+ all Copyright and Similar Rights that apply to Your use of the
146
+ Licensed Material and that the Licensor has authority to license.
147
+
148
+ h. Licensor means the individual(s) or entity(ies) granting rights
149
+ under this Public License.
150
+
151
+ i. NonCommercial means not primarily intended for or directed towards
152
+ commercial advantage or monetary compensation. For purposes of
153
+ this Public License, the exchange of the Licensed Material for
154
+ other material subject to Copyright and Similar Rights by digital
155
+ file-sharing or similar means is NonCommercial provided there is
156
+ no payment of monetary compensation in connection with the
157
+ exchange.
158
+
159
+ j. Share means to provide material to the public by any means or
160
+ process that requires permission under the Licensed Rights, such
161
+ as reproduction, public display, public performance, distribution,
162
+ dissemination, communication, or importation, and to make material
163
+ available to the public including in ways that members of the
164
+ public may access the material from a place and at a time
165
+ individually chosen by them.
166
+
167
+ k. Sui Generis Database Rights means rights other than copyright
168
+ resulting from Directive 96/9/EC of the European Parliament and of
169
+ the Council of 11 March 1996 on the legal protection of databases,
170
+ as amended and/or succeeded, as well as other essentially
171
+ equivalent rights anywhere in the world.
172
+
173
+ l. You means the individual or entity exercising the Licensed Rights
174
+ under this Public License. Your has a corresponding meaning.
175
+
176
+
177
+ Section 2 -- Scope.
178
+
179
+ a. License grant.
180
+
181
+ 1. Subject to the terms and conditions of this Public License,
182
+ the Licensor hereby grants You a worldwide, royalty-free,
183
+ non-sublicensable, non-exclusive, irrevocable license to
184
+ exercise the Licensed Rights in the Licensed Material to:
185
+
186
+ a. reproduce and Share the Licensed Material, in whole or
187
+ in part, for NonCommercial purposes only; and
188
+
189
+ b. produce, reproduce, and Share Adapted Material for
190
+ NonCommercial purposes only.
191
+
192
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
193
+ Exceptions and Limitations apply to Your use, this Public
194
+ License does not apply, and You do not need to comply with
195
+ its terms and conditions.
196
+
197
+ 3. Term. The term of this Public License is specified in Section
198
+ 6(a).
199
+
200
+ 4. Media and formats; technical modifications allowed. The
201
+ Licensor authorizes You to exercise the Licensed Rights in
202
+ all media and formats whether now known or hereafter created,
203
+ and to make technical modifications necessary to do so. The
204
+ Licensor waives and/or agrees not to assert any right or
205
+ authority to forbid You from making technical modifications
206
+ necessary to exercise the Licensed Rights, including
207
+ technical modifications necessary to circumvent Effective
208
+ Technological Measures. For purposes of this Public License,
209
+ simply making modifications authorized by this Section 2(a)
210
+ (4) never produces Adapted Material.
211
+
212
+ 5. Downstream recipients.
213
+
214
+ a. Offer from the Licensor -- Licensed Material. Every
215
+ recipient of the Licensed Material automatically
216
+ receives an offer from the Licensor to exercise the
217
+ Licensed Rights under the terms and conditions of this
218
+ Public License.
219
+
220
+ b. No downstream restrictions. You may not offer or impose
221
+ any additional or different terms or conditions on, or
222
+ apply any Effective Technological Measures to, the
223
+ Licensed Material if doing so restricts exercise of the
224
+ Licensed Rights by any recipient of the Licensed
225
+ Material.
226
+
227
+ 6. No endorsement. Nothing in this Public License constitutes or
228
+ may be construed as permission to assert or imply that You
229
+ are, or that Your use of the Licensed Material is, connected
230
+ with, or sponsored, endorsed, or granted official status by,
231
+ the Licensor or others designated to receive attribution as
232
+ provided in Section 3(a)(1)(A)(i).
233
+
234
+ b. Other rights.
235
+
236
+ 1. Moral rights, such as the right of integrity, are not
237
+ licensed under this Public License, nor are publicity,
238
+ privacy, and/or other similar personality rights; however, to
239
+ the extent possible, the Licensor waives and/or agrees not to
240
+ assert any such rights held by the Licensor to the limited
241
+ extent necessary to allow You to exercise the Licensed
242
+ Rights, but not otherwise.
243
+
244
+ 2. Patent and trademark rights are not licensed under this
245
+ Public License.
246
+
247
+ 3. To the extent possible, the Licensor waives any right to
248
+ collect royalties from You for the exercise of the Licensed
249
+ Rights, whether directly or through a collecting society
250
+ under any voluntary or waivable statutory or compulsory
251
+ licensing scheme. In all other cases the Licensor expressly
252
+ reserves any right to collect such royalties, including when
253
+ the Licensed Material is used other than for NonCommercial
254
+ purposes.
255
+
256
+
257
+ Section 3 -- License Conditions.
258
+
259
+ Your exercise of the Licensed Rights is expressly made subject to the
260
+ following conditions.
261
+
262
+ a. Attribution.
263
+
264
+ 1. If You Share the Licensed Material (including in modified
265
+ form), You must:
266
+
267
+ a. retain the following if it is supplied by the Licensor
268
+ with the Licensed Material:
269
+
270
+ i. identification of the creator(s) of the Licensed
271
+ Material and any others designated to receive
272
+ attribution, in any reasonable manner requested by
273
+ the Licensor (including by pseudonym if
274
+ designated);
275
+
276
+ ii. a copyright notice;
277
+
278
+ iii. a notice that refers to this Public License;
279
+
280
+ iv. a notice that refers to the disclaimer of
281
+ warranties;
282
+
283
+ v. a URI or hyperlink to the Licensed Material to the
284
+ extent reasonably practicable;
285
+
286
+ b. indicate if You modified the Licensed Material and
287
+ retain an indication of any previous modifications; and
288
+
289
+ c. indicate the Licensed Material is licensed under this
290
+ Public License, and include the text of, or the URI or
291
+ hyperlink to, this Public License.
292
+
293
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
294
+ reasonable manner based on the medium, means, and context in
295
+ which You Share the Licensed Material. For example, it may be
296
+ reasonable to satisfy the conditions by providing a URI or
297
+ hyperlink to a resource that includes the required
298
+ information.
299
+
300
+ 3. If requested by the Licensor, You must remove any of the
301
+ information required by Section 3(a)(1)(A) to the extent
302
+ reasonably practicable.
303
+
304
+ 4. If You Share Adapted Material You produce, the Adapter's
305
+ License You apply must not prevent recipients of the Adapted
306
+ Material from complying with this Public License.
307
+
308
+
309
+ Section 4 -- Sui Generis Database Rights.
310
+
311
+ Where the Licensed Rights include Sui Generis Database Rights that
312
+ apply to Your use of the Licensed Material:
313
+
314
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
315
+ to extract, reuse, reproduce, and Share all or a substantial
316
+ portion of the contents of the database for NonCommercial purposes
317
+ only;
318
+
319
+ b. if You include all or a substantial portion of the database
320
+ contents in a database in which You have Sui Generis Database
321
+ Rights, then the database in which You have Sui Generis Database
322
+ Rights (but not its individual contents) is Adapted Material; and
323
+
324
+ c. You must comply with the conditions in Section 3(a) if You Share
325
+ all or a substantial portion of the contents of the database.
326
+
327
+ For the avoidance of doubt, this Section 4 supplements and does not
328
+ replace Your obligations under this Public License where the Licensed
329
+ Rights include other Copyright and Similar Rights.
330
+
331
+
332
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
333
+
334
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
335
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
336
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
337
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
338
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
339
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
340
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
341
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
342
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
343
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
344
+
345
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
346
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
347
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
348
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
349
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
350
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
351
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
352
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
353
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
354
+
355
+ c. The disclaimer of warranties and limitation of liability provided
356
+ above shall be interpreted in a manner that, to the extent
357
+ possible, most closely approximates an absolute disclaimer and
358
+ waiver of all liability.
359
+
360
+
361
+ Section 6 -- Term and Termination.
362
+
363
+ a. This Public License applies for the term of the Copyright and
364
+ Similar Rights licensed here. However, if You fail to comply with
365
+ this Public License, then Your rights under this Public License
366
+ terminate automatically.
367
+
368
+ b. Where Your right to use the Licensed Material has terminated under
369
+ Section 6(a), it reinstates:
370
+
371
+ 1. automatically as of the date the violation is cured, provided
372
+ it is cured within 30 days of Your discovery of the
373
+ violation; or
374
+
375
+ 2. upon express reinstatement by the Licensor.
376
+
377
+ For the avoidance of doubt, this Section 6(b) does not affect any
378
+ right the Licensor may have to seek remedies for Your violations
379
+ of this Public License.
380
+
381
+ c. For the avoidance of doubt, the Licensor may also offer the
382
+ Licensed Material under separate terms or conditions or stop
383
+ distributing the Licensed Material at any time; however, doing so
384
+ will not terminate this Public License.
385
+
386
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
387
+ License.
388
+
389
+
390
+ Section 7 -- Other Terms and Conditions.
391
+
392
+ a. The Licensor shall not be bound by any additional or different
393
+ terms or conditions communicated by You unless expressly agreed.
394
+
395
+ b. Any arrangements, understandings, or agreements regarding the
396
+ Licensed Material not stated herein are separate from and
397
+ independent of the terms and conditions of this Public License.
398
+
399
+
400
+ Section 8 -- Interpretation.
401
+
402
+ a. For the avoidance of doubt, this Public License does not, and
403
+ shall not be interpreted to, reduce, limit, restrict, or impose
404
+ conditions on any use of the Licensed Material that could lawfully
405
+ be made without permission under this Public License.
406
+
407
+ b. To the extent possible, if any provision of this Public License is
408
+ deemed unenforceable, it shall be automatically reformed to the
409
+ minimum extent necessary to make it enforceable. If the provision
410
+ cannot be reformed, it shall be severed from this Public License
411
+ without affecting the enforceability of the remaining terms and
412
+ conditions.
413
+
414
+ c. No term or condition of this Public License will be waived and no
415
+ failure to comply consented to unless expressly agreed to by the
416
+ Licensor.
417
+
418
+ d. Nothing in this Public License constitutes or may be interpreted
419
+ as a limitation upon, or waiver of, any privileges and immunities
420
+ that apply to the Licensor or You, including from the legal
421
+ processes of any jurisdiction or authority.
422
+
423
+ =======================================================================
424
+
425
+ Creative Commons is not a party to its public
426
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
427
+ its public licenses to material it publishes and in those instances
428
+ will be considered the “Licensor.” The text of the Creative Commons
429
+ public licenses is dedicated to the public domain under the CC0 Public
430
+ Domain Dedication. Except for the limited purpose of indicating that
431
+ material is shared under a Creative Commons public license or as
432
+ otherwise permitted by the Creative Commons policies published at
433
+ creativecommons.org/policies, Creative Commons does not authorize the
434
+ use of the trademark "Creative Commons" or any other trademark or logo
435
+ of Creative Commons without its prior written consent including,
436
+ without limitation, in connection with any unauthorized modifications
437
+ to any of its public licenses or any other arrangements,
438
+ understandings, or agreements concerning use of licensed material. For
439
+ the avoidance of doubt, this paragraph does not form part of the
440
+ public licenses.
441
+
442
+ Creative Commons may be contacted at creativecommons.org.
README.md CHANGED
@@ -1,3 +1,74 @@
1
- ---
2
- license: cc-by-nc-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - zh
5
+ inference: false
6
+ license: other
7
+ license_name: nanoavatar-model-licenses
8
+ license_link: LICENSE
9
+ tags:
10
+ - nanoavatar
11
+ - talking-head
12
+ - lip-sync
13
+ - audio-driven
14
+ - audio-to-video
15
+ - real-time
16
+ - streaming
17
+ ---
18
+
19
+ # NanoAvatar
20
+
21
+ English | [简体中文](README.zh-CN.md) | [Code & Usage](https://github.com/wpydcr/NanoAvatar)
22
+
23
+ **A lightweight model for real-time interactive avatars, deployable on edge devices.**
24
+
25
+ On Snapdragon 8 Gen 3, the model achieves a measured throughput of **32 FPS**, with first-frame latency as low as **0.13 seconds**.
26
+
27
+ Generate high-definition video in real time on edge devices to reduce avatar applications' reliance on cloud GPU servers. Even in cloud deployments, NanoAvatar can substantially reduce compute requirements.
28
+
29
+ ## Demos
30
+
31
+ <table>
32
+ <tr>
33
+ <th align="center">English demo</th>
34
+ <th align="center">Chinese demo</th>
35
+ </tr>
36
+ <tr>
37
+ <td align="center" width="50%">
38
+ <video controls playsinline preload="metadata" width="280" style="max-width: 100%; height: auto;" src="https://huggingface.co/wpydcr/NanoAvatar/resolve/main/assets/demo-en.mp4" aria-label="English demo"></video>
39
+ </td>
40
+ <td align="center" width="50%">
41
+ <video controls playsinline preload="metadata" width="280" style="max-width: 100%; height: auto;" src="https://huggingface.co/wpydcr/NanoAvatar/resolve/main/assets/demo-zh.mp4" aria-label="Chinese demo"></video>
42
+ </td>
43
+ </tr>
44
+ </table>
45
+
46
+ ## Models
47
+
48
+ | Version | Directory | Contents |
49
+ | --- | --- | --- |
50
+ | Full precision | `full-precision/` | PyTorch: HuBERT FP16 and lip-sync model FP32 |
51
+ | Quantized | `quantized/` | PyTorch/CUDA: HuBERT W8A16 and mixed INT8 lip-sync model |
52
+ | Android compiled | `android-qnn/` | CPU: original FP32 face/audio encoders. QNN: HuBERT W8A16 and HTP FP16 generator |
53
+
54
+ The Android build targets Snapdragon 8 Gen 3 / HTP v75.
55
+
56
+ The model generates a **256 × 256 face region**, composited at the source video's resolution. Preserve the complete directory structure when downloading model files.
57
+
58
+ ## Performance
59
+
60
+ | Version | Platform / device | Throughput (FPS) | First-frame latency (ms) | Memory / VRAM (MiB) |
61
+ | --- | --- | ---: | ---: | ---: |
62
+ | Android compiled | Z60 Ultra · Snapdragon 8 Gen 3<br>Android 14 | 32 | 127 | 785 |
63
+ | Full precision | RTX 4090<br>Windows CUDA | 224 | 37 | 1119 |
64
+ | Quantized | RTX 4090<br>Windows CUDA | 333 | 18 | 834 |
65
+
66
+ ## License
67
+
68
+ [chinese-hubert-large](https://huggingface.co/TencentGameMate/chinese-hubert-large) and its quantized and compiled versions retain the upstream MIT license.
69
+
70
+ Our lip-sync model and its quantized and compiled versions use [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/). Academic research and other noncommercial uses are permitted, subject to attribution and the other license terms.
71
+
72
+ **Commercial licensing:** [wupingyu@mail.ustc.edu.cn](mailto:wupingyu@mail.ustc.edu.cn).
73
+
74
+ See [LICENSE](LICENSE) for the full terms.
README.zh-CN.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NanoAvatar
2
+
3
+ [English](README.md) | 简体中文 | [源码与使用](https://github.com/wpydcr/NanoAvatar)
4
+
5
+ **可端侧部署的实时交互数字人的轻量模型。**
6
+
7
+ 在骁龙 8 Gen 3上模型吞吐实测 **32 FPS**,首帧延迟低至 **0.13 秒**。
8
+
9
+ 通过端侧实时生成高清视频,减少数字人应用对云端 GPU 服务器的依赖。
10
+ 即使是云端应用,也能大幅减少算力消耗。
11
+
12
+ ## 视频演示
13
+
14
+ <table>
15
+ <tr>
16
+ <th align="center">中文演示</th>
17
+ <th align="center">英文演示</th>
18
+ </tr>
19
+ <tr>
20
+ <td align="center" width="50%">
21
+ <video controls playsinline preload="metadata" width="280" style="max-width: 100%; height: auto;" src="https://huggingface.co/wpydcr/NanoAvatar/resolve/main/assets/demo-zh.mp4" aria-label="中文演示"></video>
22
+ </td>
23
+ <td align="center" width="50%">
24
+ <video controls playsinline preload="metadata" width="280" style="max-width: 100%; height: auto;" src="https://huggingface.co/wpydcr/NanoAvatar/resolve/main/assets/demo-en.mp4" aria-label="英文演示"></video>
25
+ </td>
26
+ </tr>
27
+ </table>
28
+
29
+ ## 模型
30
+
31
+ | 版本 | 目录 | 内容 |
32
+ | --- | --- | --- |
33
+ | 全精度 | `full-precision/` | PyTorch:HuBERT FP16、口播模型 FP32 |
34
+ | 量化版 | `quantized/` | PyTorch/CUDA:HuBERT W8A16、口播模型混合 INT8 |
35
+ | Android 编译版 | `android-qnn/` | CPU:人脸/音频编码器原始 FP32;QNN:HuBERT W8A16、生成器 HTP FP16 |
36
+
37
+ Android 编译版面向骁龙 8 Gen 3 / HTP v75。
38
+
39
+ 模型生成人脸区域的分辨率为 **256 × 256**,最终画面按原视频尺寸合成。下载模型时请保留完整目录结构。
40
+
41
+ ## 性能参考
42
+
43
+ | 版本 | 平台 / 设备 | 生成吞吐(FPS) | 首帧延迟(ms) | 内存 / 显存(MiB) |
44
+ | --- | --- | ---: | ---: | ---: |
45
+ | Android 编译版 | Z60 Ultra · 骁龙 8 Gen 3<br>Android 14 | 32 | 127 | 785 |
46
+ | 全精度 | RTX 4090<br>Windows CUDA | 224 | 37 | 1119 |
47
+ | 量化版 | RTX 4090<br>Windows CUDA | 333 | 18 | 834 |
48
+
49
+
50
+ ## 许可
51
+
52
+ [chinese-hubert-large](https://huggingface.co/TencentGameMate/chinese-hubert-large) 及其量化、编译版本继承上游 MIT 许可。
53
+
54
+ 我们自己的口播模型及其量化、编译版本采用 [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/),可在遵守署名等许可条件的前提下用于学术研究及其他非商业用途。
55
+
56
+ **商业授权:**[wupingyu@mail.ustc.edu.cn](mailto:wupingyu@mail.ustc.edu.cn)。
57
+
58
+ 完整许可条款见 [LICENSE](LICENSE)。
android-qnn/models/hubert_flatgather_gelu_u16/model_ctx.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:844ac816f7c8803fea57c933e5b470d3fdccd1e8515e5d9ed96c8fd53f241985
3
+ size 939
android-qnn/models/hubert_flatgather_gelu_u16/model_ctx_qnn.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:142bb7d68c3e3edc75366ebeee20cbb4a86e2cbfea1f6136593126e9a93b21a3
3
+ size 324961776
android-qnn/phone_config.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "version": 1,
3
+ "qnn_host_version": "2.49.40",
4
+ "target_qnn_soc_enum": 57,
5
+ "target_htp_arch": 75,
6
+ "cache_format": "fp16-v1",
7
+ "hubert": {
8
+ "path": "models/hubert_flatgather_gelu_u16/model_ctx.onnx",
9
+ "provider": "QNN",
10
+ "sha256": {
11
+ "model_ctx.onnx": "844ac816f7c8803fea57c933e5b470d3fdccd1e8515e5d9ed96c8fd53f241985",
12
+ "model_ctx_qnn.bin": "142bb7d68c3e3edc75366ebeee20cbb4a86e2cbfea1f6136593126e9a93b21a3"
13
+ }
14
+ },
15
+ "audio1": {
16
+ "path": "quality/cpu_fp32/audio1_fp32.onnx",
17
+ "provider": "CPU",
18
+ "sha256": {
19
+ "audio1_fp32.onnx": "d5ff151440b6bc27326e94666949a8b8ee3c6d4f796f40e7a9a03e9e368a06ff",
20
+ "audio1_fp32.onnx.data": "2f08aa86644a3021b293fd8f99db21f6f2e8c19df71a5c56a98370eedf9244e5"
21
+ }
22
+ },
23
+ "audio10": {
24
+ "path": "quality/cpu_fp32/audio10_fp32.onnx",
25
+ "provider": "CPU",
26
+ "sha256": {
27
+ "audio10_fp32.onnx": "66b699ebb110a5253889777a432e3eea203220c8e903d968c3cc1975401528e1",
28
+ "audio10_fp32.onnx.data": "2f08aa86644a3021b293fd8f99db21f6f2e8c19df71a5c56a98370eedf9244e5"
29
+ }
30
+ },
31
+ "face": {
32
+ "path": "quality/cpu_fp32/face_fp32.onnx",
33
+ "provider": "CPU",
34
+ "sha256": {
35
+ "face_fp32.onnx": "e9b13d63aeb4871deac1f5d2cc33b7d0c870db280e51e7aad1f4aa89ed2bd5b3",
36
+ "face_fp32.onnx.data": "8a53cd762ff0f3d99d48160e436c6a94f057c1c311853ce6cf123200a6b1ad4c"
37
+ }
38
+ },
39
+ "generator": {
40
+ "path": "quality/generator/model_ctx.onnx",
41
+ "provider": "QNN",
42
+ "sha256": {
43
+ "model_ctx.onnx": "26ea12cf3266fa99714e1ea519d257b9afe82dd9de548c3324add2db4a386864",
44
+ "model_ctx_qnn.bin": "9babcc3953d899c05f00d53fa7bf9df914258a4e3bbf8c416c2c115913ac028a"
45
+ }
46
+ }
47
+ }
android-qnn/quality/cpu_fp32/audio10_fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:66b699ebb110a5253889777a432e3eea203220c8e903d968c3cc1975401528e1
3
+ size 13121
android-qnn/quality/cpu_fp32/audio10_fp32.onnx.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f08aa86644a3021b293fd8f99db21f6f2e8c19df71a5c56a98370eedf9244e5
3
+ size 20128800
android-qnn/quality/cpu_fp32/audio1_fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5ff151440b6bc27326e94666949a8b8ee3c6d4f796f40e7a9a03e9e368a06ff
3
+ size 13099
android-qnn/quality/cpu_fp32/audio1_fp32.onnx.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f08aa86644a3021b293fd8f99db21f6f2e8c19df71a5c56a98370eedf9244e5
3
+ size 20128800
android-qnn/quality/cpu_fp32/face_fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9b13d63aeb4871deac1f5d2cc33b7d0c870db280e51e7aad1f4aa89ed2bd5b3
3
+ size 22825
android-qnn/quality/cpu_fp32/face_fp32.onnx.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a53cd762ff0f3d99d48160e436c6a94f057c1c311853ce6cf123200a6b1ad4c
3
+ size 37764032
android-qnn/quality/generator/model_ctx.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:26ea12cf3266fa99714e1ea519d257b9afe82dd9de548c3324add2db4a386864
3
+ size 1110
android-qnn/quality/generator/model_ctx_qnn.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9babcc3953d899c05f00d53fa7bf9df914258a4e3bbf8c416c2c115913ac028a
3
+ size 50544896
assets/demo-en.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6084133cd965aa37443961a024950fe54186caf85e18547ebf10f51538ba2aef
3
+ size 9430625
assets/demo-zh.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3edfd6615f244f7e0cc1361d80bd6c036687594e4731239d6df3a5f2562cb31
3
+ size 9752165
quantized/hubert_w8a16.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:413b31bece9fa27395c5e31481c89b9baa783200a1527e965a06e8b26ca96a9f
3
+ size 330833248
quantized/lip_mixed_int8.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9fba43ae40f163bc2cc7a236c09834d1ff98f8aca6c6f4e64ba772ddc42294f
3
+ size 51344599