Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- code_v2.py +8 -4
- inference_output/Beat It_converted_mix.wav +0 -0
- inference_output/Billie Jean_converted_mix.wav +1 -1
- inference_output/vocals.wav +0 -0
- people/Bruno Mars/G_124930.pth +3 -0
- people/Bruno Mars/config.json +98 -0
- people/Bruno Mars/description.txt +1 -0
- people/Bruno Mars/image.png +0 -0
- people/Lady Gaga/image.png +0 -0
- requirements.txt +6 -1
.gitattributes
CHANGED
|
@@ -59,3 +59,4 @@ songs/Heal[[:space:]]the[[:space:]]World/vocals.wav filter=lfs diff=lfs merge=lf
|
|
| 59 |
songs/Man[[:space:]]in[[:space:]]the[[:space:]]mirror/instrumentals.wav filter=lfs diff=lfs merge=lfs -text
|
| 60 |
songs/Man[[:space:]]in[[:space:]]the[[:space:]]mirror/vocals.wav filter=lfs diff=lfs merge=lfs -text
|
| 61 |
songs/cover.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 59 |
songs/Man[[:space:]]in[[:space:]]the[[:space:]]mirror/instrumentals.wav filter=lfs diff=lfs merge=lfs -text
|
| 60 |
songs/Man[[:space:]]in[[:space:]]the[[:space:]]mirror/vocals.wav filter=lfs diff=lfs merge=lfs -text
|
| 61 |
songs/cover.png filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
inference_output/vocals.wav filter=lfs diff=lfs merge=lfs -text
|
code_v2.py
CHANGED
|
@@ -23,6 +23,9 @@ load_dotenv()
|
|
| 23 |
|
| 24 |
OpenAI.api_key = os.getenv('OPENAI_API_KEY')
|
| 25 |
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
|
| 28 |
client = OpenAI(
|
|
@@ -35,7 +38,8 @@ SONGS_DIR = CURRENT_DIR / "songs"
|
|
| 35 |
INFERENCE_OUTPUT_DIRNAME = CURRENT_DIR / "inference_output"
|
| 36 |
COVER_IMAGE_PATH = SONGS_DIR / "cover.png"
|
| 37 |
|
| 38 |
-
logo_image_path = CURRENT_DIR / "Logo.png"
|
|
|
|
| 39 |
|
| 40 |
# Ensure the inference output directory exists
|
| 41 |
INFERENCE_OUTPUT_DIRNAME.mkdir(parents=True, exist_ok=True)
|
|
@@ -237,7 +241,7 @@ css = """
|
|
| 237 |
# Gradio app with custom CSS and theme
|
| 238 |
with gr.Blocks(css=css) as app:
|
| 239 |
with gr.Row():
|
| 240 |
-
gr.Image(logo_image_path, container=
|
| 241 |
|
| 242 |
|
| 243 |
|
|
@@ -263,8 +267,8 @@ with gr.Blocks(css=css) as app:
|
|
| 263 |
converted_mix_audio = gr.Audio(label="Converted Mix (Converted Vocals + Instrumentals)", type="filepath")
|
| 264 |
convert_button.click(voice_conversion, inputs=[person_dropdown, song_dropdown], outputs=[converted_mix_audio])
|
| 265 |
|
| 266 |
-
generate_button = gr.Button("Generate
|
| 267 |
generate_button.click(gen_caption_image, inputs=[song_dropdown, person_dropdown], outputs=[gr.Image(label="Generated Image", type="numpy", height=300), gr.Textbox(label="Generated Caption")])
|
| 268 |
|
| 269 |
if __name__ == "__main__":
|
| 270 |
-
app.launch()
|
|
|
|
| 23 |
|
| 24 |
OpenAI.api_key = os.getenv('OPENAI_API_KEY')
|
| 25 |
|
| 26 |
+
logo_image_path = "Logo.png"
|
| 27 |
+
alchemy_image_path = "Alchemy AI.png"
|
| 28 |
+
technation_logo_blk = "technation_logo_blk.png"
|
| 29 |
|
| 30 |
|
| 31 |
client = OpenAI(
|
|
|
|
| 38 |
INFERENCE_OUTPUT_DIRNAME = CURRENT_DIR / "inference_output"
|
| 39 |
COVER_IMAGE_PATH = SONGS_DIR / "cover.png"
|
| 40 |
|
| 41 |
+
logo_image_path = CURRENT_DIR / "Logo.png"
|
| 42 |
+
|
| 43 |
|
| 44 |
# Ensure the inference output directory exists
|
| 45 |
INFERENCE_OUTPUT_DIRNAME.mkdir(parents=True, exist_ok=True)
|
|
|
|
| 241 |
# Gradio app with custom CSS and theme
|
| 242 |
with gr.Blocks(css=css) as app:
|
| 243 |
with gr.Row():
|
| 244 |
+
gr.Image(logo_image_path, container=False, show_label=False, show_download_button=False)
|
| 245 |
|
| 246 |
|
| 247 |
|
|
|
|
| 267 |
converted_mix_audio = gr.Audio(label="Converted Mix (Converted Vocals + Instrumentals)", type="filepath")
|
| 268 |
convert_button.click(voice_conversion, inputs=[person_dropdown, song_dropdown], outputs=[converted_mix_audio])
|
| 269 |
|
| 270 |
+
generate_button = gr.Button("Generate Social Media Post")
|
| 271 |
generate_button.click(gen_caption_image, inputs=[song_dropdown, person_dropdown], outputs=[gr.Image(label="Generated Image", type="numpy", height=300), gr.Textbox(label="Generated Caption")])
|
| 272 |
|
| 273 |
if __name__ == "__main__":
|
| 274 |
+
app.launch(share = True)
|
inference_output/Beat It_converted_mix.wav
CHANGED
|
Binary files a/inference_output/Beat It_converted_mix.wav and b/inference_output/Beat It_converted_mix.wav differ
|
|
|
inference_output/Billie Jean_converted_mix.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1764044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad51b2faadf9ffa9252d6ddbece26ceb37f50c5b27cd61a16968407d8ec51751
|
| 3 |
size 1764044
|
inference_output/vocals.wav
CHANGED
|
Binary files a/inference_output/vocals.wav and b/inference_output/vocals.wav differ
|
|
|
people/Bruno Mars/G_124930.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78db44697f188da3b1bb6d28ff5579da0df77ddab2121bb989cf685b76dd942b
|
| 3 |
+
size 542789469
|
people/Bruno Mars/config.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"train": {
|
| 3 |
+
"log_interval": 200,
|
| 4 |
+
"eval_interval": 4805,
|
| 5 |
+
"seed": 1234,
|
| 6 |
+
"epochs": 4040,
|
| 7 |
+
"learning_rate": 0.0001,
|
| 8 |
+
"betas": [
|
| 9 |
+
0.8,
|
| 10 |
+
0.99
|
| 11 |
+
],
|
| 12 |
+
"eps": 1e-09,
|
| 13 |
+
"batch_size": 8,
|
| 14 |
+
"fp16_run": false,
|
| 15 |
+
"bf16_run": false,
|
| 16 |
+
"lr_decay": 0.999875,
|
| 17 |
+
"segment_size": 10240,
|
| 18 |
+
"init_lr_ratio": 1,
|
| 19 |
+
"warmup_epochs": 0,
|
| 20 |
+
"c_mel": 45,
|
| 21 |
+
"c_kl": 1.0,
|
| 22 |
+
"use_sr": true,
|
| 23 |
+
"max_speclen": 512,
|
| 24 |
+
"port": "8001",
|
| 25 |
+
"keep_ckpts": 3,
|
| 26 |
+
"num_workers": 4,
|
| 27 |
+
"log_version": 0,
|
| 28 |
+
"ckpt_name_by_step": true,
|
| 29 |
+
"accumulate_grad_batches": 1
|
| 30 |
+
},
|
| 31 |
+
"data": {
|
| 32 |
+
"training_files": "filelists/44k/train.txt",
|
| 33 |
+
"validation_files": "filelists/44k/val.txt",
|
| 34 |
+
"max_wav_value": 32768.0,
|
| 35 |
+
"sampling_rate": 44100,
|
| 36 |
+
"filter_length": 2048,
|
| 37 |
+
"hop_length": 512,
|
| 38 |
+
"win_length": 2048,
|
| 39 |
+
"n_mel_channels": 80,
|
| 40 |
+
"mel_fmin": 0.0,
|
| 41 |
+
"mel_fmax": 22050
|
| 42 |
+
},
|
| 43 |
+
"model": {
|
| 44 |
+
"inter_channels": 192,
|
| 45 |
+
"hidden_channels": 192,
|
| 46 |
+
"filter_channels": 768,
|
| 47 |
+
"n_heads": 2,
|
| 48 |
+
"n_layers": 6,
|
| 49 |
+
"kernel_size": 3,
|
| 50 |
+
"p_dropout": 0.1,
|
| 51 |
+
"resblock": "1",
|
| 52 |
+
"resblock_kernel_sizes": [
|
| 53 |
+
3,
|
| 54 |
+
7,
|
| 55 |
+
11
|
| 56 |
+
],
|
| 57 |
+
"resblock_dilation_sizes": [
|
| 58 |
+
[
|
| 59 |
+
1,
|
| 60 |
+
3,
|
| 61 |
+
5
|
| 62 |
+
],
|
| 63 |
+
[
|
| 64 |
+
1,
|
| 65 |
+
3,
|
| 66 |
+
5
|
| 67 |
+
],
|
| 68 |
+
[
|
| 69 |
+
1,
|
| 70 |
+
3,
|
| 71 |
+
5
|
| 72 |
+
]
|
| 73 |
+
],
|
| 74 |
+
"upsample_rates": [
|
| 75 |
+
8,
|
| 76 |
+
8,
|
| 77 |
+
2,
|
| 78 |
+
2,
|
| 79 |
+
2
|
| 80 |
+
],
|
| 81 |
+
"upsample_initial_channel": 512,
|
| 82 |
+
"upsample_kernel_sizes": [
|
| 83 |
+
16,
|
| 84 |
+
16,
|
| 85 |
+
4,
|
| 86 |
+
4,
|
| 87 |
+
4
|
| 88 |
+
],
|
| 89 |
+
"n_layers_q": 3,
|
| 90 |
+
"use_spectral_norm": false,
|
| 91 |
+
"gin_channels": 256,
|
| 92 |
+
"ssl_dim": 256,
|
| 93 |
+
"n_speakers": 200
|
| 94 |
+
},
|
| 95 |
+
"spk": {
|
| 96 |
+
"BrunoMars": 0
|
| 97 |
+
}
|
| 98 |
+
}
|
people/Bruno Mars/description.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
A dynamic performer recognized for his catchy pop and R&B hits, and energetic live performances.
|
people/Bruno Mars/image.png
ADDED
|
people/Lady Gaga/image.png
ADDED
|
requirements.txt
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
so-vits-svc-fork
|
| 2 |
gradio
|
| 3 |
openai
|
| 4 |
-
python-dotenv
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
so-vits-svc-fork
|
| 2 |
gradio
|
| 3 |
openai
|
| 4 |
+
python-dotenv
|
| 5 |
+
numpy
|
| 6 |
+
librosa
|
| 7 |
+
scipy
|
| 8 |
+
Pillow
|
| 9 |
+
requests
|