Fix QuickTalk weights and add validated HuBERT files
Browse filesFiles changed (5)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394---license: apache-2.0library_name: pytorchtags:- audio-to-video- talking-head- digital-human- omnirt- opentalking---# QuickTalkThis repository contains the QuickTalk model files used by the OmniRT `quicktalk` audio-to-video runtime.## Files```textquicktalk.pth # QuickTalk PyTorch checkpointrepair.npy # QuickTalk repair parameters used by the runtime post-processing stage```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.Expected runtime layout:```text$OMNIRT_MODEL_ROOT/quicktalk/quicktalk.pthrepair.npychinese-hubert-large/config.jsonpreprocessor_config.jsonpytorch_model.binauxiliary/models/buffalo_l/<InsightFace model files>```## Repair Parameters`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.Keep `repair.npy` in the same QuickTalk model directory as `quicktalk.pth`.## Usage With OmniRTSet the model root and start the QuickTalk runtime through OmniRT:```bashexport OMNIRT_MODEL_ROOT=/path/to/modelsexport OMNIRT_QUICKTALK_MODEL_ROOT="$OMNIRT_MODEL_ROOT/quicktalk"export OMNIRT_QUICKTALK_RUNTIME=1export OMNIRT_QUICKTALK_DEVICE=cuda:0export OMNIRT_QUICKTALK_HUBERT_DEVICE=cuda:1omnirt-serve --host 0.0.0.0 --port 9000```OpenTalking can then connect through the unified OmniRT endpoint:```bashexport OMNIRT_ENDPOINT=http://127.0.0.1:9000```The QuickTalk WebSocket route is:```text/v1/audio2video/quicktalk```## Related Projects- OpenTalking: <https://github.com/datascale-ai/opentalking>- OmniRT: <https://github.com/datascale-ai/omnirt>## Security Notes`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.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:- only load it in a trusted environment;- only use it with the intended OmniRT QuickTalk loader;- do not load it with generic `torch.load` in an untrusted or multi-tenant environment;- prefer isolated runtime users, containers, or virtual machines for production deployments.The uploaded files in this repository are limited to the QuickTalk checkpoint and repair parameters:```textquicktalk.pthrepair.npy```No runtime caches, template caches, HuBERT weights, or InsightFace weights are included.12345678910111213141516171819202122232425262728293031323334---license: otherpipeline_tag: image-to-video---# QuickTalk weights for OpenTalkingThis repository contains the QuickTalk runtime files used by OpenTalking.## Files| Path | SHA256 | Notes || --- | --- | --- || `quicktalk.pth` | `fc8a7ea025c99a471ef00738874be5ecb6b5dfaf88ff6a1255a5d45a05d73001` | TorchScript QuickTalk model; verified with `torch.jit.load`. || `repair.npy` | `9ea50edde851bf3b12aa22d67b6f0db4f2930f3d9b7b3febcbd383e14117bfca` | QuickTalk repair asset. || `chinese-hubert-large/config.json` | `8511d73054ac289ef47a527efdfd6738d2cb60f69f2973fdc9277492d9ff854b` | HuBERT config matching the validated OpenTalking QuickTalk runtime. || `chinese-hubert-large/preprocessor_config.json` | `6334d6e0c5f2084c9a99b85ddff243cbc79dbaa4aa790bcddf8c41c496fab6fb` | HuBERT feature extractor config matching the validated OpenTalking QuickTalk runtime. || `chinese-hubert-large/pytorch_model.bin` | `9cf43abec3f0410ad6854afa4d376c69ccb364b48ddddfd25c4c5aa16398eab0` | HuBERT checkpoint matching `facebook/hubert-large-ls960-ft`, Apache-2.0 License. |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.## Download```bashhf download datascale-ai/quicktalk \quicktalk.pth \repair.npy \chinese-hubert-large/config.json \chinese-hubert-large/preprocessor_config.json \chinese-hubert-large/pytorch_model.bin \--local-dir models/quicktalk/checkpoints```OpenTalking still requires InsightFace `buffalo_l` files under `models/quicktalk/checkpoints/auxiliary/models/buffalo_l/`.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ "activation_dropout": 0.1, "apply_spec_augment": true, "architectures": [ "HubertModel" ], "attention_dropout": 0.1, "bos_token_id": 1, "classifier_proj_size": 256, "conv_bias": false, "conv_dim": [ 512, 512, 512, 512, 512, 512, 512 ], "conv_kernel": [ 10, 3, 3, 3, 3, 2, 2 ], "conv_stride": [ 5, 2, 2, 2, 2, 2, 2 ], "ctc_loss_reduction": "sum", "ctc_zero_infinity": false, "do_stable_layer_norm": true, "eos_token_id": 2, "feat_extract_activation": "gelu", "feat_extract_norm": "layer", "feat_proj_dropout": 0.0, "feat_proj_layer_norm": true, "final_dropout": 0.1, "hidden_act": "gelu", "hidden_dropout": 0.1, "hidden_size": 1024, "initializer_range": 0.02, "intermediate_size": 4096, "layer_norm_eps": 1e-05, "layerdrop": 0.1, "mask_feature_length": 10, "mask_feature_min_masks": 0, "mask_feature_prob": 0.0, "mask_time_length": 10, "mask_time_min_masks": 2, "mask_time_prob": 0.05, "model_type": "hubert", "num_attention_heads": 16, "num_conv_pos_embedding_groups": 16, "num_conv_pos_embeddings": 128, "num_feat_extract_layers": 7, "num_hidden_layers": 24, "pad_token_id": 0, "torch_dtype": "float32", "transformers_version": "4.20.0.dev0", "use_weighted_layer_sum": false, "vocab_size": 32}123456789{ "do_normalize": true, "feature_extractor_type": "Wav2Vec2FeatureExtractor", "feature_size": 1, "padding_side": "right", "padding_value": 0, "return_attention_mask": true, "sampling_rate": 16000}123version https://git-lfs.github.com/spec/v1oid sha256:9cf43abec3f0410ad6854afa4d376c69ccb364b48ddddfd25c4c5aa16398eab0size 1262057559123version https://git-lfs.github.com/spec/v1oid sha256:1e437f335ca17b9588a72a35b559058905096fc92b84b864e487b5a03ccd9d8esize 140604171123version https://git-lfs.github.com/spec/v1oid sha256:fc8a7ea025c99a471ef00738874be5ecb6b5dfaf88ff6a1255a5d45a05d73001size 140929404
README.md+21-81
chinese-hubert-large/config.jsonAdded+71
chinese-hubert-large/preprocessor_config.jsonAdded+9
chinese-hubert-large/pytorch_model.binAdded+3
quicktalk.pth+2-2