hkblockchaintechnology commited on
Commit
eaca2c2
·
verified ·
1 Parent(s): 261e6ac

LYRA update: anthem 《香港嘅女孩》 + 2:29 showcase reel + HQ 44.1k audio

Browse files
Files changed (1) hide show
  1. README.md +49 -60
README.md CHANGED
@@ -1,105 +1,94 @@
1
  ---
2
  library_name: lyra-studio
3
  license: apache-2.0
4
- language:
5
- - yue
6
- - zh
7
- - en
8
- tags:
9
- - text-to-image
10
- - text-to-speech
11
- - music-generation
12
- - lip-sync
13
- - virtual-idol
14
- - cantonese
15
- - cantopop
16
- - digital-human
17
  ---
18
 
19
  # LYRA — an AI-native Cantopop idol
20
  ### 莉拉 · 一個喺機器入面出世嘅香港女仔
21
 
22
- LYRA is an **original AI-native character** built end-to-end on a single GPU by a *studio of
23
- specialist models* that cooperate like a small animation/music house — the same **methodology**
24
  behind characters like *Yuri* (AI.TALK), not a copy of one.
25
 
26
- She is a **Hong Kong girl** chasing her dream to become a Cantopop star, and she exists to
27
- **give positive energy back to the people of Hong Kong**.
28
 
29
  > **The lesson we took from the reference:** the moat is not the models — everyone has the models.
30
  > The moat is **forming a character**: one face, one voice, one tone, one timeline, never drifting.
31
- > So one bible drives every specialist. See `character/studio_core.py`.
32
 
33
- ## 🎬 The masterpiece — 「霓虹裡的我」 (Me in the Neon)
34
 
35
- `assets/video/neon_me_mv.mp4` — a 61-second Cantonese music video: title card → LYRA lip-syncing
36
- her own vocal, over a full AI-composed, AI-sung Cantopop song. **44.1 kHz.**
 
 
 
 
 
37
 
38
- | Asset | File |
39
  |---|---|
40
- | 🎬 Music video | `assets/video/neon_me_mv.mp4` |
41
- | 🎞️ Performance (isolated) | `assets/video/lyra_perf_song1.mp4` |
42
  | 🗣️ Talking clip | `assets/video/lyra_talk_sig.mp4` |
43
- | 🎵 Full song (44.1k) | `assets/music/song1_mix.mp3` |
44
- | 🎤 Vocal stem / 🎹 instrumental | `assets/music/song1_vocal.wav`, `song1_instrumental.wav` |
45
- | 🎨 Renders (9) | `assets/img/*.png` |
46
  | 🗣️ Cantonese voice lines | `assets/audio/*.wav` |
47
 
 
 
 
 
48
  ## 👥 The studio (one GPU, five departments)
49
 
50
  | Dept | Model | Role |
51
  |---|---|---|
52
  | 🧠 Director | **Qwen2.5-VL-7B-Instruct** | writes lyrics, scripts, shot prompts; judges |
53
  | 🎨 Concept Artist | **Qwen-Image 20B** | renders her face, outfits, scenery, title cards |
54
- | 🧑‍🎨 Vision Critic | **Qwen2.5-VL-7B-Instruct** | scores every frame against the bible, returns fixes |
55
- | 🗣️ Voice Actor | **Qwen3-TTS 1.7B + HK-Cantonese LoRA** (`jmtl/hk-cantonese-cc0-qwen3-tts`) | real Hong Kong Cantonese speech |
56
- | 🎵 Composer | **YuE 7B + 1B** | lyrics-to-song with a dedicated **Cantonese** tag |
57
- | 🎞️ Animator | **Wav2Lip** | lip-sync her portrait to her own voice |
58
  | ✂️ Editor | **ffmpeg** | title card + performance + song |
59
 
60
- **The self-improving loop:** the Critic reviews each render and its *fixes are fused back into the
61
- prompt and persisted* (`character/refinements.json`). Her identity sharpens every run.
62
 
63
  **Verified, not assumed:** her Cantonese was round-tripped through **Whisper** — intended
64
- `我唔係真人,但我一樣會唱到你心入面。` came back as `我不是真人但我一样会唱到你心里面`.
65
 
66
- ## 🧬 Her bible (the single source of truth)
67
 
68
  ```python
69
  CHARACTER = {
70
  "name": "LYRA", "home": "Hong Kong", "look_age": "19",
71
  "primary_language": "Cantonese (yue-HK)",
72
- "dream": "to become a Cantopop star",
73
- "mission":"to give positive energy back to the people of Hong Kong",
74
- "values": ["resilience", "warmth", "home", "never stop believing"],
75
- "origin": "grew up in a Mong Kok walk-up, watching the harbour lights from the rooftop",
76
- ...
77
  }
78
  ```
79
 
80
- ## 🛠️ How to reproduce (one box)
81
 
82
- 1. `scripts/setup_voice.sh` → isolated env for Qwen3-TTS, `scripts/merge_voice.sh` → bake the Cantonese voice
83
- 2. `scripts/setup_music.sh` → YuE env; `scripts/yue_sing.sh` → compose + sing
84
- 3. `scripts/setup_lipsync.sh` → Wav2Lip env; `scripts/studio_daemon.py` → resident image/critic server
85
- 4. `scripts/edit_mv.sh` → assemble the music video
86
 
87
- > Two non-obvious traps we hit and fixed: molab sets `PYTHONPATH` (breaking every isolated venv —
88
- > clear it), and `PYTHONSAFEPATH=1` (hide your script dir — set `PYTHONPATH` explicitly).
89
- > Current `torchaudio` also requires TorchCodec — we patched YuE's four save/load sites to `soundfile`.
90
 
91
  ## ⚖️ Credits & licenses
92
 
93
- This release ships **no model weights**, only artefacts and orchestration code.
94
- Upstream components keep their own licences — please respect them:
95
-
96
- - **Qwen-Image**, **Qwen2.5-VL-7B**, **Qwen3-TTS-12Hz-1.7B** — Apache-2.0 (Alibaba/Qwen)
97
- - **hk-cantonese-cc0-qwen3-tts** LoRA — Apache-2.0 (`jmtl`), trained on CC-0 Common Voice `yue`
98
- - **YuE** (s1-7B / s2-1B / xcodec) — see the YuE repo licence
99
- - **Wav2Lip** — research/non-commercial licence (Rudrabha et al.)
100
- - **ffmpeg** — LGPL/GPL
101
-
102
- **LYRA is an original fictional character.** She is not Yuri, not affiliated with AI.TALK, and not
103
- a likeness of any real person. Generated media here is released as a technical demo.
104
 
105
- > 《霓虹裡的我》 — 我唔係真人 但你會唔會 喺我嘅聲音裡面 搵到自己
 
 
1
  ---
2
  library_name: lyra-studio
3
  license: apache-2.0
4
+ language: [yue, zh, en]
5
+ tags: [text-to-image, text-to-speech, music-generation, lip-sync, virtual-idol, cantonese, cantopop, digital-human]
 
 
 
 
 
 
 
 
 
 
 
6
  ---
7
 
8
  # LYRA — an AI-native Cantopop idol
9
  ### 莉拉 · 一個喺機器入面出世嘅香港女仔
10
 
11
+ **LYRA is an original AI-native character**, built end-to-end on a single GPU by a *studio of
12
+ specialist models* cooperating like a small animation/music house — the same **methodology**
13
  behind characters like *Yuri* (AI.TALK), not a copy of one.
14
 
15
+ She is a **Hong Kong girl** chasing her dream to become a Cantopop star, who exists to
16
+ **give positive energy back to the people of Hong Kong.**
17
 
18
  > **The lesson we took from the reference:** the moat is not the models — everyone has the models.
19
  > The moat is **forming a character**: one face, one voice, one tone, one timeline, never drifting.
20
+ > One bible drives every specialist. See `character/studio_core.py`.
21
 
22
+ ## 🎬 Watch — `assets/video/lyra_showcase.mp4` (2:29)
23
 
24
+ | # | Song | Video |
25
+ |---|---|---|
26
+ | 1 | **《霓虹裡的我》** *Me in the Neon* — 58.7 s | `neon_me_mv.mp4` |
27
+ | 2 | **《香港嘅女孩》** *The Hong Kong Girl* — 84.3 s | `hongkong_girl_mv.mp4` |
28
+ | ★ | **Both, back to back** | `assets/video/lyra_showcase.mp4` |
29
+
30
+ Each is a title card → LYRA **lip-syncing her own sung vocal** → full Cantopop song. All **44.1 kHz**.
31
 
32
+ | Asset | Path |
33
  |---|---|
34
+ | 🎬 Showcase / MVs | `assets/video/lyra_showcase.mp4`, `neon_me_mv.mp4`, `hongkong_girl_mv.mp4` |
35
+ | 🎞️ Isolated performances | `assets/video/lyra_perf_song1.mp4`, `lyra_perf_song2.mp4` |
36
  | 🗣️ Talking clip | `assets/video/lyra_talk_sig.mp4` |
37
+ | 🎵 Songs (44.1k) | `assets/music/song1_mix.mp3`, `song2_mix.mp3` |
38
+ | 🎤 Stems | `song1_vocal.wav` / `song1_instrumental.wav` (+ song2) |
39
+ | 🎨 Renders (10) | `assets/img/*.png` |
40
  | 🗣️ Cantonese voice lines | `assets/audio/*.wav` |
41
 
42
+ **Lyrics — 《香港嘅女孩》**
43
+ > 我係香港嘅女孩 追住嗰道光 / 就算跌低 都要唱落去
44
+ > 我係香港嘅女孩 唔怕天黑 / 因為我哋一齊 就會有光
45
+
46
  ## 👥 The studio (one GPU, five departments)
47
 
48
  | Dept | Model | Role |
49
  |---|---|---|
50
  | 🧠 Director | **Qwen2.5-VL-7B-Instruct** | writes lyrics, scripts, shot prompts; judges |
51
  | 🎨 Concept Artist | **Qwen-Image 20B** | renders her face, outfits, scenery, title cards |
52
+ | 🧑‍🎨 Vision Critic | **Qwen2.5-VL-7B-Instruct** | scores each frame vs the bible, returns fixes |
53
+ | 🗣️ Voice Actor | **Qwen3-TTS 1.7B + HK-Cantonese LoRA** (`jmtl/hk-cantonese-cc0-qwen3-tts`) | true Hong Kong Cantonese |
54
+ | 🎵 Composer | **YuE 7B + 1B** | lyrics-to-song, dedicated **Cantonese** tag |
55
+ | 🎞️ Animator | **Wav2Lip** | lip-sync to her own voice |
56
  | ✂️ Editor | **ffmpeg** | title card + performance + song |
57
 
58
+ **Self-improving loop:** the Critic's *fixes are fused back into the prompt and persisted*
59
+ (`character/refinements.json`) — she sharpens every run.
60
 
61
  **Verified, not assumed:** her Cantonese was round-tripped through **Whisper** — intended
62
+ `我唔係真人,但我一樣會唱到你心入面。` returned as `我不是真人但我一样会唱到你心里面`.
63
 
64
+ ## 🧬 Her bible (single source of truth)
65
 
66
  ```python
67
  CHARACTER = {
68
  "name": "LYRA", "home": "Hong Kong", "look_age": "19",
69
  "primary_language": "Cantonese (yue-HK)",
70
+ "dream": "to become a Cantopop star",
71
+ "mission": "to give positive energy back to the people of Hong Kong",
72
+ "values": ["resilience", "warmth", "home", "never stop believing"],
73
+ "origin": "grew up in a Mong Kok walk-up, watching the harbour lights from the rooftop",
 
74
  }
75
  ```
76
 
77
+ ## 🛠️ Reproduce
78
 
79
+ `scripts/setup_voice.sh` → `merge_voice.sh` → `setup_music.sh` → `yue_sing.sh` →
80
+ `setup_lipsync.sh` → `studio_daemon.py` → `edit_mv.sh`
 
 
81
 
82
+ > Traps we hit: molab exports `PYTHONPATH` (breaks every isolated venv — clear it) and sets
83
+ > `PYTHONSAFEPATH=1` (hides your script dir). Current `torchaudio` demands TorchCodec, so YuE's
84
+ > four save/load sites were patched to `soundfile`.
85
 
86
  ## ⚖️ Credits & licenses
87
 
88
+ No model weights are shipped here — artefacts and orchestration code only.
89
+ - **Qwen-Image**, **Qwen2.5-VL-7B**, **Qwen3-TTS-12Hz-1.7B** — Apache-2.0 (Qwen/Alibaba)
90
+ - **hk-cantonese-cc0-qwen3-tts** LoRA — Apache-2.0 (`jmtl`), CC-0 Common Voice `yue`
91
+ - **YuE** — see upstream licence · **Wav2Lip** — research/non-commercial · **ffmpeg** — LGPL/GPL
 
 
 
 
 
 
 
92
 
93
+ **LYRA is an original fictional character.** Not Yuri, not affiliated with AI.TALK, not a likeness
94
+ of any real person. Released as a technical demo.