Complete X-VC, YuE2 audio remix and ClearVoice integration
This commit is contained in:
1 parent
83cd31878c
commit
b99abaea25
52 files changed
+1973
-122
No files matched your search
@@ -0,0 +1,55 @@
|
||||
# YuE2 Audio Remix und ClearVoice
|
||||
|
||||
YuE2 Audio Remix nutzt die vorhandene LadyPoly-UI und den vorhandenen
|
||||
YuE2-audio.cpp-Worker. Kein zusätzlicher UI-/GPU-Container ist notwendig.
|
||||
|
||||
## Audio Remix
|
||||
|
||||
- SheetSage2: `m-a-p/SheetSage2`, Revision
|
||||
`eab522a8168e8b8b8c4856bf8609cd86198f01fe`.
|
||||
- Backbone: `m-a-p/MERT-v2-FullSong`, Revision
|
||||
`d8ba1c745e733b3908ce6ad16ebeb17ac7600a42`.
|
||||
- Quellen und SHA-256 aller Dateien: `remix_sources.json`.
|
||||
- Eigene Python-Umgebung mit Transformers 4.45.2; CUDA-Pakete aus der
|
||||
Separator-Laufzeit werden gezielt geteilt. Fehlt diese, installiert der
|
||||
Restore eine eigene CUDA-PyTorch-Laufzeit.
|
||||
- In Deck unter Musik: „YuE2 Audio Remix“. In LadyPoly: „Remix a take“ →
|
||||
„Remix an uploaded recording“. Analyse lädt MERT/SheetSage2 auf die 5080,
|
||||
nachdem Deck die exklusive Musik-Freigabe erteilt und YuE2 entladen hat.
|
||||
- Bei einem Notenrasterfehler an einer harten Aufnahmegrenze wird nur die
|
||||
Analyse einmal mit zwei Sekunden stillem Ausklang wiederholt. Die Originaldatei
|
||||
bleibt unverändert; der Musikplan kann entsprechend eine Schluss-Pause enthalten.
|
||||
- Den erstellten ABC-Musikplan prüfen/bearbeiten; Modus `melody` für neue
|
||||
Begleitung oder `full` für Melodie und Harmonie. Danach Stil und Songtext
|
||||
eingeben und generieren. YuE2 bleibt zwischen Generierungen geladen.
|
||||
- Analyse rekonstruiert musikalische Struktur; sie erhält weder exakt den
|
||||
ursprünglichen Klang noch die Originalstimme.
|
||||
- WAV/FLAC/MP3 und andere FFmpeg-lesbare Formate, maximal 256 MiB/20 Minuten.
|
||||
Hochgeladenes Audio und Zwischenresultate werden nach der Analyse gelöscht.
|
||||
- Bearer-geschützter Upload: POST `/api/v1/music-remix/transcribe` mit
|
||||
Multipart `file`, optional `melody_only=true|false`. Status:
|
||||
GET `/api/v1/music-remix`. Installation verlangt Deck-Adminzugriff.
|
||||
- Musik-Endpunkt `/v1/audio/music`: zusätzlich `abc` und `cot=melody|full`.
|
||||
ACE-Step bleibt ein unabhängiger Adapter und akzeptiert diese Felder nicht.
|
||||
|
||||
## ClearVoice
|
||||
|
||||
- Modell: `alibabasglab/MossFormer2_SE_48K`, Revision
|
||||
`eff8c97925c8bec812af707814b3e5d777fd4503`.
|
||||
- Paket: `clearvoice==0.1.2`, separate NumPy-1.26.4-Umgebung. Der bestehende
|
||||
audio-separator behält seine eigenen NumPy-/RoFormer-Abhängigkeiten.
|
||||
- In Audio-Trennung ein eigenes Profil mit Aktivierung/GPU-Auswahl.
|
||||
Auf Athena wird die RTX 3060 voreingestellt. Kein stiller GPU-/CPU-Fallback.
|
||||
- In Separator Web „Sprache“ auswählen. ZIP: `Speech.wav` und
|
||||
`Background.wav`. Hintergrund ist das Residuum der Originalaufnahme;
|
||||
ClearVoice ist Sprachverbesserung, keine verlustfreie Quellentrennung.
|
||||
- 48-kHz-Ausgabe, kanalweise Dateiverarbeitung für Mono/Stereo und lange
|
||||
Aufnahmen. Damit wird die problematische direkte Array-Verarbeitung bei
|
||||
Aufnahmen über 20 Sekunden vermieden.
|
||||
- Modellquellen/Hashes, Profileinstellungen und Installationsrezepte werden
|
||||
im Konfigurationsbackup gespeichert bzw. durch feste Deck-Rezepte
|
||||
rekonstruiert. Medienresultate gehören nicht zum Konfigurationsbackup.
|
||||
|
||||
Originaldokumentation:
|
||||
https://huggingface.co/m-a-p/SheetSage2
|
||||
https://github.com/modelscope/ClearerVoice-Studio/tree/main/clearvoice
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
# X-VC voice conversion
|
||||
|
||||
Official source: https://github.com/Jerrister/X-VC at
|
||||
`49df8c591eafc48b096e466d96f9839f9c0dd739`.
|
||||
Official weights: https://huggingface.co/chenxie95/X-VC at
|
||||
`9e54747d8c4d1ef544b903e2300a4ba040dcc126`.
|
||||
`xvc_sources.json` pins all ten model, tokenizer, speaker-encoder and
|
||||
Resemble Enhance assets, including size and upstream checksums.
|
||||
The verified downloads total 7,206,037,113 bytes (6.71 GiB).
|
||||
`deploy/xvc-requirements.lock` records the CPU-import-tested environment.
|
||||
Resemble Enhance's training-only imports are removed, as in our old UI;
|
||||
its old DeepSpeed/Torch dependency pins are intentionally not installed.
|
||||
|
||||
## Architecture
|
||||
|
||||
The previous X-VC Gradio interface is retained. It converts source audio to
|
||||
a reference voice without training or a transcript. Native output is 16 kHz;
|
||||
optional Resemble Enhance produces a second 44.1-kHz output. The previous UI's
|
||||
20-second input limit is retained and displayed. Streaming mode is simulated
|
||||
chunked conversion, not a live microphone session.
|
||||
|
||||
`athena-xvc-web:0.1.0-deck1` is a rootless CPU-only forwarding container on
|
||||
host loopback port 8133. It forwards Gradio uploads, queue events and results
|
||||
to native Deck backend 8135 using a private bridge key. Backend 8135 must
|
||||
never be added to public network relays. Add only 8133 to the native network
|
||||
helper's service-port policy during the approved deployment.
|
||||
|
||||
The native backend owns the GPU weights. No model is loaded on UI import or
|
||||
startup. Conversion requires an enabled X-VC voice profile AND Deck's voice
|
||||
mode, acquires the shared GPU lease, and checks the selected GPU UUID.
|
||||
Weights stay resident between conversions; mode/profile/device changes
|
||||
terminate the native process and restart the empty UI backend. Default GPU
|
||||
is RTX 5080; RTX 3060 is selectable but not yet verified for conversion.
|
||||
|
||||
## Prepared, not activated (2026-10-05)
|
||||
|
||||
On Athena the isolated runtime and all assets are installed; the main library
|
||||
entry points to its real Hugging Face source using a relative symlink.
|
||||
The UI container exists in `created`/stopped state. The candidate profile is
|
||||
`xvc-profile-pending.json`, named `X-VC Studio`, API ID `xvc-studio`.
|
||||
The live profile list, endpoint activation, GPU mode and existing Deck image
|
||||
have not been changed. No conversion, GPU test or UI server has been started.
|
||||
CPU import passed with `MODEL is None` and no initialized CUDA context.
|
||||
|
||||
After authorization, stop Deck and run `deploy/prepare_xvc.py STATE
|
||||
--apply-profile` from the new full checkout. It refuses a running Deck and
|
||||
merges only the single inactive profile into the current profile list.
|
||||
Deploy the prepared application update (private port 8135 included), update
|
||||
the helper recipes, relay public UI port 8133, and start the UI container.
|
||||
Enable X-VC under voice profiles and select voice mode only when ready to test.
|
||||
The GPU conversion test is deliberately pending until then.
|
||||
|
||||
## Recovery
|
||||
|
||||
The configuration backup stores X-VC GPU selection, inactive/active profile
|
||||
state, original main-weight source, exact code/assets recipe identity and the
|
||||
stopped/running UI container state. Restore reinstalls the native package,
|
||||
redownloads every pinned component and verifies upstream checksums, then
|
||||
rebuilds the CPU forwarding container. Bridge-key mounts have a specific
|
||||
allowlist. Reference uploads and generated results are not configuration
|
||||
backup content; archive those separately if needed.
|
||||
Reference in new issue
Block a user