ZyaireYao commited on
Commit
0880690
·
verified ·
1 Parent(s): 4111522

Fix QuickTalk weights and add validated HuBERT files

Browse files
README.md CHANGED
@@ -1,94 +1,34 @@
1
  ---
2
- license: apache-2.0
3
- library_name: pytorch
4
- tags:
5
- - audio-to-video
6
- - talking-head
7
- - digital-human
8
- - omnirt
9
- - opentalking
10
  ---
11
 
12
- # QuickTalk
13
 
14
- This repository contains the QuickTalk model files used by the OmniRT `quicktalk` audio-to-video runtime.
15
 
16
  ## Files
17
 
18
- ```text
19
- quicktalk.pth # QuickTalk PyTorch checkpoint
20
- repair.npy # QuickTalk repair parameters used by the runtime post-processing stage
21
- ```
22
-
23
- This repository intentionally does **not** include third-party dependency weights such as HuBERT or InsightFace `buffalo_l`. Download those dependencies from their original sources according to their own licenses and place them next to these files when running OmniRT.
24
-
25
- Expected runtime layout:
26
-
27
- ```text
28
- $OMNIRT_MODEL_ROOT/quicktalk/
29
- quicktalk.pth
30
- repair.npy
31
- chinese-hubert-large/
32
- config.json
33
- preprocessor_config.json
34
- pytorch_model.bin
35
- auxiliary/models/buffalo_l/
36
- <InsightFace model files>
37
- ```
38
-
39
- ## Repair Parameters
40
-
41
- `repair.npy` is a required QuickTalk runtime parameter file. It is not a standalone neural network checkpoint. The runtime loads it after the main QuickTalk model to apply fixed repair parameters during post-processing, helping map the model output back to the template face more consistently.
42
 
43
- Keep `repair.npy` in the same QuickTalk model directory as `quicktalk.pth`.
44
-
45
- ## Usage With OmniRT
46
-
47
- Set the model root and start the QuickTalk runtime through OmniRT:
48
-
49
- ```bash
50
- export OMNIRT_MODEL_ROOT=/path/to/models
51
- export OMNIRT_QUICKTALK_MODEL_ROOT="$OMNIRT_MODEL_ROOT/quicktalk"
52
- export OMNIRT_QUICKTALK_RUNTIME=1
53
- export OMNIRT_QUICKTALK_DEVICE=cuda:0
54
- export OMNIRT_QUICKTALK_HUBERT_DEVICE=cuda:1
55
-
56
- omnirt-serve --host 0.0.0.0 --port 9000
57
- ```
58
 
59
- OpenTalking can then connect through the unified OmniRT endpoint:
60
 
61
  ```bash
62
- export OMNIRT_ENDPOINT=http://127.0.0.1:9000
63
- ```
64
-
65
- The QuickTalk WebSocket route is:
66
-
67
- ```text
68
- /v1/audio2video/quicktalk
69
- ```
70
-
71
- ## Related Projects
72
-
73
- - OpenTalking: <https://github.com/datascale-ai/opentalking>
74
- - OmniRT: <https://github.com/datascale-ai/omnirt>
75
-
76
- ## Security Notes
77
-
78
- `quicktalk.pth` is a PyTorch checkpoint. PyTorch checkpoint files are pickle-based, and unpickling arbitrary `.pth` files can execute code. For that reason, Hugging Face security scanners may flag this file as suspicious or unsafe, for example via Picklescan or generic Python obfuscation signatures.
79
-
80
- This warning is expected for many pickle-based PyTorch checkpoints and does not by itself prove that the file is malicious. It does mean you should treat the file as executable input:
81
-
82
- - only load it in a trusted environment;
83
- - only use it with the intended OmniRT QuickTalk loader;
84
- - do not load it with generic `torch.load` in an untrusted or multi-tenant environment;
85
- - prefer isolated runtime users, containers, or virtual machines for production deployments.
86
-
87
- The uploaded files in this repository are limited to the QuickTalk checkpoint and repair parameters:
88
-
89
- ```text
90
- quicktalk.pth
91
- repair.npy
92
  ```
93
 
94
- No runtime caches, template caches, HuBERT weights, or InsightFace weights are included.
 
1
  ---
2
+ license: other
3
+ pipeline_tag: image-to-video
 
 
 
 
 
 
4
  ---
5
 
6
+ # QuickTalk weights for OpenTalking
7
 
8
+ This repository contains the QuickTalk runtime files used by OpenTalking.
9
 
10
  ## Files
11
 
12
+ | Path | SHA256 | Notes |
13
+ | --- | --- | --- |
14
+ | `quicktalk.pth` | `fc8a7ea025c99a471ef00738874be5ecb6b5dfaf88ff6a1255a5d45a05d73001` | TorchScript QuickTalk model; verified with `torch.jit.load`. |
15
+ | `repair.npy` | `9ea50edde851bf3b12aa22d67b6f0db4f2930f3d9b7b3febcbd383e14117bfca` | QuickTalk repair asset. |
16
+ | `chinese-hubert-large/config.json` | `8511d73054ac289ef47a527efdfd6738d2cb60f69f2973fdc9277492d9ff854b` | HuBERT config matching the validated OpenTalking QuickTalk runtime. |
17
+ | `chinese-hubert-large/preprocessor_config.json` | `6334d6e0c5f2084c9a99b85ddff243cbc79dbaa4aa790bcddf8c41c496fab6fb` | HuBERT feature extractor config matching the validated OpenTalking QuickTalk runtime. |
18
+ | `chinese-hubert-large/pytorch_model.bin` | `9cf43abec3f0410ad6854afa4d376c69ccb364b48ddddfd25c4c5aa16398eab0` | HuBERT checkpoint matching `facebook/hubert-large-ls960-ft`, Apache-2.0 License. |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
+ The HuBERT directory mirrors the file combination validated with OpenTalking QuickTalk. Its `pytorch_model.bin` matches the public [facebook/hubert-large-ls960-ft](https://huggingface.co/facebook/hubert-large-ls960-ft) checkpoint; the config files are kept as the validated runtime configs. Please review the upstream model cards and licenses before redistribution.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
+ ## Download
23
 
24
  ```bash
25
+ hf download datascale-ai/quicktalk \
26
+ quicktalk.pth \
27
+ repair.npy \
28
+ chinese-hubert-large/config.json \
29
+ chinese-hubert-large/preprocessor_config.json \
30
+ chinese-hubert-large/pytorch_model.bin \
31
+ --local-dir models/quicktalk/checkpoints
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  ```
33
 
34
+ OpenTalking still requires InsightFace `buffalo_l` files under `models/quicktalk/checkpoints/auxiliary/models/buffalo_l/`.
chinese-hubert-large/config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.1,
3
+ "apply_spec_augment": true,
4
+ "architectures": [
5
+ "HubertModel"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "bos_token_id": 1,
9
+ "classifier_proj_size": 256,
10
+ "conv_bias": false,
11
+ "conv_dim": [
12
+ 512,
13
+ 512,
14
+ 512,
15
+ 512,
16
+ 512,
17
+ 512,
18
+ 512
19
+ ],
20
+ "conv_kernel": [
21
+ 10,
22
+ 3,
23
+ 3,
24
+ 3,
25
+ 3,
26
+ 2,
27
+ 2
28
+ ],
29
+ "conv_stride": [
30
+ 5,
31
+ 2,
32
+ 2,
33
+ 2,
34
+ 2,
35
+ 2,
36
+ 2
37
+ ],
38
+ "ctc_loss_reduction": "sum",
39
+ "ctc_zero_infinity": false,
40
+ "do_stable_layer_norm": true,
41
+ "eos_token_id": 2,
42
+ "feat_extract_activation": "gelu",
43
+ "feat_extract_norm": "layer",
44
+ "feat_proj_dropout": 0.0,
45
+ "feat_proj_layer_norm": true,
46
+ "final_dropout": 0.1,
47
+ "hidden_act": "gelu",
48
+ "hidden_dropout": 0.1,
49
+ "hidden_size": 1024,
50
+ "initializer_range": 0.02,
51
+ "intermediate_size": 4096,
52
+ "layer_norm_eps": 1e-05,
53
+ "layerdrop": 0.1,
54
+ "mask_feature_length": 10,
55
+ "mask_feature_min_masks": 0,
56
+ "mask_feature_prob": 0.0,
57
+ "mask_time_length": 10,
58
+ "mask_time_min_masks": 2,
59
+ "mask_time_prob": 0.05,
60
+ "model_type": "hubert",
61
+ "num_attention_heads": 16,
62
+ "num_conv_pos_embedding_groups": 16,
63
+ "num_conv_pos_embeddings": 128,
64
+ "num_feat_extract_layers": 7,
65
+ "num_hidden_layers": 24,
66
+ "pad_token_id": 0,
67
+ "torch_dtype": "float32",
68
+ "transformers_version": "4.20.0.dev0",
69
+ "use_weighted_layer_sum": false,
70
+ "vocab_size": 32
71
+ }
chinese-hubert-large/preprocessor_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "feature_extractor_type": "Wav2Vec2FeatureExtractor",
4
+ "feature_size": 1,
5
+ "padding_side": "right",
6
+ "padding_value": 0,
7
+ "return_attention_mask": true,
8
+ "sampling_rate": 16000
9
+ }
chinese-hubert-large/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cf43abec3f0410ad6854afa4d376c69ccb364b48ddddfd25c4c5aa16398eab0
3
+ size 1262057559
quicktalk.pth CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:1e437f335ca17b9588a72a35b559058905096fc92b84b864e487b5a03ccd9d8e
3
- size 140604171
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fc8a7ea025c99a471ef00738874be5ecb6b5dfaf88ff6a1255a5d45a05d73001
3
+ size 140929404