rvc-models / scripts /README.md
mistmlm's picture
docs: link the public repos and drop local workspace paths
90d25a2 verified
|
Raw History Blame Contribute Delete
1.85 kB
# scripts
The scripts still contain absolute paths from the workspace they were
written in; adjust the model/workspace paths before re-running. Run them
from the repository root.
## pipeline/ — reproducible export → compile path
| script | role |
|---|---|
| `stage1_hubert.py` | export the fixed-shape HuBERT ONNX |
| `stage1_rmvpe.py` | export the RMVPE E2E ONNX |
| `stage1_synthesizer.py` | split the synthesizer into encflow / flowreverse / decnsf |
| `stage2_sine_matmul.py` | replace the NSF `cumsum` with a matmul (QNN-friendly) |
| `stage3_hubert.py` | compile HuBERT on qai-hub → HTP context binary |
| `stage4_rmvpe.py` | compile RMVPE E2E on qai-hub |
| `stage5_synth.py` | compile the synthesizer parts on qai-hub |
| `stage5b_decnsf_external.py` | re-export decnsf with the sine gate externalized |
| `precompute_sine_gate.py` | host-side sine/gate precompute reference |
| `pull_bins.sh` | download compiled `.bin` files from qai-hub jobs |
| `run_rvc_npu.py` | host end-to-end runner / A/B harness |
| `qnn_resident.c` | resident QNN daemon used by `run_rvc_npu.py` (build locally) |
## setup/
| script | role |
|---|---|
| `download_pretrained.py` | fetch `hubert_base.pt`, RMVPE and base synthesizer weights |
## tools/
| script | role |
|---|---|
| `probe_hubert.py` | HuBERT state-dict / graph probe |
| `profile/profile_hubert_s23.py` | qai-hub profile for the HuBERT graph |
| `profile/profile_rmvpe_s23.py` | qai-hub profile for the RMVPE graph |
| `profile/stage5c_profile.py` | qai-hub profile for the synth graphs |
## archive/
Superseded variants, kept for provenance. See `archive/README.md`.
`archive/exploration/` holds one-off qai-hub job downloads, HF search/list
helpers, job inspection and source-fixing scripts. They are not part of the
build; keep them only if you need the provenance of an old job.