Spaces:
Runtime error
Runtime error
UVR5 UI update (#9)
Browse files- UVR5 UI update (b99a69160f96aa2268d8cbdd869d5808d175cfa2)
Co-authored-by: Eddycrack 864 <Eddycrack864@users.noreply.huggingface.co>
Files changed (22)
- README.md+1-1
- app.py+1499-682
- assets/config.jsonAdded+10
- assets/i18n/i18n.pyAdded+52
- assets/i18n/languages/en_US.jsonAdded+70
- assets/i18n/languages/es_ES.jsonAdded+70
- assets/i18n/languages/hi_IN.jsonAdded+70
- assets/i18n/languages/id_ID.jsonAdded+70
- assets/i18n/languages/it_IT.jsonAdded+70
- assets/i18n/languages/ja_JP.jsonAdded+70
- assets/i18n/languages/ko_KR.jsonAdded+70
- assets/i18n/languages/ms_MY.jsonAdded+70
- assets/i18n/languages/pt_BR.jsonAdded+70
- assets/i18n/languages/ru_RU.jsonAdded+70
- assets/i18n/languages/th_TH.jsonAdded+70
- assets/i18n/languages/tr_TR.jsonAdded+70
- assets/i18n/languages/uk_UA.jsonAdded+70
- assets/i18n/languages/zh_CN.jsonAdded+70
- assets/i18n/scan.pyAdded+64
- assets/themes/loadThemes.pyAdded+119
- assets/themes/themes_list.jsonAdded+24
- requirements.txt+3-3
5 unmodified lines67891011125 unmodified linessdk: gradioapp_file: app.pypinned: truesdk_version: 4.37.2---5 unmodified lines67891011125 unmodified linessdk: gradioapp_file: app.pypinned: truesdk_version: 5.10.0---
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683import osimport reimport randomfrom scipy.io.wavfile import writefrom scipy.io.wavfile import readimport numpy as npimport gradio as grimport yt_dlpimport spacesroformer_models = {'BS-Roformer-Viperx-1297.ckpt': 'model_bs_roformer_ep_317_sdr_12.9755.ckpt','BS-Roformer-Viperx-1296.ckpt': 'model_bs_roformer_ep_368_sdr_12.9628.ckpt','BS-Roformer-Viperx-1053.ckpt': 'model_bs_roformer_ep_937_sdr_10.5309.ckpt','Mel-Roformer-Viperx-1143.ckpt': 'model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt'}mdx23c_models = ['MDX23C_D1581.ckpt','MDX23C-8KFFT-InstVoc_HQ.ckpt','MDX23C-8KFFT-InstVoc_HQ_2.ckpt',]mdxnet_models = ['UVR-MDX-NET-Inst_full_292.onnx','UVR-MDX-NET_Inst_187_beta.onnx','UVR-MDX-NET_Inst_82_beta.onnx','UVR-MDX-NET_Inst_90_beta.onnx','UVR-MDX-NET_Main_340.onnx','UVR-MDX-NET_Main_390.onnx','UVR-MDX-NET_Main_406.onnx','UVR-MDX-NET_Main_427.onnx','UVR-MDX-NET_Main_438.onnx','UVR-MDX-NET-Inst_HQ_1.onnx','UVR-MDX-NET-Inst_HQ_2.onnx','UVR-MDX-NET-Inst_HQ_3.onnx','UVR-MDX-NET-Inst_HQ_4.onnx','UVR_MDXNET_Main.onnx','UVR-MDX-NET-Inst_Main.onnx','UVR_MDXNET_1_9703.onnx','UVR_MDXNET_2_9682.onnx','UVR_MDXNET_3_9662.onnx','UVR-MDX-NET-Inst_1.onnx','UVR-MDX-NET-Inst_2.onnx','UVR-MDX-NET-Inst_3.onnx','UVR_MDXNET_KARA.onnx','UVR_MDXNET_KARA_2.onnx','UVR_MDXNET_9482.onnx','UVR-MDX-NET-Voc_FT.onnx','Kim_Vocal_1.onnx','Kim_Vocal_2.onnx','Kim_Inst.onnx','Reverb_HQ_By_FoxJoy.onnx','UVR-MDX-NET_Crowd_HQ_1.onnx','kuielab_a_vocals.onnx','kuielab_a_other.onnx','kuielab_a_bass.onnx','kuielab_a_drums.onnx','kuielab_b_vocals.onnx','kuielab_b_other.onnx','kuielab_b_bass.onnx','kuielab_b_drums.onnx',]vrarch_models = ['1_HP-UVR.pth','2_HP-UVR.pth','3_HP-Vocal-UVR.pth','4_HP-Vocal-UVR.pth','5_HP-Karaoke-UVR.pth','6_HP-Karaoke-UVR.pth','7_HP2-UVR.pth','8_HP2-UVR.pth','9_HP2-UVR.pth','10_SP-UVR-2B-32000-1.pth','11_SP-UVR-2B-32000-2.pth','12_SP-UVR-3B-44100.pth','13_SP-UVR-4B-44100-1.pth','14_SP-UVR-4B-44100-2.pth','15_SP-UVR-MID-44100-1.pth','16_SP-UVR-MID-44100-2.pth','17_HP-Wind_Inst-UVR.pth','UVR-De-Echo-Aggressive.pth','UVR-De-Echo-Normal.pth','UVR-DeEcho-DeReverb.pth','UVR-DeNoise-Lite.pth','UVR-DeNoise.pth','UVR-BVE-4B_SN-44100-1.pth','MGM_HIGHEND_v4.pth','MGM_LOWEND_A_v4.pth','MGM_LOWEND_B_v4.pth','MGM_MAIN_v4.pth',]demucs_models = ['htdemucs_ft.yaml','htdemucs.yaml','hdemucs_mmi.yaml',]output_format = ['wav','flac','mp3',]mdxnet_overlap_values = ['0.25','0.5','0.75','0.99',]vrarch_window_size_values = ['320','512','1024',]demucs_overlap_values = ['0.25','0.50','0.75','0.99',]@spaces.GPU(duration=300)def download_audio(url):ydl_opts = {'format': 'bestaudio/best','outtmpl': 'ytdl/%(title)s.%(ext)s','postprocessors': [{'key': 'FFmpegExtractAudio','preferredcodec': 'wav','preferredquality': '192',}],}with yt_dlp.YoutubeDL(ydl_opts) as ydl:info_dict = ydl.extract_info(url, download=True)file_path = ydl.prepare_filename(info_dict).rsplit('.', 1)[0] + '.wav'sample_rate, audio_data = read(file_path)audio_array = np.asarray(audio_data, dtype=np.int16)return sample_rate, audio_array@spaces.GPU(duration=300)def roformer_separator(roformer_audio, roformer_model, roformer_output_format, roformer_overlap, roformer_segment_size):files_list = []files_list.clear()directory = "./outputs"random_id = str(random.randint(10000, 99999))pattern = f"{random_id}"os.makedirs("outputs", exist_ok=True)write(f'{random_id}.wav', roformer_audio[0], roformer_audio[1])full_roformer_model = roformer_models[roformer_model]prompt = f"audio-separator {random_id}.wav --model_filename {full_roformer_model} --output_dir=./outputs --output_format={roformer_output_format} --normalization=0.9 --mdxc_overlap={roformer_overlap} --mdxc_segment_size={roformer_segment_size}"os.system(prompt)for file in os.listdir(directory):if re.search(pattern, file):files_list.append(os.path.join(directory, file))stem1_file = files_list[0]stem2_file = files_list[1]return stem1_file, stem2_file@spaces.GPU(duration=300)def mdxc_separator(mdx23c_audio, mdx23c_model, mdx23c_output_format, mdx23c_segment_size, mdx23c_overlap, mdx23c_denoise):files_list = []files_list.clear()directory = "./outputs"random_id = str(random.randint(10000, 99999))pattern = f"{random_id}"os.makedirs("outputs", exist_ok=True)write(f'{random_id}.wav', mdx23c_audio[0], mdx23c_audio[1])prompt = f"audio-separator {random_id}.wav --model_filename {mdx23c_model} --output_dir=./outputs --output_format={mdx23c_output_format} --normalization=0.9 --mdxc_segment_size={mdx23c_segment_size} --mdxc_overlap={mdx23c_overlap}"if mdx23c_denoise:prompt += " --mdx_enable_denoise"os.system(prompt)for file in os.listdir(directory):if re.search(pattern, file):files_list.append(os.path.join(directory, file))stem1_file = files_list[0]stem2_file = files_list[1]return stem1_file, stem2_file@spaces.GPU(duration=300)def mdxnet_separator(mdxnet_audio, mdxnet_model, mdxnet_output_format, mdxnet_segment_size, mdxnet_overlap, mdxnet_denoise):files_list = []files_list.clear()directory = "./outputs"random_id = str(random.randint(10000, 99999))pattern = f"{random_id}"os.makedirs("outputs", exist_ok=True)write(f'{random_id}.wav', mdxnet_audio[0], mdxnet_audio[1])prompt = f"audio-separator {random_id}.wav --model_filename {mdxnet_model} --output_dir=./outputs --output_format={mdxnet_output_format} --normalization=0.9 --mdx_segment_size={mdxnet_segment_size} --mdx_overlap={mdxnet_overlap}"if mdxnet_denoise:prompt += " --mdx_enable_denoise"os.system(prompt)for file in os.listdir(directory):if re.search(pattern, file):files_list.append(os.path.join(directory, file))stem1_file = files_list[0]stem2_file = files_list[1]return stem1_file, stem2_file@spaces.GPU(duration=300)def vrarch_separator(vrarch_audio, vrarch_model, vrarch_output_format, vrarch_window_size, vrarch_agression, vrarch_tta, vrarch_high_end_process):files_list = []files_list.clear()directory = "./outputs"random_id = str(random.randint(10000, 99999))pattern = f"{random_id}"os.makedirs("outputs", exist_ok=True)write(f'{random_id}.wav', vrarch_audio[0], vrarch_audio[1])prompt = f"audio-separator {random_id}.wav --model_filename {vrarch_model} --output_dir=./outputs --output_format={vrarch_output_format} --normalization=0.9 --vr_window_size={vrarch_window_size} --vr_aggression={vrarch_agression}"if vrarch_tta:prompt += " --vr_enable_tta"if vrarch_high_end_process:prompt += " --vr_high_end_process"os.system(prompt)for file in os.listdir(directory):if re.search(pattern, file):files_list.append(os.path.join(directory, file))stem1_file = files_list[0]stem2_file = files_list[1]return stem1_file, stem2_file@spaces.GPU(duration=300)def demucs_separator(demucs_audio, demucs_model, demucs_output_format, demucs_shifts, demucs_overlap):files_list = []files_list.clear()directory = "./outputs"random_id = str(random.randint(10000, 99999))pattern = f"{random_id}"os.makedirs("outputs", exist_ok=True)write(f'{random_id}.wav', demucs_audio[0], demucs_audio[1])prompt = f"audio-separator {random_id}.wav --model_filename {demucs_model} --output_dir=./outputs --output_format={demucs_output_format} --normalization=0.9 --demucs_shifts={demucs_shifts} --demucs_overlap={demucs_overlap}"os.system(prompt)for file in os.listdir(directory):if re.search(pattern, file):files_list.append(os.path.join(directory, file))stem1_file = files_list[0]stem2_file = files_list[1]stem3_file = files_list[2]stem4_file = files_list[3]return stem1_file, stem2_file, stem3_file, stem4_filewith gr.Blocks(theme="NoCrypt/miku@1.2.2", title="🎵 UVR5 UI 🎵") as app:gr.Markdown("<h1> 🎵 UVR5 UI 🎵 </h1>")gr.Markdown("If you liked this HF Space you can give me a ❤️")gr.Markdown("Try UVR5 UI using Colab [here](https://colab.research.google.com/github/Eddycrack864/UVR5-UI/blob/main/UVR_UI.ipynb)")with gr.Tabs():with gr.TabItem("BS/Mel Roformer"):with gr.Row():roformer_model = gr.Dropdown(label = "Select the Model",choices=list(roformer_models.keys()),interactive = True)roformer_output_format = gr.Dropdown(label = "Select the Output Format",choices = output_format,interactive = True)with gr.Row():roformer_overlap = gr.Slider(minimum = 2,maximum = 4,step = 1,label = "Overlap",info = "Amount of overlap between prediction windows.",value = 4,interactive = True)roformer_segment_size = gr.Slider(minimum = 32,maximum = 4000,step = 32,label = "Segment Size",info = "Larger consumes more resources, but may give better results.",value = 256,interactive = True)with gr.Row():roformer_audio = gr.Audio(label = "Input Audio",type = "numpy",interactive = True)with gr.Accordion("Separation by Link", open = False):with gr.Row():roformer_link = gr.Textbox(label = "Link",placeholder = "Paste the link here",interactive = True)with gr.Row():gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")with gr.Row():roformer_download_button = gr.Button("Download!",variant = "primary")roformer_download_button.click(download_audio, [roformer_link], [roformer_audio])with gr.Row():roformer_button = gr.Button("Separate!", variant = "primary")with gr.Row():roformer_stem1 = gr.Audio(show_download_button = True,interactive = False,label = "Stem 1",type = "filepath")roformer_stem2 = gr.Audio(show_download_button = True,interactive = False,label = "Stem 2",type = "filepath")roformer_button.click(roformer_separator, [roformer_audio, roformer_model, roformer_output_format, roformer_overlap, roformer_segment_size], [roformer_stem1, roformer_stem2])with gr.TabItem("MDX23C"):with gr.Row():mdx23c_model = gr.Dropdown(label = "Select the Model",choices = mdx23c_models,interactive = True)mdx23c_output_format = gr.Dropdown(label = "Select the Output Format",choices = output_format,interactive = True)with gr.Row():mdx23c_segment_size = gr.Slider(minimum = 32,maximum = 4000,step = 32,label = "Segment Size",info = "Larger consumes more resources, but may give better results.",value = 256,interactive = True)mdx23c_overlap = gr.Slider(minimum = 2,maximum = 50,step = 1,label = "Overlap",info = "Amount of overlap between prediction windows.",value = 8,interactive = True)mdx23c_denoise = gr.Checkbox(label = "Denoise",info = "Enable denoising during separation.",value = False,interactive = True)with gr.Row():mdx23c_audio = gr.Audio(label = "Input Audio",type = "numpy",interactive = True)with gr.Accordion("Separation by Link", open = False):with gr.Row():mdx23c_link = gr.Textbox(label = "Link",placeholder = "Paste the link here",interactive = True)with gr.Row():gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")with gr.Row():mdx23c_download_button = gr.Button("Download!",variant = "primary")mdx23c_download_button.click(download_audio, [mdx23c_link], [mdx23c_audio])with gr.Row():mdx23c_button = gr.Button("Separate!", variant = "primary")with gr.Row():mdx23c_stem1 = gr.Audio(show_download_button = True,interactive = False,label = "Stem 1",type = "filepath")mdx23c_stem2 = gr.Audio(show_download_button = True,interactive = False,label = "Stem 2",type = "filepath")mdx23c_button.click(mdxc_separator, [mdx23c_audio, mdx23c_model, mdx23c_output_format, mdx23c_segment_size, mdx23c_overlap, mdx23c_denoise], [mdx23c_stem1, mdx23c_stem2])with gr.TabItem("MDX-NET"):with gr.Row():mdxnet_model = gr.Dropdown(label = "Select the Model",choices = mdxnet_models,interactive = True)mdxnet_output_format = gr.Dropdown(label = "Select the Output Format",choices = output_format,interactive = True)with gr.Row():mdxnet_segment_size = gr.Slider(minimum = 32,maximum = 4000,step = 32,label = "Segment Size",info = "Larger consumes more resources, but may give better results.",value = 256,interactive = True)mdxnet_overlap = gr.Dropdown(label = "Overlap",choices = mdxnet_overlap_values,value = mdxnet_overlap_values[0],interactive = True)mdxnet_denoise = gr.Checkbox(label = "Denoise",info = "Enable denoising during separation.",value = True,interactive = True)with gr.Row():mdxnet_audio = gr.Audio(label = "Input Audio",type = "numpy",interactive = True)with gr.Accordion("Separation by Link", open = False):with gr.Row():mdxnet_link = gr.Textbox(label = "Link",placeholder = "Paste the link here",interactive = True)with gr.Row():gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")with gr.Row():mdxnet_download_button = gr.Button("Download!",variant = "primary")mdxnet_download_button.click(download_audio, [mdxnet_link], [mdxnet_audio])with gr.Row():mdxnet_button = gr.Button("Separate!", variant = "primary")with gr.Row():mdxnet_stem1 = gr.Audio(show_download_button = True,interactive = False,label = "Stem 1",type = "filepath")mdxnet_stem2 = gr.Audio(show_download_button = True,interactive = False,label = "Stem 2",type = "filepath")mdxnet_button.click(mdxnet_separator, [mdxnet_audio, mdxnet_model, mdxnet_output_format, mdxnet_segment_size, mdxnet_overlap, mdxnet_denoise], [mdxnet_stem1, mdxnet_stem2])with gr.TabItem("VR ARCH"):with gr.Row():vrarch_model = gr.Dropdown(label = "Select the Model",choices = vrarch_models,interactive = True)vrarch_output_format = gr.Dropdown(label = "Select the Output Format",choices = output_format,interactive = True)with gr.Row():vrarch_window_size = gr.Dropdown(label = "Window Size",choices = vrarch_window_size_values,value = vrarch_window_size_values[0],interactive = True)vrarch_agression = gr.Slider(minimum = 1,maximum = 50,step = 1,label = "Agression",info = "Intensity of primary stem extraction.",value = 5,interactive = True)vrarch_tta = gr.Checkbox(label = "TTA",info = "Enable Test-Time-Augmentation; slow but improves quality.",value = True,visible = True,interactive = True,)vrarch_high_end_process = gr.Checkbox(label = "High End Process",info = "Mirror the missing frequency range of the output.",value = False,visible = True,interactive = True,)with gr.Row():vrarch_audio = gr.Audio(label = "Input Audio",type = "numpy",interactive = True)with gr.Accordion("Separation by Link", open = False):with gr.Row():vrarch_link = gr.Textbox(label = "Link",placeholder = "Paste the link here",interactive = True)with gr.Row():gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")with gr.Row():vrarch_download_button = gr.Button("Download!",variant = "primary")vrarch_download_button.click(download_audio, [vrarch_link], [vrarch_audio])with gr.Row():vrarch_button = gr.Button("Separate!", variant = "primary")with gr.Row():vrarch_stem1 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = "Stem 1")vrarch_stem2 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = "Stem 2")vrarch_button.click(vrarch_separator, [vrarch_audio, vrarch_model, vrarch_output_format, vrarch_window_size, vrarch_agression, vrarch_tta, vrarch_high_end_process], [vrarch_stem1, vrarch_stem2])with gr.TabItem("Demucs"):with gr.Row():demucs_model = gr.Dropdown(label = "Select the Model",choices = demucs_models,interactive = True)demucs_output_format = gr.Dropdown(label = "Select the Output Format",choices = output_format,interactive = True)with gr.Row():demucs_shifts = gr.Slider(minimum = 1,maximum = 20,step = 1,label = "Shifts",info = "Number of predictions with random shifts, higher = slower but better quality.",value = 2,interactive = True)demucs_overlap = gr.Dropdown(label = "Overlap",choices = demucs_overlap_values,value = demucs_overlap_values[0],interactive = True)with gr.Row():demucs_audio = gr.Audio(label = "Input Audio",type = "numpy",interactive = True)with gr.Accordion("Separation by Link", open = False):with gr.Row():demucs_link = gr.Textbox(label = "Link",placeholder = "Paste the link here",interactive = True)with gr.Row():gr.Markdown("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)")with gr.Row():demucs_download_button = gr.Button("Download!",variant = "primary")demucs_download_button.click(download_audio, [demucs_link], [demucs_audio])with gr.Row():demucs_button = gr.Button("Separate!", variant = "primary")with gr.Row():demucs_stem1 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = "Stem 1")demucs_stem2 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = "Stem 2")with gr.Row():demucs_stem3 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = "Stem 3")demucs_stem4 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = "Stem 4")demucs_button.click(demucs_separator, [demucs_audio, demucs_model, demucs_output_format, demucs_shifts, demucs_overlap], [demucs_stem1, demucs_stem2, demucs_stem3, demucs_stem4])with gr.TabItem("Credits"):gr.Markdown("""UVR5 UI created by **[Eddycrack 864](https://github.com/Eddycrack864).** Join **[AI HUB](https://discord.gg/aihub)** community.* python-audio-separator by [beveradb](https://github.com/beveradb).* Special thanks to [Ilaria](https://github.com/TheStingerX) for hosting this space and help.* Thanks to [Mikus](https://github.com/cappuch) for the help with the code.* Thanks to [Nick088](https://huggingface.co/Nick088) for the help to fix roformers.* Thanks to [yt_dlp](https://github.com/yt-dlp/yt-dlp) devs.* Separation by link source code and improvements by [Blane187](https://huggingface.co/Blane187).You can donate to the original UVR5 project here:[](https://www.buymeacoffee.com/uvr5)""")app.queue()app.launch()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500import osimport subprocessimport reimport platformimport torchimport loggingimport yt_dlpimport spacesimport gradio as grimport assets.themes.loadThemes as loadThemesfrom audio_separator.separator import Separatorfrom assets.i18n.i18n import I18nAutoi18n = I18nAuto()device = "cuda" if torch.cuda.is_available() else "cpu"use_autocast = device == "cuda"if os.path.isdir("env"):if platform.system() == "Windows":separator_location = ".\\env\\Scripts\\audio-separator.exe"elif platform.system() == "Linux":separator_location = "env/bin/audio-separator"else:separator_location = "audio-separator"#=========================## Roformer Models ##=========================#roformer_models = {'BS-Roformer-Viperx-1297': 'model_bs_roformer_ep_317_sdr_12.9755.ckpt','BS-Roformer-Viperx-1296': 'model_bs_roformer_ep_368_sdr_12.9628.ckpt','BS-Roformer-Viperx-1053': 'model_bs_roformer_ep_937_sdr_10.5309.ckpt','Mel-Roformer-Viperx-1143': 'model_mel_band_roformer_ep_3005_sdr_11.4360.ckpt','BS-Roformer-De-Reverb': 'deverb_bs_roformer_8_384dim_10depth.ckpt','Mel-Roformer-Crowd-Aufr33-Viperx': 'mel_band_roformer_crowd_aufr33_viperx_sdr_8.7144.ckpt','Mel-Roformer-Denoise-Aufr33': 'denoise_mel_band_roformer_aufr33_sdr_27.9959.ckpt','Mel-Roformer-Denoise-Aufr33-Aggr' : 'denoise_mel_band_roformer_aufr33_aggr_sdr_27.9768.ckpt','Mel-Roformer-Karaoke-Aufr33-Viperx': 'mel_band_roformer_karaoke_aufr33_viperx_sdr_10.1956.ckpt','MelBand Roformer | Vocals by Kimberley Jensen' : 'vocals_mel_band_roformer.ckpt','MelBand Roformer Kim | FT by unwa' : 'mel_band_roformer_kim_ft_unwa.ckpt','MelBand Roformer Kim | Inst V1 by Unwa' : 'melband_roformer_inst_v1.ckpt','MelBand Roformer Kim | Inst V1 (E) by Unwa' : 'melband_roformer_inst_v1e.ckpt','MelBand Roformer Kim | Inst V2 by Unwa' : 'melband_roformer_inst_v2.ckpt','MelBand Roformer Kim | InstVoc Duality V1 by Unwa' : 'melband_roformer_instvoc_duality_v1.ckpt','MelBand Roformer Kim | InstVoc Duality V2 by Unwa' : 'melband_roformer_instvox_duality_v2.ckpt','MelBand Roformer | De-Reverb by anvuew' : 'dereverb_mel_band_roformer_anvuew_sdr_19.1729.ckpt','MelBand Roformer | De-Reverb Less Aggressive by anvuew' : 'dereverb_mel_band_roformer_less_aggressive_anvuew_sdr_18.8050.ckpt','MelBand Roformer | De-Reverb-Echo by Sucial' : 'dereverb-echo_mel_band_roformer_sdr_10.0169.ckpt','MelBand Roformer | De-Reverb-Echo V2 by Sucial' : 'dereverb-echo_mel_band_roformer_sdr_13.4843_v2.ckpt','MelBand Roformer Kim | SYHFT by SYH99999' : 'MelBandRoformerSYHFT.ckpt','MelBand Roformer Kim | SYHFT V2 by SYH99999' : 'MelBandRoformerSYHFTV2.ckpt','MelBand Roformer Kim | SYHFT V2.5 by SYH99999' : 'MelBandRoformerSYHFTV2.5.ckpt','MelBand Roformer Kim | SYHFT V3 by SYH99999' : 'MelBandRoformerSYHFTV3Epsilon.ckpt','MelBand Roformer Kim | Big SYHFT V1 by SYH99999' : 'MelBandRoformerBigSYHFTV1.ckpt','MelBand Roformer Kim | Big Beta 4 FT by unwa' : 'melband_roformer_big_beta4.ckpt','MelBand Roformer Kim | Big Beta 5e FT by unwa' : 'melband_roformer_big_beta5e.ckpt','BS Roformer | Chorus Male-Female by Sucial' : 'model_chorus_bs_roformer_ep_267_sdr_24.1275.ckpt','MelBand Roformer | Aspiration by Sucial' : 'aspiration_mel_band_roformer_sdr_18.9845.ckpt','MelBand Roformer | Aspiration Less Aggressive by Sucial' : 'aspiration_mel_band_roformer_less_aggr_sdr_18.1201.ckpt','MelBand Roformer | Bleed Suppressor V1 by unwa-97chris' : 'mel_band_roformer_bleed_suppressor_v1.ckpt'}#=========================## MDX23C Models ##=========================#mdx23c_models = ['MDX23C_D1581.ckpt','MDX23C-8KFFT-InstVoc_HQ.ckpt','MDX23C-8KFFT-InstVoc_HQ_2.ckpt','MDX23C-De-Reverb-aufr33-jarredou.ckpt','MDX23C-DrumSep-aufr33-jarredou.ckpt']#=========================## MDXN-NET Models ##=========================#mdxnet_models = ['UVR-MDX-NET-Inst_full_292.onnx','UVR-MDX-NET_Inst_187_beta.onnx','UVR-MDX-NET_Inst_82_beta.onnx','UVR-MDX-NET_Inst_90_beta.onnx','UVR-MDX-NET_Main_340.onnx','UVR-MDX-NET_Main_390.onnx','UVR-MDX-NET_Main_406.onnx','UVR-MDX-NET_Main_427.onnx','UVR-MDX-NET_Main_438.onnx','UVR-MDX-NET-Inst_HQ_1.onnx','UVR-MDX-NET-Inst_HQ_2.onnx','UVR-MDX-NET-Inst_HQ_3.onnx','UVR-MDX-NET-Inst_HQ_4.onnx','UVR-MDX-NET-Inst_HQ_5.onnx','UVR_MDXNET_Main.onnx','UVR-MDX-NET-Inst_Main.onnx','UVR_MDXNET_1_9703.onnx','UVR_MDXNET_2_9682.onnx','UVR_MDXNET_3_9662.onnx','UVR-MDX-NET-Inst_1.onnx','UVR-MDX-NET-Inst_2.onnx','UVR-MDX-NET-Inst_3.onnx','UVR_MDXNET_KARA.onnx','UVR_MDXNET_KARA_2.onnx','UVR_MDXNET_9482.onnx','UVR-MDX-NET-Voc_FT.onnx','Kim_Vocal_1.onnx','Kim_Vocal_2.onnx','Kim_Inst.onnx','Reverb_HQ_By_FoxJoy.onnx','UVR-MDX-NET_Crowd_HQ_1.onnx','kuielab_a_vocals.onnx','kuielab_a_other.onnx','kuielab_a_bass.onnx','kuielab_a_drums.onnx','kuielab_b_vocals.onnx','kuielab_b_other.onnx','kuielab_b_bass.onnx','kuielab_b_drums.onnx',]#========================## VR-ARCH Models ##========================#vrarch_models = ['1_HP-UVR.pth','2_HP-UVR.pth','3_HP-Vocal-UVR.pth','4_HP-Vocal-UVR.pth','5_HP-Karaoke-UVR.pth','6_HP-Karaoke-UVR.pth','7_HP2-UVR.pth','8_HP2-UVR.pth','9_HP2-UVR.pth','10_SP-UVR-2B-32000-1.pth','11_SP-UVR-2B-32000-2.pth','12_SP-UVR-3B-44100.pth','13_SP-UVR-4B-44100-1.pth','14_SP-UVR-4B-44100-2.pth','15_SP-UVR-MID-44100-1.pth','16_SP-UVR-MID-44100-2.pth','17_HP-Wind_Inst-UVR.pth','UVR-De-Echo-Aggressive.pth','UVR-De-Echo-Normal.pth','UVR-DeEcho-DeReverb.pth','UVR-De-Reverb-aufr33-jarredou.pth','UVR-DeNoise-Lite.pth','UVR-DeNoise.pth','UVR-BVE-4B_SN-44100-1.pth','MGM_HIGHEND_v4.pth','MGM_LOWEND_A_v4.pth','MGM_LOWEND_B_v4.pth','MGM_MAIN_v4.pth',]#=======================## DEMUCS Models ##=======================#demucs_models = ['htdemucs_ft.yaml','htdemucs_6s.yaml','htdemucs.yaml','hdemucs_mmi.yaml',]output_format = ['wav','flac','mp3','ogg','opus','m4a','aiff','ac3']found_files = []logs = []out_dir = "./outputs"models_dir = "./models"extensions = (".wav", ".flac", ".mp3", ".ogg", ".opus", ".m4a", ".aiff", ".ac3")def download_audio(url, output_dir="ytdl"):os.makedirs(output_dir, exist_ok=True)ydl_opts = {'format': 'bestaudio/best','postprocessors': [{'key': 'FFmpegExtractAudio','preferredcodec': 'wav','preferredquality': '32',}],'outtmpl': os.path.join(output_dir, '%(title)s.%(ext)s'),'postprocessor_args': ['-acodec', 'pcm_f32le'],}try:with yt_dlp.YoutubeDL(ydl_opts) as ydl:info = ydl.extract_info(url, download=False)video_title = info['title']ydl.download([url])file_path = os.path.join(output_dir, f"{video_title}.wav")if os.path.exists(file_path):return os.path.abspath(file_path)else:raise Exception("Something went wrong")except Exception as e:raise Exception(f"Error extracting audio with yt-dlp: {str(e)}")def leaderboard(list_filter):try:result = subprocess.run([separator_location, "-l", f"--list_filter={list_filter}"],capture_output=True,text=True,)if result.returncode != 0:return f"Error: {result.stderr}"return "<table border='1'>" + "".join(f"<tr style='{'font-weight: bold; font-size: 1.2em;' if i == 0 else ''}'>" +"".join(f"<td>{cell}</td>" for cell in re.split(r"\s{2,}", line.strip())) +"</tr>"for i, line in enumerate(re.findall(r"^(?!-+)(.+)$", result.stdout.strip(), re.MULTILINE))) + "</table>"except Exception as e:return f"Error: {e}"@spaces.GPU(duration=60)def roformer_separator(audio, model_key, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):base_name = os.path.splitext(os.path.basename(audio))[0]roformer_model = roformer_models[model_key]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=out_dir,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,output_single_stem=single_stem,mdxc_params={"segment_size": segment_size,"override_model_segment_size": override_seg_size,"batch_size": batch_size,"overlap": overlap,})progress(0.2, desc="Loading model...")separator.load_model(model_filename=roformer_model)progress(0.7, desc="Separating audio...")separation = separator.separate(audio)stems = [os.path.join(out_dir, file_name) for file_name in separation]if single_stem.strip():return stems[0], Nonereturn stems[0], stems[1]except Exception as e:raise RuntimeError(f"Roformer separation failed: {e}") from e@spaces.GPU(duration=60)def mdxc_separator(audio, model, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):base_name = os.path.splitext(os.path.basename(audio))[0]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=out_dir,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,output_single_stem=single_stem,mdxc_params={"segment_size": segment_size,"override_model_segment_size": override_seg_size,"batch_size": batch_size,"overlap": overlap,})progress(0.2, desc="Loading model...")separator.load_model(model_filename=model)progress(0.7, desc="Separating audio...")separation = separator.separate(audio)stems = [os.path.join(out_dir, file_name) for file_name in separation]if single_stem.strip():return stems[0], Nonereturn stems[0], stems[1]except Exception as e:raise RuntimeError(f"MDX23C separation failed: {e}") from e@spaces.GPU(duration=60)def mdxnet_separator(audio, model, out_format, hop_length, segment_size, denoise, overlap, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):base_name = os.path.splitext(os.path.basename(audio))[0]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=out_dir,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,output_single_stem=single_stem,mdx_params={"hop_length": hop_length,"segment_size": segment_size,"overlap": overlap,"batch_size": batch_size,"enable_denoise": denoise,})progress(0.2, desc="Loading model...")separator.load_model(model_filename=model)progress(0.7, desc="Separating audio...")separation = separator.separate(audio)stems = [os.path.join(out_dir, file_name) for file_name in separation]if single_stem.strip():return stems[0], Nonereturn stems[0], stems[1]except Exception as e:raise RuntimeError(f"MDX-NET separation failed: {e}") from e@spaces.GPU(duration=60)def vrarch_separator(audio, model, out_format, window_size, aggression, tta, post_process, post_process_threshold, high_end_process, batch_size, norm_thresh, amp_thresh, single_stem, progress=gr.Progress(track_tqdm=True)):base_name = os.path.splitext(os.path.basename(audio))[0]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=out_dir,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,output_single_stem=single_stem,vr_params={"batch_size": batch_size,"window_size": window_size,"aggression": aggression,"enable_tta": tta,"enable_post_process": post_process,"post_process_threshold": post_process_threshold,"high_end_process": high_end_process,})progress(0.2, desc="Loading model...")separator.load_model(model_filename=model)progress(0.7, desc="Separating audio...")separation = separator.separate(audio)stems = [os.path.join(out_dir, file_name) for file_name in separation]if single_stem.strip():return stems[0], Nonereturn stems[0], stems[1]except Exception as e:raise RuntimeError(f"VR ARCH separation failed: {e}") from e@spaces.GPU(duration=60)def demucs_separator(audio, model, out_format, shifts, segment_size, segments_enabled, overlap, batch_size, norm_thresh, amp_thresh, progress=gr.Progress(track_tqdm=True)):base_name = os.path.splitext(os.path.basename(audio))[0]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=out_dir,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,demucs_params={"batch_size": batch_size,"segment_size": segment_size,"shifts": shifts,"overlap": overlap,"segments_enabled": segments_enabled,})progress(0.2, desc="Loading model...")separator.load_model(model_filename=model)progress(0.7, desc="Separating audio...")separation = separator.separate(audio)stems = [os.path.join(out_dir, file_name) for file_name in separation]if model == "htdemucs_6s.yaml":return stems[0], stems[1], stems[2], stems[3], stems[4], stems[5]else:return stems[0], stems[1], stems[2], stems[3], None, Noneexcept Exception as e:raise RuntimeError(f"Demucs separation failed: {e}") from edef update_stems(model):if model == "htdemucs_6s.yaml":return gr.update(visible=True)else:return gr.update(visible=False)@spaces.GPU(duration=60)def roformer_batch(path_input, path_output, model_key, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem):found_files.clear()logs.clear()roformer_model = roformer_models[model_key]for audio_files in os.listdir(path_input):if audio_files.endswith(extensions):found_files.append(audio_files)total_files = len(found_files)if total_files == 0:logs.append("No valid audio files.")yield "\n".join(logs)else:logs.append(f"{total_files} audio files found")found_files.sort()for audio_files in found_files:file_path = os.path.join(path_input, audio_files)base_name = os.path.splitext(os.path.basename(file_path))[0]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=path_output,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,output_single_stem=single_stem,mdxc_params={"segment_size": segment_size,"override_model_segment_size": override_seg_size,"batch_size": batch_size,"overlap": overlap,})logs.append("Loading model...")yield "\n".join(logs)separator.load_model(model_filename=roformer_model)logs.append(f"Separating file: {audio_files}")yield "\n".join(logs)separator.separate(file_path)logs.append(f"File: {audio_files} separated!")yield "\n".join(logs)except Exception as e:raise RuntimeError(f"Roformer batch separation failed: {e}") from e@spaces.GPU(duration=60)def mdx23c_batch(path_input, path_output, model, out_format, segment_size, override_seg_size, overlap, batch_size, norm_thresh, amp_thresh, single_stem):found_files.clear()logs.clear()for audio_files in os.listdir(path_input):if audio_files.endswith(extensions):found_files.append(audio_files)total_files = len(found_files)if total_files == 0:logs.append("No valid audio files.")yield "\n".join(logs)else:logs.append(f"{total_files} audio files found")found_files.sort()for audio_files in found_files:file_path = os.path.join(path_input, audio_files)base_name = os.path.splitext(os.path.basename(file_path))[0]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=path_output,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,output_single_stem=single_stem,mdxc_params={"segment_size": segment_size,"override_model_segment_size": override_seg_size,"batch_size": batch_size,"overlap": overlap,})logs.append("Loading model...")yield "\n".join(logs)separator.load_model(model_filename=model)logs.append(f"Separating file: {audio_files}")yield "\n".join(logs)separator.separate(file_path)logs.append(f"File: {audio_files} separated!")yield "\n".join(logs)except Exception as e:raise RuntimeError(f"Roformer batch separation failed: {e}") from e@spaces.GPU(duration=60)def mdxnet_batch(path_input, path_output, model, out_format, hop_length, segment_size, denoise, overlap, batch_size, norm_thresh, amp_thresh, single_stem):found_files.clear()logs.clear()for audio_files in os.listdir(path_input):if audio_files.endswith(extensions):found_files.append(audio_files)total_files = len(found_files)if total_files == 0:logs.append("No valid audio files.")yield "\n".join(logs)else:logs.append(f"{total_files} audio files found")found_files.sort()for audio_files in found_files:file_path = os.path.join(path_input, audio_files)base_name = os.path.splitext(os.path.basename(file_path))[0]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=path_output,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,output_single_stem=single_stem,mdx_params={"hop_length": hop_length,"segment_size": segment_size,"overlap": overlap,"batch_size": batch_size,"enable_denoise": denoise,})logs.append("Loading model...")yield "\n".join(logs)separator.load_model(model_filename=model)logs.append(f"Separating file: {audio_files}")yield "\n".join(logs)separator.separate(file_path)logs.append(f"File: {audio_files} separated!")yield "\n".join(logs)except Exception as e:raise RuntimeError(f"Roformer batch separation failed: {e}") from e@spaces.GPU(duration=60)def vrarch_batch(path_input, path_output, model, out_format, window_size, aggression, tta, post_process, post_process_threshold, high_end_process, batch_size, norm_thresh, amp_thresh, single_stem):found_files.clear()logs.clear()for audio_files in os.listdir(path_input):if audio_files.endswith(extensions):found_files.append(audio_files)total_files = len(found_files)if total_files == 0:logs.append("No valid audio files.")yield "\n".join(logs)else:logs.append(f"{total_files} audio files found")found_files.sort()for audio_files in found_files:file_path = os.path.join(path_input, audio_files)base_name = os.path.splitext(os.path.basename(file_path))[0]try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=path_output,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,output_single_stem=single_stem,vr_params={"batch_size": batch_size,"window_size": window_size,"aggression": aggression,"enable_tta": tta,"enable_post_process": post_process,"post_process_threshold": post_process_threshold,"high_end_process": high_end_process,})logs.append("Loading model...")yield "\n".join(logs)separator.load_model(model_filename=model)logs.append(f"Separating file: {audio_files}")yield "\n".join(logs)separator.separate(file_path)logs.append(f"File: {audio_files} separated!")yield "\n".join(logs)except Exception as e:raise RuntimeError(f"Roformer batch separation failed: {e}") from e@spaces.GPU(duration=60)def demucs_batch(path_input, path_output, model, out_format, shifts, segment_size, segments_enabled, overlap, batch_size, norm_thresh, amp_thresh):found_files.clear()logs.clear()for audio_files in os.listdir(path_input):if audio_files.endswith(extensions):found_files.append(audio_files)total_files = len(found_files)if total_files == 0:logs.append("No valid audio files.")yield "\n".join(logs)else:logs.append(f"{total_files} audio files found")found_files.sort()for audio_files in found_files:file_path = os.path.join(path_input, audio_files)try:separator = Separator(log_level=logging.WARNING,model_file_dir=models_dir,output_dir=path_output,output_format=out_format,use_autocast=use_autocast,normalization_threshold=norm_thresh,amplification_threshold=amp_thresh,demucs_params={"batch_size": batch_size,"segment_size": segment_size,"shifts": shifts,"overlap": overlap,"segments_enabled": segments_enabled,})logs.append("Loading model...")yield "\n".join(logs)separator.load_model(model_filename=model)logs.append(f"Separating file: {audio_files}")yield "\n".join(logs)separator.separate(file_path)logs.append(f"File: {audio_files} separated!")yield "\n".join(logs)except Exception as e:raise RuntimeError(f"Roformer batch separation failed: {e}") from ewith gr.Blocks(theme = loadThemes.load_json() or "NoCrypt/miku", title = "🎵 UVR5 UI 🎵") as app:gr.Markdown("<h1> 🎵 UVR5 UI 🎵 </h1>")gr.Markdown(i18n("If you liked this HF Space you can give me a ❤️"))gr.Markdown(i18n("Try UVR5 UI using Colab [here](https://colab.research.google.com/github/Eddycrack864/UVR5-UI/blob/main/UVR_UI.ipynb)"))with gr.Tabs():with gr.TabItem("BS/Mel Roformer"):with gr.Row():roformer_model = gr.Dropdown(label = i18n("Select the model"),choices = list(roformer_models.keys()),value = lambda : None,interactive = True)roformer_output_format = gr.Dropdown(label = i18n("Select the output format"),choices = output_format,value = lambda : None,interactive = True)with gr.Accordion(i18n("Advanced settings"), open = False):with gr.Group():with gr.Row():roformer_segment_size = gr.Slider(label = i18n("Segment size"),info = i18n("Larger consumes more resources, but may give better results"),minimum = 32,maximum = 4000,step = 32,value = 256,interactive = True)roformer_override_segment_size = gr.Checkbox(label = i18n("Override segment size"),info = i18n("Override model default segment size instead of using the model default value"),value = False,interactive = True)with gr.Row():roformer_overlap = gr.Slider(label = i18n("Overlap"),info = i18n("Amount of overlap between prediction windows"),minimum = 2,maximum = 10,step = 1,value = 8,interactive = True)roformer_batch_size = gr.Slider(label = i18n("Batch size"),info = i18n("Larger consumes more RAM but may process slightly faster"),minimum = 1,maximum = 16,step = 1,value = 1,interactive = True)with gr.Row():roformer_normalization_threshold = gr.Slider(label = i18n("Normalization threshold"),info = i18n("The threshold for audio normalization"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.9,interactive = True)roformer_amplification_threshold = gr.Slider(label = i18n("Amplification threshold"),info = i18n("The threshold for audio amplification"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.7,interactive = True)with gr.Row():roformer_single_stem = gr.Textbox(label = i18n("Output only single stem"),placeholder = i18n("Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental"),interactive = True)with gr.Row():roformer_audio = gr.Audio(label = i18n("Input audio"),type = "filepath",interactive = True)with gr.Accordion(i18n("Separation by link"), open = False):with gr.Row():roformer_link = gr.Textbox(label = i18n("Link"),placeholder = i18n("Paste the link here"),interactive = True)with gr.Row():gr.Markdown(i18n("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)"))with gr.Row():roformer_download_button = gr.Button(i18n("Download!"),variant = "primary")roformer_download_button.click(download_audio, [roformer_link], [roformer_audio])with gr.Accordion(i18n("Batch separation"), open = False):with gr.Row():roformer_input_path = gr.Textbox(label = i18n("Input path"),placeholder = i18n("Place the input path here"),interactive = True)roformer_output_path = gr.Textbox(label = i18n("Output path"),placeholder = i18n("Place the output path here"),interactive = True)with gr.Row():roformer_bath_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():roformer_info = gr.Textbox(label = i18n("Output information"),interactive = False)roformer_bath_button.click(roformer_batch, [roformer_input_path, roformer_output_path, roformer_model, roformer_output_format, roformer_segment_size, roformer_override_segment_size, roformer_overlap, roformer_batch_size, roformer_normalization_threshold, roformer_amplification_threshold, roformer_single_stem], [roformer_info])with gr.Row():roformer_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():roformer_stem1 = gr.Audio(show_download_button = True,interactive = False,label = i18n("Stem 1"),type = "filepath")roformer_stem2 = gr.Audio(show_download_button = True,interactive = False,label = i18n("Stem 2"),type = "filepath")roformer_button.click(roformer_separator, [roformer_audio, roformer_model, roformer_output_format, roformer_segment_size, roformer_override_segment_size, roformer_overlap, roformer_batch_size, roformer_normalization_threshold, roformer_amplification_threshold, roformer_single_stem], [roformer_stem1, roformer_stem2])with gr.TabItem("MDX23C"):with gr.Row():mdx23c_model = gr.Dropdown(label = i18n("Select the model"),choices = mdx23c_models,value = lambda : None,interactive = True)mdx23c_output_format = gr.Dropdown(label = i18n("Select the output format"),choices = output_format,value = lambda : None,interactive = True)with gr.Accordion(i18n("Advanced settings"), open = False):with gr.Group():with gr.Row():mdx23c_segment_size = gr.Slider(minimum = 32,maximum = 4000,step = 32,label = i18n("Segment size"),info = i18n("Larger consumes more resources, but may give better results"),value = 256,interactive = True)mdx23c_override_segment_size = gr.Checkbox(label = i18n("Override segment size"),info = i18n("Override model default segment size instead of using the model default value"),value = False,interactive = True)with gr.Row():mdx23c_overlap = gr.Slider(minimum = 2,maximum = 50,step = 1,label = i18n("Overlap"),info = i18n("Amount of overlap between prediction windows"),value = 8,interactive = True)mdx23c_batch_size = gr.Slider(label = i18n("Batch size"),info = i18n("Larger consumes more RAM but may process slightly faster"),minimum = 1,maximum = 16,step = 1,value = 1,interactive = True)with gr.Row():mdx23c_normalization_threshold = gr.Slider(label = i18n("Normalization threshold"),info = i18n("The threshold for audio normalization"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.9,interactive = True)mdx23c_amplification_threshold = gr.Slider(label = i18n("Amplification threshold"),info = i18n("The threshold for audio amplification"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.7,interactive = True)with gr.Row():mdx23c_single_stem = gr.Textbox(label = i18n("Output only single stem"),placeholder = i18n("Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental"),interactive = True)with gr.Row():mdx23c_audio = gr.Audio(label = i18n("Input audio"),type = "filepath",interactive = True)with gr.Accordion(i18n("Separation by link"), open = False):with gr.Row():mdx23c_link = gr.Textbox(label = i18n("Link"),placeholder = i18n("Paste the link here"),interactive = True)with gr.Row():gr.Markdown(i18n("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)"))with gr.Row():mdx23c_download_button = gr.Button(i18n("Download!"),variant = "primary")mdx23c_download_button.click(download_audio, [mdx23c_link], [mdx23c_audio])with gr.Accordion(i18n("Batch separation"), open = False):with gr.Row():mdx23c_input_path = gr.Textbox(label = i18n("Input path"),placeholder = i18n("Place the input path here"),interactive = True)mdx23c_output_path = gr.Textbox(label = i18n("Output path"),placeholder = i18n("Place the output path here"),interactive = True)with gr.Row():mdx23c_bath_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():mdx23c_info = gr.Textbox(label = i18n("Output information"),interactive = False)mdx23c_bath_button.click(mdx23c_batch, [mdx23c_input_path, mdx23c_output_path, mdx23c_model, mdx23c_output_format, mdx23c_segment_size, mdx23c_override_segment_size, mdx23c_overlap, mdx23c_batch_size, mdx23c_normalization_threshold, mdx23c_amplification_threshold, mdx23c_single_stem], [mdx23c_info])with gr.Row():mdx23c_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():mdx23c_stem1 = gr.Audio(show_download_button = True,interactive = False,label = i18n("Stem 1"),type = "filepath")mdx23c_stem2 = gr.Audio(show_download_button = True,interactive = False,label = i18n("Stem 2"),type = "filepath")mdx23c_button.click(mdxc_separator, [mdx23c_audio, mdx23c_model, mdx23c_output_format, mdx23c_segment_size, mdx23c_override_segment_size, mdx23c_overlap, mdx23c_batch_size, mdx23c_normalization_threshold, mdx23c_amplification_threshold, mdx23c_single_stem], [mdx23c_stem1, mdx23c_stem2])with gr.TabItem("MDX-NET"):with gr.Row():mdxnet_model = gr.Dropdown(label = i18n("Select the model"),choices = mdxnet_models,value = lambda : None,interactive = True)mdxnet_output_format = gr.Dropdown(label = i18n("Select the output format"),choices = output_format,value = lambda : None,interactive = True)with gr.Accordion(i18n("Advanced settings"), open = False):with gr.Group():with gr.Row():mdxnet_hop_length = gr.Slider(label = i18n("Hop length"),info = i18n("Usually called stride in neural networks; only change if you know what you're doing"),minimum = 32,maximum = 2048,step = 32,value = 1024,interactive = True)mdxnet_segment_size = gr.Slider(minimum = 32,maximum = 4000,step = 32,label = i18n("Segment size"),info = i18n("Larger consumes more resources, but may give better results"),value = 256,interactive = True)mdxnet_denoise = gr.Checkbox(label = i18n("Denoise"),info = i18n("Enable denoising during separation"),value = True,interactive = True)with gr.Row():mdxnet_overlap = gr.Slider(label = i18n("Overlap"),info = i18n("Amount of overlap between prediction windows"),minimum = 0.001,maximum = 0.999,step = 0.001,value = 0.25,interactive = True)mdxnet_batch_size = gr.Slider(label = i18n("Batch size"),info = i18n("Larger consumes more RAM but may process slightly faster"),minimum = 1,maximum = 16,step = 1,value = 1,interactive = True)with gr.Row():mdxnet_normalization_threshold = gr.Slider(label = i18n("Normalization threshold"),info = i18n("The threshold for audio normalization"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.9,interactive = True)mdxnet_amplification_threshold = gr.Slider(label = i18n("Amplification threshold"),info = i18n("The threshold for audio amplification"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.7,interactive = True)with gr.Row():mdxnet_single_stem = gr.Textbox(label = i18n("Output only single stem"),placeholder = i18n("Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental"),interactive = True)with gr.Row():mdxnet_audio = gr.Audio(label = i18n("Input audio"),type = "filepath",interactive = True)with gr.Accordion(i18n("Separation by link"), open = False):with gr.Row():mdxnet_link = gr.Textbox(label = i18n("Link"),placeholder = i18n("Paste the link here"),interactive = True)with gr.Row():gr.Markdown(i18n("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)"))with gr.Row():mdxnet_download_button = gr.Button(i18n("Download!"),variant = "primary")mdxnet_download_button.click(download_audio, [mdxnet_link], [mdxnet_audio])with gr.Accordion(i18n("Batch separation"), open = False):with gr.Row():mdxnet_input_path = gr.Textbox(label = i18n("Input path"),placeholder = i18n("Place the input path here"),interactive = True)mdxnet_output_path = gr.Textbox(label = i18n("Output path"),placeholder = i18n("Place the output path here"),interactive = True)with gr.Row():mdxnet_bath_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():mdxnet_info = gr.Textbox(label = i18n("Output information"),interactive = False)mdxnet_bath_button.click(mdxnet_batch, [mdxnet_input_path, mdxnet_output_path, mdxnet_model, mdxnet_output_format, mdxnet_hop_length, mdxnet_segment_size, mdxnet_denoise, mdxnet_overlap, mdxnet_batch_size, mdxnet_normalization_threshold, mdxnet_amplification_threshold, mdxnet_single_stem], [mdxnet_info])with gr.Row():mdxnet_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():mdxnet_stem1 = gr.Audio(show_download_button = True,interactive = False,label = i18n("Stem 1"),type = "filepath")mdxnet_stem2 = gr.Audio(show_download_button = True,interactive = False,label = i18n("Stem 2"),type = "filepath")mdxnet_button.click(mdxnet_separator, [mdxnet_audio, mdxnet_model, mdxnet_output_format, mdxnet_hop_length, mdxnet_segment_size, mdxnet_denoise, mdxnet_overlap, mdxnet_batch_size, mdxnet_normalization_threshold, mdxnet_amplification_threshold, mdxnet_single_stem], [mdxnet_stem1, mdxnet_stem2])with gr.TabItem("VR ARCH"):with gr.Row():vrarch_model = gr.Dropdown(label = i18n("Select the model"),choices = vrarch_models,value = lambda : None,interactive = True)vrarch_output_format = gr.Dropdown(label = i18n("Select the output format"),choices = output_format,value = lambda : None,interactive = True)with gr.Accordion(i18n("Advanced settings"), open = False):with gr.Group():with gr.Row():vrarch_window_size = gr.Slider(label = i18n("Window size"),info = i18n("Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality"),minimum=320,maximum=1024,step=32,value = 512,interactive = True)vrarch_agression = gr.Slider(minimum = 1,maximum = 50,step = 1,label = i18n("Agression"),info = i18n("Intensity of primary stem extraction"),value = 5,interactive = True)vrarch_tta = gr.Checkbox(label = i18n("TTA"),info = i18n("Enable Test-Time-Augmentation; slow but improves quality"),value = True,visible = True,interactive = True)with gr.Row():vrarch_post_process = gr.Checkbox(label = i18n("Post process"),info = i18n("Identify leftover artifacts within vocal output; may improve separation for some songs"),value = False,visible = True,interactive = True)vrarch_post_process_threshold = gr.Slider(label = i18n("Post process threshold"),info = i18n("Threshold for post-processing"),minimum = 0.1,maximum = 0.3,step = 0.1,value = 0.2,interactive = True)with gr.Row():vrarch_high_end_process = gr.Checkbox(label = i18n("High end process"),info = i18n("Mirror the missing frequency range of the output"),value = False,visible = True,interactive = True,)vrarch_batch_size = gr.Slider(label = i18n("Batch size"),info = i18n("Larger consumes more RAM but may process slightly faster"),minimum = 1,maximum = 16,step = 1,value = 1,interactive = True)with gr.Row():vrarch_normalization_threshold = gr.Slider(label = i18n("Normalization threshold"),info = i18n("The threshold for audio normalization"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.9,interactive = True)vrarch_amplification_threshold = gr.Slider(label = i18n("Amplification threshold"),info = i18n("The threshold for audio amplification"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.7,interactive = True)with gr.Row():vrarch_single_stem = gr.Textbox(label = i18n("Output only single stem"),placeholder = i18n("Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental"),interactive = True)with gr.Row():vrarch_audio = gr.Audio(label = i18n("Input audio"),type = "filepath",interactive = True)with gr.Accordion(i18n("Separation by link"), open = False):with gr.Row():vrarch_link = gr.Textbox(label = i18n("Link"),placeholder = i18n("Paste the link here"),interactive = True)with gr.Row():gr.Markdown(i18n("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)"))with gr.Row():vrarch_download_button = gr.Button(i18n("Download!"),variant = "primary")vrarch_download_button.click(download_audio, [vrarch_link], [vrarch_audio])with gr.Accordion(i18n("Batch separation"), open = False):with gr.Row():vrarch_input_path = gr.Textbox(label = i18n("Input path"),placeholder = i18n("Place the input path here"),interactive = True)vrarch_output_path = gr.Textbox(label = i18n("Output path"),placeholder = i18n("Place the output path here"),interactive = True)with gr.Row():vrarch_bath_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():vrarch_info = gr.Textbox(label = i18n("Output information"),interactive = False)vrarch_bath_button.click(vrarch_batch, [vrarch_input_path, vrarch_output_path, vrarch_model, vrarch_output_format, vrarch_window_size, vrarch_agression, vrarch_tta, vrarch_post_process, vrarch_post_process_threshold, vrarch_high_end_process, vrarch_batch_size, vrarch_normalization_threshold, vrarch_amplification_threshold, vrarch_single_stem], [vrarch_info])with gr.Row():vrarch_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():vrarch_stem1 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = i18n("Stem 1"))vrarch_stem2 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = i18n("Stem 2"))vrarch_button.click(vrarch_separator, [vrarch_audio, vrarch_model, vrarch_output_format, vrarch_window_size, vrarch_agression, vrarch_tta, vrarch_post_process, vrarch_post_process_threshold, vrarch_high_end_process, vrarch_batch_size, vrarch_normalization_threshold, vrarch_amplification_threshold, vrarch_single_stem], [vrarch_stem1, vrarch_stem2])with gr.TabItem("Demucs"):with gr.Row():demucs_model = gr.Dropdown(label = i18n("Select the model"),choices = demucs_models,value = lambda : None,interactive = True)demucs_output_format = gr.Dropdown(label = i18n("Select the output format"),choices = output_format,value = lambda : None,interactive = True)with gr.Accordion(i18n("Advanced settings"), open = False):with gr.Group():with gr.Row():demucs_shifts = gr.Slider(label = i18n("Shifts"),info = i18n("Number of predictions with random shifts, higher = slower but better quality"),minimum = 1,maximum = 20,step = 1,value = 2,interactive = True)demucs_segment_size = gr.Slider(label = i18n("Segment size"),info = i18n("Size of segments into which the audio is split. Higher = slower but better quality"),minimum = 1,maximum = 100,step = 1,value = 40,interactive = True)demucs_segments_enabled = gr.Checkbox(label = i18n("Segment-wise processing"),info = i18n("Enable segment-wise processing"),value = True,interactive = True)with gr.Row():demucs_overlap = gr.Slider(label = i18n("Overlap"),info = i18n("Overlap between prediction windows. Higher = slower but better quality"),minimum=0.001,maximum=0.999,step=0.001,value = 0.25,interactive = True)demucs_batch_size = gr.Slider(label = i18n("Batch size"),info = i18n("Larger consumes more RAM but may process slightly faster"),minimum = 1,maximum = 16,step = 1,value = 1,interactive = True)with gr.Row():demucs_normalization_threshold = gr.Slider(label = i18n("Normalization threshold"),info = i18n("The threshold for audio normalization"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.9,interactive = True)demucs_amplification_threshold = gr.Slider(label = i18n("Amplification threshold"),info = i18n("The threshold for audio amplification"),minimum = 0.1,maximum = 1,step = 0.1,value = 0.7,interactive = True)with gr.Row():demucs_audio = gr.Audio(label = i18n("Input audio"),type = "filepath",interactive = True)with gr.Accordion(i18n("Separation by link"), open = False):with gr.Row():demucs_link = gr.Textbox(label = i18n("Link"),placeholder = i18n("Paste the link here"),interactive = True)with gr.Row():gr.Markdown(i18n("You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)"))with gr.Row():demucs_download_button = gr.Button(i18n("Download!"),variant = "primary")demucs_download_button.click(download_audio, [demucs_link], [demucs_audio])with gr.Accordion(i18n("Batch separation"), open = False):with gr.Row():demucs_input_path = gr.Textbox(label = i18n("Input path"),placeholder = i18n("Place the input path here"),interactive = True)demucs_output_path = gr.Textbox(label = i18n("Output path"),placeholder = i18n("Place the output path here"),interactive = True)with gr.Row():demucs_bath_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():demucs_info = gr.Textbox(label = i18n("Output information"),interactive = False)demucs_bath_button.click(demucs_batch, [demucs_input_path, demucs_output_path, demucs_model, demucs_output_format, demucs_shifts, demucs_segment_size, demucs_segments_enabled, demucs_overlap, demucs_batch_size, demucs_normalization_threshold, demucs_amplification_threshold], [demucs_info])with gr.Row():demucs_button = gr.Button(i18n("Separate!"), variant = "primary")with gr.Row():demucs_stem1 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = i18n("Stem 1"))demucs_stem2 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = i18n("Stem 2"))with gr.Row():demucs_stem3 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = i18n("Stem 3"))demucs_stem4 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = i18n("Stem 4"))with gr.Row(visible=False) as stem6:demucs_stem5 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = i18n("Stem 5"))demucs_stem6 = gr.Audio(show_download_button = True,interactive = False,type = "filepath",label = i18n("Stem 6"))demucs_model.change(update_stems, inputs=[demucs_model], outputs=stem6)demucs_button.click(demucs_separator, [demucs_audio, demucs_model, demucs_output_format, demucs_shifts, demucs_segment_size, demucs_segments_enabled, demucs_overlap, demucs_batch_size, demucs_normalization_threshold, demucs_amplification_threshold], [demucs_stem1, demucs_stem2, demucs_stem3, demucs_stem4, demucs_stem5, demucs_stem6])with gr.TabItem(i18n("Leaderboard")):with gr.Group():with gr.Row(equal_height=True):list_filter = gr.Dropdown(label = i18n("List filter"),info = i18n("Filter and sort the model list by stem"),choices = ["vocals", "instrumental", "reverb", "echo", "noise", "crowd", "dry", "aspiration", "male", "woodwinds", "kick", "drums", "bass", "guitar", "piano", "other"],value = lambda : None)list_button = gr.Button(i18n("Show list!"), variant = "primary")output_list = gr.HTML(label = i18n("Leaderboard"))list_button.click(leaderboard, inputs=list_filter, outputs=output_list)with gr.TabItem(i18n("Themes")):themes_select = gr.Dropdown(label = i18n("Theme"),info = i18n("Select the theme you want to use. (Requires restarting the App)"),choices = loadThemes.get_list(),value = loadThemes.read_json(),visible = True)dummy_output = gr.Textbox(visible = False)themes_select.change(fn = loadThemes.select_theme,inputs = themes_select,outputs = [dummy_output])with gr.TabItem(i18n("Credits")):gr.Markdown("""UVR5 UI created by **[Eddycrack 864](https://github.com/Eddycrack864).** Join **[AI HUB](https://discord.gg/aihub)** community.* python-audio-separator by [beveradb](https://github.com/beveradb).* Special thanks to [Ilaria](https://github.com/TheStingerX) for hosting this space and help.* Thanks to [Mikus](https://github.com/cappuch) for the help with the code.* Thanks to [Nick088](https://huggingface.co/Nick088) for the help to fix roformers.* Thanks to [yt_dlp](https://github.com/yt-dlp/yt-dlp) devs.* Separation by link source code and improvements by [Blane187](https://huggingface.co/Blane187).* Thanks to [ArisDev](https://github.com/aris-py) for porting UVR5 UI to Kaggle and improvements.* Thanks to [Bebra777228](https://github.com/Bebra777228)'s code for guiding me to improve my code.* Thanks to Nick088, MrM0dZ, Ryouko-Yamanda65777, lucinamari, perariroswe and Enes for helping translate UVR5 UI.You can donate to the original UVR5 project here:[](https://www.buymeacoffee.com/uvr5)""")app.queue()app.launch()
12345678910{
"theme": {
"file": null,
"class": "NoCrypt/miku"
},
"lang": {
"override": false,
"selected_lang": "en_US"
}
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import os, sys
import json
from pathlib import Path
from locale import getdefaultlocale
now_dir = os.getcwd()
sys.path.append(now_dir)
class I18nAuto:
LANGUAGE_PATH = os.path.join(now_dir, "assets", "i18n", "languages")
def __init__(self, language=None):
with open(
os.path.join(now_dir, "assets", "config.json"), "r", encoding="utf8"
) as file:
config = json.load(file)
override = config["lang"]["override"]
lang_prefix = config["lang"]["selected_lang"]
self.language = lang_prefix
if override == False:
language = language or getdefaultlocale()[0]
lang_prefix = language[:2] if language is not None else "en"
available_languages = self._get_available_languages()
matching_languages = [
lang for lang in available_languages if lang.startswith(lang_prefix)
]
self.language = matching_languages[0] if matching_languages else "en_US"
self.language_map = self._load_language_list()
def _load_language_list(self):
try:
file_path = Path(self.LANGUAGE_PATH) / f"{self.language}.json"
with open(file_path, "r", encoding="utf-8") as file:
return json.load(file)
except FileNotFoundError:
raise FileNotFoundError(
f"Failed to load language file for {self.language}. Check if the correct .json file exists."
)
def _get_available_languages(self):
language_files = [path.stem for path in Path(self.LANGUAGE_PATH).glob("*.json")]
return language_files
def _language_exists(self, language):
return (Path(self.LANGUAGE_PATH) / f"{language}.json").exists()
def __call__(self, key):
return self.language_map.get(key, key)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Select the model",
"Select the output format": "Select the output format",
"Overlap": "Overlap",
"Amount of overlap between prediction windows": "Amount of overlap between prediction windows",
"Segment size": "Segment size",
"Larger consumes more resources, but may give better results": "Larger consumes more resources, but may give better results",
"Input audio": "Input audio",
"Separation by link": "Separation by link",
"Link": "Link",
"Paste the link here": "Paste the link here",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "Download!",
"Batch separation": "Batch separation",
"Input path": "Input path",
"Place the input path here": "Place the input path here",
"Output path": "Output path",
"Place the output path here": "Place the output path here",
"Separate!": "Separate!",
"Output information": "Output information",
"Stem 1": "Stem 1",
"Stem 2": "Stem 2",
"Denoise": "Denoise",
"Enable denoising during separation": "Enable denoising during separation",
"Window size": "Window size",
"Agression": "Agression",
"Intensity of primary stem extraction": "Intensity of primary stem extraction",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Enable Test-Time-Augmentation; slow but improves quality",
"High end process": "High end process",
"Mirror the missing frequency range of the output": "Mirror the missing frequency range of the output",
"Shifts": "Shifts",
"Number of predictions with random shifts, higher = slower but better quality": "Number of predictions with random shifts, higher = slower but better quality",
"Stem 3": "Stem 3",
"Stem 4": "Stem 4",
"Themes": "Themes",
"Theme": "Theme",
"Select the theme you want to use. (Requires restarting the App)": "Select the theme you want to use. (Requires restarting the App)",
"Credits": "Credits",
"Language": "Language",
"Advanced settings": "Advanced settings",
"Override model default segment size instead of using the model default value": "Override model default segment size instead of using the model default value",
"Override segment size": "Override segment size",
"Batch size": "Batch size",
"Larger consumes more RAM but may process slightly faster": "Larger consumes more RAM but may process slightly faster",
"Normalization threshold": "Normalization threshold",
"The threshold for audio normalization": "The threshold for audio normalization",
"Amplification threshold": "Amplification threshold",
"The threshold for audio amplification": "The threshold for audio amplification",
"Hop length": "Hop length",
"Usually called stride in neural networks; only change if you know what you're doing": "Usually called stride in neural networks; only change if you know what you're doing",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Identify leftover artifacts within vocal output; may improve separation for some songs",
"Post process": "Post process",
"Post process threshold": "Post process threshold",
"Threshold for post-processing": "Threshold for post-processing",
"Size of segments into which the audio is split. Higher = slower but better quality": "Size of segments into which the audio is split. Higher = slower but better quality",
"Enable segment-wise processing": "Enable segment-wise processing",
"Segment-wise processing": "Segment-wise processing",
"Stem 5": "Stem 5",
"Stem 6": "Stem 6",
"Output only single stem": "Output only single stem",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental",
"Leaderboard": "Leaderboard",
"List filter": "List filter",
"Filter and sort the model list by stem": "Filter and sort the model list by stem",
"Show list!": "Show list!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "Si te gusta UVR5 UI puedes darle una estrella a mi repo en [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Prueba UVR5 UI en Hugging Face con una A100 [aquí](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Selecciona el modelo",
"Select the output format": "Selecciona el formato de salida",
"Overlap": "Superposición",
"Amount of overlap between prediction windows": "Cantidad de superposición entre ventanas de predicción",
"Segment size": "Tamaño del segmento",
"Larger consumes more resources, but may give better results": "Un tamaño más grande consume más recursos, pero puede dar mejores resultados",
"Input audio": "Audio de entrada",
"Separation by link": "Separación por link",
"Link": "Link",
"Paste the link here": "Pega el link aquí",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "Puedes pegar el enlace al video/audio desde muchos sitios, revisa la lista completa [aquí](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "Descargar!",
"Batch separation": "Separación por lotes",
"Input path": "Ruta de entrada",
"Place the input path here": "Coloca la ruta de entrada aquí",
"Output path": "Ruta de salida",
"Place the output path here": "Coloca la ruta de salida aquí",
"Separate!": "Separar!",
"Output information": "Información de la salida",
"Stem 1": "Pista 1",
"Stem 2": "Pista 2",
"Denoise": "Eliminación de ruido",
"Enable denoising during separation": "Habilitar la eliminación de ruido durante la separación",
"Window size": "Tamaño de la ventana",
"Agression": "Agresión",
"Intensity of primary stem extraction": "Intensidad de extracción de la pista primaria",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Habilitar Aumento del Tiempo de Prueba; lento pero mejora la calidad",
"High end process": "Procesamiento de alto rendimiento",
"Mirror the missing frequency range of the output": "Reflejar el rango de frecuencia faltante de la salida",
"Shifts": "Desplazamientos temporales",
"Number of predictions with random shifts, higher = slower but better quality": "Número de predicciones con desplazamientos temporales, mayor = más lento pero mejor calidad",
"Stem 3": "Pista 3",
"Stem 4": "Pista 4",
"Themes": "Temas",
"Theme": "Tema",
"Select the theme you want to use. (Requires restarting the App)": "Selecciona el tema que deseas utilizar. (Requiere reiniciar la aplicación)",
"Credits": "Créditos",
"Language": "Idioma",
"Advanced settings": "Configuración avanzada",
"Override model default segment size instead of using the model default value": "Anular el tamaño del segmento predeterminado del modelo en lugar de usar el valor predeterminado del modelo",
"Override segment size": "Anular tamaño del segmento",
"Batch size": "Tamaño del lote",
"Larger consumes more RAM but may process slightly faster": "Más grande consume más RAM pero puede procesar un poco más rápido",
"Normalization threshold": "Umbral de normalización",
"The threshold for audio normalization": "El umbral para la normalización del audio",
"Amplification threshold": "Umbral de amplificación",
"The threshold for audio amplification": "El umbral para la amplificación de audio",
"Hop length": "Longitud del salto",
"Usually called stride in neural networks; only change if you know what you're doing" : "Generalmente llamado paso en redes neuronales; solo cambialo si sabes lo que estás haciendo",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Equilibra la calidad y la velocidad. 1024 = más rápido pero de menor calidad, 320 = más lento pero de mejor calidad",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Identifica artefactos sobrantes en la salida vocal; puede mejorar la separación de algunas canciones",
"Post process": "Posproceso",
"Post process threshold": "Umbral de posproceso",
"Threshold for post-processing": "Umbral para el posprocesamiento",
"Size of segments into which the audio is split. Higher = slower but better quality": "Tamaño de los segmentos en los que se divide el audio. Más alto = más lento pero de mejor calidad",
"Enable segment-wise processing": "Habilitar el procesamiento por segmentos",
"Segment-wise processing": "Procesamiento por segmentos",
"Stem 5": "Pista 5",
"Stem 6": "Pista 6",
"Output only single stem": "Salida de única pista",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "Escribe la pista que quieres, consulta las pistas de cada modelo en la tabla de clasificación. Por ejemplo, Instrumental",
"Leaderboard": "Tabla de clasificación",
"List filter": "Lista de filtros",
"Filter and sort the model list by stem": "Filtra y ordena la lista de modelos por pista",
"Show list!": "Mostrar lista!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "यदि आपको UVR5 UI पसंद है तो आप मेरे GitHub रेपो को स्टार कर सकते हैं [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "UVR5 UI को A100 के साथ Hugging Face पर [यहाँ](https://huggingface.co/spaces/TheStinger/UVR5_UI) आज़माएं",
"Select the model": "मॉडल चुनें",
"Select the output format": "आउटपुट फॉर्मेट चुनें",
"Overlap": "ओवरलैप",
"Amount of overlap between prediction windows": "पूर्वानुमान विंडोज़ के बीच ओवरलैप की मात्रा",
"Segment size": "सेगमेंट साइज़",
"Larger consumes more resources, but may give better results": "बड़ा साइज़ अधिक संसाधन खपत करता है, लेकिन बेहतर परिणाम दे सकता है",
"Input audio": "इनपुट ऑडियो",
"Separation by link": "लिंक द्वारा अलगाव",
"Link": "लिंक",
"Paste the link here": "लिंक यहाँ पेस्ट करें",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "आप कई साइटों से वीडियो/ऑडियो का लिंक पेस्ट कर सकते हैं, पूरी सूची [यहाँ](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md) देखें",
"Download!": "डाउनलोड करें!",
"Batch separation": "बैच अलगाव",
"Input path": "इनपुट पाथ",
"Place the input path here": "इनपुट पाथ यहाँ डालें",
"Output path": "आउटपुट पाथ",
"Place the output path here": "आउटपुट पाथ यहाँ डालें",
"Separate!": "अलग करें!",
"Output information": "आउटपुट जानकारी",
"Stem 1": "स्टेम 1",
"Stem 2": "स्टेम 2",
"Denoise": "डीनॉइज़",
"Enable denoising during separation": "अलगाव के दौरान डीनॉइज़िंग सक्षम करें",
"Window size": "विंडो साइज़",
"Agression": "आक्रामकता",
"Intensity of primary stem extraction": "प्राथमिक स्टेम निष्कर्षण की तीव्रता",
"TTA": "टीटीए",
"Enable Test-Time-Augmentation; slow but improves quality": "टेस्ट-टाइम-ऑगमेंटेशन सक्षम करें; धीमा लेकिन गुणवत्ता में सुधार करता है",
"High end process": "उच्च स्तरीय प्रक्रिया",
"Mirror the missing frequency range of the output": "आउटपुट की गायब फ्रीक्वेंसी रेंज को मिरर करें",
"Shifts": "शिफ्ट्स",
"Number of predictions with random shifts, higher = slower but better quality": "रैंडम शिफ्ट्स के साथ पूर्वानुमानों की संख्या, अधिक = धीमा लेकिन बेहतर गुणवत्ता",
"Stem 3": "स्टेम 3",
"Stem 4": "स्टेम 4",
"Themes": "थीम्स",
"Theme": "थीम",
"Select the theme you want to use. (Requires restarting the App)": "वह थीम चुनें जिसका आप उपयोग करना चाहते हैं। (ऐप को पुनः प्रारंभ करना आवश्यक है)",
"Credits": "क्रेडिट्स",
"Language": "भाषा",
"Advanced settings": "उन्नत सेटिंग्स",
"Override model default segment size instead of using the model default value": "मॉडल के डिफ़ॉल्ट सेगमेंट आकार का उपयोग करने के बजाय उसे ओवरराइड करें",
"Override segment size": "सेगमेंट आकार ओवरराइड करें",
"Batch size": "बैच आकार",
"Larger consumes more RAM but may process slightly faster": "बड़ा आकार अधिक RAM का उपयोग करता है लेकिन थोड़ी तेज़ी से प्रोसेस कर सकता है",
"Normalization threshold": "नॉर्मलाइज़ेशन थ्रेशोल्ड",
"The threshold for audio normalization": "ऑडियो नॉर्मलाइज़ेशन के लिए थ्रेशोल्ड",
"Amplification threshold": "एम्पलीफिकेशन थ्रेशोल्ड",
"The threshold for audio amplification": "ऑडियो एम्पलीफिकेशन के लिए थ्रेशोल्ड",
"Hop length": "हॉप लंबाई",
"Usually called stride in neural networks; only change if you know what you're doing": "आमतौर पर तंत्रिका नेटवर्क में स्ट्राइड कहा जाता है; केवल तभी बदलें जब आप जानते हों कि आप क्या कर रहे हैं",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "गुणवत्ता और गति को संतुलित करें। 1024 = तेज़ लेकिन कम, 320 = धीमा लेकिन बेहतर गुणवत्ता",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "वोकल आउटपुट के भीतर बचे हुए कलाकृतियों की पहचान करें; कुछ गानों के लिए पृथक्करण में सुधार हो सकता है",
"Post process": "पोस्ट प्रोसेस",
"Post process threshold": "पोस्ट प्रोसेस थ्रेशोल्ड",
"Threshold for post-processing": "पोस्ट-प्रोसेसिंग के लिए थ्रेशोल्ड",
"Size of segments into which the audio is split. Higher = slower but better quality": "सेगमेंट का आकार जिसमें ऑडियो विभाजित है। उच्च = धीमा लेकिन बेहतर गुणवत्ता",
"Enable segment-wise processing": "सेगमेंट-वार प्रोसेसिंग सक्षम करें",
"Segment-wise processing": "सेगमेंट-वार प्रोसेसिंग",
"Stem 5": "स्टेम ५",
"Stem 6": "स्टेम ६",
"Output only single stem": "केवल एकल स्टेम आउटपुट करें",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "आप जो स्टेम चाहते हैं उसे लिखें, लीडरबोर्ड पर प्रत्येक मॉडल के स्टेम की जांच करें। उदाहरण के लिए Instrumental",
"Leaderboard": "लीडरबोर्ड",
"List filter": "सूची फ़िल्टर",
"Filter and sort the model list by stem": "स्टेम द्वारा मॉडल सूची को फ़िल्टर और सॉर्ट करें",
"Show list!": "सूची दिखाएं!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "Jika Anda suka UI UVR5, Anda dapat memberikan bintang pada repo saya di [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Coba UVR5 UI di Hugging Face dengan A100 [di sini](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Pilih model",
"Select the output format": "Pilih format output",
"Overlap": "Tumpang tindih",
"Amount of overlap between prediction windows": "Jumlah tumpang tindih antara jendela prediksi",
"Segment size": "Ukuran segmen",
"Larger consumes more resources, but may give better results": "Lebih besar menggunakan lebih banyak sumber daya, tetapi dapat memberikan hasil yang lebih baik",
"Input audio": "Input audio",
"Separation by link": "Pemisahan berdasarkan tautan",
"Link": "Tautan",
"Paste the link here": "Tempel tautan di sini",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "Anda dapat menempelkan tautan ke video/audio dari banyak situs, lihat daftar lengkap [di sini](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "Unduh!",
"Batch separation": "Pemisahan batch",
"Input path": "Jalur input",
"Place the input path here": "Letakkan jalur input di sini",
"Output path": "Jalur output",
"Place the output path here": "Tempatkan jalur output di sini",
"Separate!": "Pisahkan!",
"Output information": "Informasi output",
"Stem 1": "Stem 1",
"Stem 2": "Stem 2",
"Denoise": "Mengurangi kebisingan",
"Enable denoising during separation": "Aktifkan pengurangan kebisingan selama pemisahan",
"Window size": "Ukuran jendela",
"Agression": "Agresi",
"Intensity of primary stem extraction": "Intensitas ekstraksi batang primer",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Aktifkan Augmentasi Saat Uji; lambat tetapi meningkatkan kualitas",
"High end process": "Proses Kelas Atas",
"Mirror the missing frequency range of the output": "Cerminkan rentang frekuensi yang hilang dari output",
"Shifts": "Pergeseran",
"Number of predictions with random shifts, higher = slower but better quality": "Jumlah prediksi dengan pergeseran acak, lebih tinggi = lebih lambat tetapi kualitas lebih baik",
"Stem 3": "Stem 3",
"Stem 4": "Stem 4",
"Themes": "Tema",
"Theme": "Tema",
"Select the theme you want to use. (Requires restarting the App)": "Pilih tema yang ingin Anda gunakan. (Membutuhkan restart Aplikasi)",
"Credits": "Kredits",
"Language": "Bahasa",
"Advanced settings": "Pengaturan lanjutan",
"Override model default segment size instead of using the model default value": "Ganti ukuran segmen default model alih-alih menggunakan nilai default model",
"Override segment size": "Ganti ukuran segmen",
"Batch size": "Ukuran batch",
"Larger consumes more RAM but may process slightly faster": "Lebih besar mengkonsumsi lebih banyak RAM tetapi mungkin memproses sedikit lebih cepat",
"Normalization threshold": "Ambang normalisasi",
"The threshold for audio normalization": "Ambang batas untuk normalisasi audio",
"Amplification threshold": "Ambang amplifikasi",
"The threshold for audio amplification": "Ambang batas untuk amplifikasi audio",
"Hop length": "Panjang hop",
"Usually called stride in neural networks; only change if you know what you're doing": "Biasanya disebut langkah dalam jaringan saraf; hanya berubah jika anda tahu apa yang Anda lakukan",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Seimbangkan kualitas dan kecepatan. 1024 = cepat tapi lebih rendah, 320 = lebih lambat tapi kualitasnya lebih baik",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Identifikasi artefak sisa dalam keluaran vokal; dapat meningkatkan pemisahan untuk beberapa lagu",
"Post process": "Proses pasca",
"Post process threshold": "Ambang batas pasca proses",
"Threshold for post-processing": "Ambang batas untuk pasca-pemrosesan",
"Size of segments into which the audio is split. Higher = slower but better quality": "Ukuran segmen tempat audio dibagi. Lebih tinggi = lebih lambat tetapi kualitasnya lebih baik",
"Enable segment-wise processing": "Aktifkan pemrosesan berdasarkan segmen",
"Segment-wise processing": "Pemrosesan berdasarkan segmen",
"Stem 5": "Stem 5",
"Stem 6": "Stem 6",
"Output only single stem": "Output hanya satu stem",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "Tulis stem yang Anda inginkan, periksa stem dari setiap model di Papan Peringkat. misalnya. Instrumental",
"Leaderboard": "Papan Peringkat",
"List filter": "Filter daftar",
"Filter and sort the model list by stem": "Filter dan urutkan daftar model berdasarkan stem",
"Show list!": "Tampilkan daftar!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "Se ti piace UVR5 UI puoi aggiungere una stella al mio repository su [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Prova UVR5 UI su Hugging Face con A100 [qui](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Seleziona il modello",
"Select the output format": "Seleziona il formato di output",
"Overlap": "Sovrapposizione",
"Amount of overlap between prediction windows": "Quantità di sovrapposizione tra le finestre di predizione",
"Segment size": "Dimensione del segmento",
"Larger consumes more resources, but may give better results": "Dimensioni maggiori consumano più risorse, ma potrebbero dare risultati migliori",
"Input audio": "Audio di input",
"Separation by link": "Separazione tramite link",
"Link": "Link",
"Paste the link here": "Incolla il link qui",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "Puoi incollare il link al video/audio da molti siti, controlla la lista completa [qui](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "Scarica!",
"Batch separation": "Separazione in batch",
"Input path": "Percorso di input",
"Place the input path here": "Inserisci il percorso di input qui",
"Output path": "Percorso di output",
"Place the output path here": "Inserisci il percorso di output qui",
"Separate!": "Separa!",
"Output information": "Informazioni di output",
"Stem 1": "Traccia 1",
"Stem 2": "Traccia 2",
"Denoise": "Riduzione del rumore",
"Enable denoising during separation": "Abilita la riduzione del rumore durante la separazione",
"Window size": "Dimensione della finestra",
"Agression": "Aggressività",
"Intensity of primary stem extraction": "Intensità dell'estrazione della traccia primaria",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Abilita l'Aumento del Tempo di Prova; lento ma migliora la qualità",
"High end process": "Elaborazione ad alte prestazion",
"Mirror the missing frequency range of the output": "Rifletti l'intervallo di frequenze mancante dell'output",
"Shifts": "Spostamenti",
"Number of predictions with random shifts, higher = slower but better quality": "Numero di predizioni con spostamenti casuali, maggiore = più lento ma qualità migliore",
"Stem 3": "Traccia 3",
"Stem 4": "Traccia 4",
"Themes": "Temi",
"Theme": "Tema",
"Select the theme you want to use. (Requires restarting the App)": "Seleziona il tema che desideri utilizzare. (Richiede il riavvio dell'app)",
"Credits": "Crediti",
"Language": "Lingua",
"Advanced settings": "Impostazioni avanzate",
"Override model default segment size instead of using the model default value": "Sovrascrivi la dimensione di segmento predefinita del modello invece di utilizzare il valore predefinito del modello",
"Override segment size": "Ignora dimensione segmento",
"Batch size": "Dimensione del batch",
"Larger consumes more RAM but may process slightly faster": "Più grande consuma più RAM ma potrebbe elaborare leggermente più velocemente",
"Normalization threshold": "Soglia di normalizzazione",
"The threshold for audio normalization": "La soglia per la normalizzazione dell'audio",
"Amplification threshold": "Soglia di amplificazione",
"The threshold for audio amplification": "La soglia per l'amplificazione dell'audio",
"Hop length": "Lunghezza del salto",
"Usually called stride in neural networks; only change if you know what you're doing": "Solitamente chiamato passo nelle reti neurali; cambialo solo se sai cosa stai facendo",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Bilancia la qualità e la velocità. 1024 = veloce ma inferiore, 320 = più lento ma migliore qualità",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Identifica gli artefatti residui nell'output vocale; potrebbe migliorare la separazione per alcune canzoni",
"Post process": "Post-elaborazione",
"Post process threshold": "Soglia di post-elaborazione",
"Threshold for post-processing": "Soglia per la post-elaborazione",
"Size of segments into which the audio is split. Higher = slower but better quality": "Dimensione dei segmenti in cui l'audio è diviso. Più alto = più lento ma migliore qualità",
"Enable segment-wise processing": "Abilita l'elaborazione per segmenti",
"Segment-wise processing": "Elaborazione per segmenti",
"Stem 5": "Traccia 5",
"Stem 6": "Traccia 6",
"Output only single stem": "Visualizza solo la traccia singola",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "Scrivi la traccia che desideri, controlla le tracce di ciascun modello nella classifica. Ad esempio, Instrumental",
"Leaderboard": "Classifica",
"List filter": "Elenco filtri",
"Filter and sort the model list by stem": "Filtra e ordina l'elenco dei modelli per traccia",
"Show list!": "Mostra elenco!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "UVR5 UIが気に入ったら、私の[GitHub](https://github.com/Eddycrack864/UVR5-UI)リポジトリにスターを付けてください",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "A100搭載の Hugging Face で UVR5 UI を試してみる [ここ](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "モデルを選択",
"Select the output format": "出力形式を選択",
"Overlap": "重複",
"Amount of overlap between prediction windows": "予測ウィンドウ間の重複量",
"Segment size": "セグメントサイズ",
"Larger consumes more resources, but may give better results": "大きいほどリソースを消費しますが、より良い結果が得られる可能性がある",
"Input audio": "入力オーディオ",
"Separation by link": "リンクによる分離",
"Link": "リンク",
"Paste the link here": "ここにリンクを貼り付け",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "ビデオ/オーディオへのリンクをさまざまなサイトから貼り付けることができる。完全なリストは [ここ](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md) で確認して",
"Download!": "ダウンロード!",
"Batch separation": "バッチ分離",
"Input path": "入力パス",
"Place the input path here": "入力パスをここに配置する",
"Output path": "出力パス",
"Place the output path here": "出力パスをここに配置する",
"Separate!": "分離!",
"Output information": "出力情報",
"Stem 1": "ステム 1",
"Stem 2": "ステム 2",
"Denoise": "ノイズ除去",
"Enable denoising during separation": "分離中にノイズ除去を有効にする",
"Window size": "ウィンドウサイズ",
"Agression": "アグレッシブネス",
"Intensity of primary stem extraction": "プライマリステム抽出の強度",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "テスト時データ拡張を有効にする; 遅いですが品質が向上する",
"High end process": "ハイエンドプロセス",
"Mirror the missing frequency range of the output": "出力の欠落した周波数範囲をミラーリングする",
"Shifts": "シフト",
"Number of predictions with random shifts, higher = slower but better quality": "ランダムシフトによる予測の数、高いほど遅いが品質が向上する",
"Stem 3": "ステム 3",
"Stem 4": "ステム 4",
"Themes": "テーマ",
"Theme": "テーマ",
"Select the theme you want to use. (Requires restarting the App)": "使用したいテーマを選択して。(アプリの再起動が必要です)",
"Credits": "クレジット",
"Language": "言語",
"Advanced settings": "詳細設定",
"Override model default segment size instead of using the model default value": "モデルのデフォルト値を使用する代わりに、モデルのデフォルトのセグメント サイズを上書きする",
"Override segment size": "セグメントサイズを上書きする",
"Batch size": "バッチサイズ",
"Larger consumes more RAM but may process slightly faster": "大きいほどRAMの消費量は多くなりますが、処理速度が若干速くなる",
"Normalization threshold": "正規化しきい値",
"The threshold for audio normalization": "オーディオ正規化の閾値",
"Amplification threshold": "増幅閾値",
"The threshold for audio amplification": "オーディオ増幅の閾値",
"Hop length": "ホップ長",
"Usually called stride in neural networks; only change if you know what you're doing": "ニューラル ネットワークでは通常、ストライドと呼ばれます。何をしているのかわかっている場合にのみ変更してください",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "品質と速度のバランスをとる。1024 = 高速だが低速、320 = 低速だが高品質",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "ボーカル出力内の残留アーティファクトを識別します。一部の曲では分離が改善される可能性がある",
"Post process": "ポストプロセス",
"Post process threshold": "ポストプロセスしきい値",
"Threshold for post-processing": "後処理のしきい値",
"Size of segments into which the audio is split. Higher = slower but better quality": "オーディオを分割するセグメントのサイズ。大きいほど遅くなりますが、品質は向上する",
"Enable segment-wise processing": "セグメントごとの処理を有効にする",
"Segment-wise processing": "セグメントごとの処理",
"Stem 5": "ステム 5",
"Stem 6": "ステム 6",
"Output only single stem": "1つのステムのみを出力",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "望むステムを書き込み、リーダーボードの各モデルのステムを確認してください。例 Instrumental",
"Leaderboard": "リーダーボード",
"List filter": "リストフィルタ",
"Filter and sort the model list by stem": "ステムでモデルリストをフィルタおよびソート",
"Show list!": "リストを表示!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "UVR5 UI가 마음에 드신다면 [GitHub](https://github.com/Eddycrack864/UVR5-UI)에서 제 리포지토리에 별을 추가해 주세요",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Hugging Face에서 A100으로 구동되는 UVR5 UI를 사용해 보세요 [이곳](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "모델 선택",
"Select the output format": "출력 형식 선택",
"Overlap": "오버랩",
"Amount of overlap between prediction windows": "예측 기간 간의 오버랩 정도",
"Segment size": "세그먼트 크기",
"Larger consumes more resources, but may give better results": "크기가 클수록 더 많은 리소스가 소모되지만, 더 나은 결과를 얻을 수 있습니다",
"Input audio": "오디오 입력",
"Separation by link": "링크로 분리하기",
"Link": "링크",
"Paste the link here": "링크를 여기에 붙여 넣으세요",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "여러 사이트의 비디오/오디오 링크를 붙여 넣을 수 있습니다. 지원되는 사이트 목록은 [이곳](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)에서 확인하세요",
"Download!": "다운로드!",
"Batch separation": "일괄 분리",
"Input path": "입력 경로",
"Place the input path here": "입력 경로를 여기에 입력하세요",
"Output path": "출력 경로",
"Place the output path here": "출력 경로를 여기에 입력하세요",
"Separate!": "분리하기!",
"Output information": "출력 정보",
"Stem 1": "스템 1",
"Stem 2": "스템 2",
"Denoise": "디노이즈",
"Enable denoising during separation": "분리 중 노이즈 제거 활성화",
"Window size": "윈도우 크기",
"Agression": "추출 강도",
"Intensity of primary stem extraction": "주요 스템 추출 강도",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "테스트 시간 증강 활성화; 느리지만 품질이 향상됩니다",
"High end process": "고급 처리",
"Mirror the missing frequency range of the output": "출력의 누락된 주파수 범위를 보정합니다",
"Shifts": "시프트",
"Number of predictions with random shifts, higher = slower but better quality": "랜덤 시프트 사용 예측 횟수; 높을수록 느리지만 품질 향상",
"Stem 3": "스템 3",
"Stem 4": "스템 4",
"Themes": "테마 목록",
"Theme": "테마 선택",
"Select the theme you want to use. (Requires restarting the App)": "사용할 테마를 선택하세요. (앱 재시작 필요)",
"Credits": "크레딧",
"Language": "언어",
"Advanced settings": "고급 설정",
"Override model default segment size instead of using the model default value": "모델 기본값 대신 세그먼트 크기를 재정의합니다.",
"Override segment size": "세그먼트 크기 재정의",
"Batch size": "배치 크기",
"Larger consumes more RAM but may process slightly faster": "값이 클수록 RAM 사용량이 증가하지만 처리 속도가 빨라질 수 있습니다.",
"Normalization threshold": "정규화 임계값",
"The threshold for audio normalization": "오디오 정규화의 기준 값입니다.",
"Amplification threshold": "증폭 임계값",
"The threshold for audio amplification": "오디오 증폭의 기준 값입니다.",
"Hop length": "홉 길이",
"Usually called stride in neural networks; only change if you know what you're doing": "신경망에서는 보통 보폭(stride)이라고 하며, 이 설정을 정확히 이해한 경우에만 변경하세요.",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "품질과 속도의 균형을 조정합니다. 1024는 빠르지만 품질이 낮고, 320은 느리지만 품질이 더 우수합니다.",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "보컬 출력에 남은 아티팩트를 식별하여 일부 곡에서 분리 품질을 향상시킬 수 있습니다.",
"Post process": "후처리",
"Post process threshold": "후처리 임계값",
"Threshold for post-processing": "후처리의 기준 값입니다.",
"Size of segments into which the audio is split. Higher = slower but better quality": "오디오를 분할하는 세그먼트 크기입니다. 값이 클수록 처리 속도는 느려지지만 품질이 향상됩니다.",
"Enable segment-wise processing": "세그먼트별 처리 활성화",
"Segment-wise processing": "세그먼트별 처리",
"Stem 5": "스템 5",
"Stem 6": "스��� 6",
"Output only single stem": "단일 스템만 출력",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "원하는 스템을 작성하고 리더보드에서 각 모델의 스템을 확인하세요. 예 Instrumental",
"Leaderboard": "리더보드",
"List filter": "목록 필터",
"Filter and sort the model list by stem": "스템 으로 모델 목록을 필터링하고 정렬합니다",
"Show list!": "목록 표시!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "Jika anda suka UI UVR5, anda boleh bintang repositori saya di [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Cuba UI UVR5 pada Memeluk Wajah dengan A100 [di sini](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Pilih model",
"Select the output format": "Pilih format output",
"Overlap": "Pertindihan",
"Amount of overlap between prediction windows": "Jumlah pertindihan antara tetingkap ramalan",
"Segment size": "Saiz segmen",
"Larger consumes more resources, but may give better results": "Saiz besar menggunakan lebih banyak sumber, tetapi mungkin memberikan hasil yang lebih baik",
"Input audio": "Input audio",
"Separation by link": "Pemisahan mengikut pautan",
"Link": "Pautan",
"Paste the link here": "Tampal pautan di sini",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "Anda boleh tampal pautan ke video/audio dari banyak laman, semak senarai lengkap [di sini](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "Muat turun!",
"Batch separation": "Pemisahan kelompok",
"Input path": "Laluan input",
"Place the input path here": "Letakkan laluan input di sini",
"Output path": "Laluan output",
"Place the output path here": "Letakkan laluan output di sini",
"Separate!": "Pisahkan!",
"Output information": "Maklumat output",
"Stem 1": "Lapis 1",
"Stem 2": "Lapis 2",
"Denoise": "Nyahbunyi",
"Enable denoising during separation": "Aktifkan nyahbunyi semasa pemisahan",
"Window size": "Saiz tetingkap",
"Agression": "Kekasaran",
"Intensity of primary stem extraction": "Intensiti pengekstrakan lapis utama",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Aktifkan Augmentasi Ujian Masa; perlahan tetapi meningkatkan kualiti",
"High end process": "Proses hujung tinggi",
"Mirror the missing frequency range of the output": "Cerminkan julat frekuensi yang hilang pada output",
"Shifts": "Peralihan",
"Number of predictions with random shifts, higher = slower but better quality": "Bilangan ramalan dengan peralihan rawak, lebih tinggi = lebih perlahan tetapi kualiti lebih baik",
"Stem 3": "Lapis 3",
"Stem 4": "Lapis 4",
"Themes": "Tema",
"Theme": "Tema",
"Select the theme you want to use. (Requires restarting the App)": "Pilih tema yang anda mahu gunakan. (Perlu mulakan semula Aplikasi)",
"Credits": "Kredit",
"Language": "Bahasa",
"Advanced settings": "Tetapan lanjutan",
"Override model default segment size instead of using the model default value": "Gantikan saiz segmen lalai model daripada menggunakan nilai lalai model",
"Override segment size": "Gantikan saiz segmen",
"Batch size": "Saiz Batch",
"Larger consumes more RAM but may process slightly faster": "Saiz lebih besar menggunakan lebih banyak RAM tetapi mungkin memproses dengan lebih cepat",
"Normalization threshold": "Ambang normalisasi",
"The threshold for audio normalization": "Ambang untuk normalisasi audio",
"Amplification threshold": "Ambang amplifikasi",
"The threshold for audio amplification": "Ambang untuk amplifikasi audio",
"Hop length": "Panjang Hop",
"Usually called stride in neural networks; only change if you know what you're doing": "Biasanya dipanggil langkah dalam rangkaian neural; hanya ubah jika anda tahu apa yang anda lakukan",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Imbangkan kualiti dan kelajuan. 1024 = cepat tetapi lebih rendah, 320 = lebih perlahan tetapi kualiti lebih baik",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Kenalpasti artifak sisa dalam keluaran vokal; boleh meningkatkan pemisahan untuk sesetengah lagu",
"Post process": "Proses pasca",
"Post process threshold": "Ambang proses pasca",
"Threshold for post-processing": "Ambang untuk pemprosesan pasca",
"Size of segments into which the audio is split. Higher = slower but better quality": "Saiz segmen di mana audio dipecahkan. Lebih besar = lebih perlahan tetapi kualiti lebih baik",
"Enable segment-wise processing": "Aktifkan pemprosesan mengikut segmen",
"Segment-wise processing": "Pemprosesan mengikut segmen",
"Stem 5": "Lapis 5",
"Stem 6": "Lapis 6",
"Output only single stem": "Output hanya satu lapis",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "Tulis lapis yang anda mahu, semak lapis setiap model pada Papan pendahulu. contoh. Instrumental",
"Leaderboard": "Papan pendahulu",
"List filter": "Penapis senarai",
"Filter and sort the model list by stem": "Penapis dan susun senarai model mengikut lapis",
"Show list!": "Tunjukkan senarai!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "Se você gosta do UVR5 UI, você pode favoritar meu repo em [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Tente UVR5 UI no Hugging Face com A100 [aqui](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Selecione o modelo",
"Select the output format": "Selecione o formato de saída",
"Overlap": "Sobreposição",
"Amount of overlap between prediction windows": "Quantidade de sobreposição entre janelas de previsão",
"Segment size": "Tamanho de segmento",
"Larger consumes more resources, but may give better results": "Maior consume mais recursos, mas retorna melhores resultados",
"Input audio": "Áudio de entrada",
"Separation by link": "Separação por link",
"Link": "Link",
"Paste the link here": "Cole o link aqui",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "Você pode colar o link de um vídeo/áudio de vários sites, confira a lista [aqui](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "Download!",
"Batch separation": "Separação de lote",
"Input path": "Caminho de entrada",
"Place the input path here": "Coloque o caminho de entrada aqui",
"Output path": "Caminho de saída",
"Place the output path here": "Coloque o caminho de saída aqui",
"Separate!": "Separar!",
"Output information": "Informação de saída",
"Stem 1": "Stem 1",
"Stem 2": "Stem 2",
"Denoise": "Reduçao de ruído",
"Enable denoising during separation": "Ativar redução de ruído durante separação",
"Window size": "Tamanho da janela",
"Agression": "Agressividade",
"Intensity of primary stem extraction": "Intensidade da extração de stem primaria",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Aumentar tempo de teste; lento mas melhora qualidade",
"High end process": "Processo de alta qualidade",
"Mirror the missing frequency range of the output": "Espelhar a frequência faltante de saida",
"Shifts": "Turnos",
"Number of predictions with random shifts, higher = slower but better quality": "Numero de previsões com turnos aleatorios, maior = mais lento porem mais qualidade",
"Stem 3": "Stem 3",
"Stem 4": "Stem 4",
"Themes": "Temas",
"Theme": "Tema",
"Select the theme you want to use. (Requires restarting the App)": "Selecione o tema que deseja utilizar. (Requer reiniciar o App)",
"Credits": "Créditos",
"Language": "Idioma",
"Advanced settings": "Opções Avançadas",
"Override model default segment size instead of using the model default value": "Substituir tamanho de segmento padrão ao invés de usar valor padrão do modelo",
"Override segment size": "Substituir tamanho de segmento",
"Batch size": "Tamanho do lote",
"Larger consumes more RAM but may process slightly faster": "Maior consome mais RAM, mas processa mais rapido",
"Normalization threshold": "Limite de normalização",
"The threshold for audio normalization": "Limite de normalização para áudio",
"Amplification threshold": "Limite para amplicação",
"The threshold for audio amplification": "Limite para amplicação para áudio",
"Hop length": "Tamanho do pulo",
"Usually called stride in neural networks; only change if you know what you're doing": "Normalmente chamado stride em redes neurais; Somente altere se souber o que está fazendo",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Balancear qualidade e velocidade. 1024 = Rápido porem lento, 320 = Lento porem melhor qualidade",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Identificar artefatos restantes na saída de vocal; Pode melhorar isolamento para algumas músicas",
"Post process": "Pós-processamento",
"Post process threshold": "Limite de pós-processamento",
"Threshold for post-processing": "Limite para pós-processamento",
"Size of segments into which the audio is split. Higher = slower but better quality": "Tamanho de segmentos para cortar o áudio. Maior = Lento porem melhor qualidade",
"Enable segment-wise processing": "Ativar Processamento por segmento",
"Segment-wise processing": "Processamento por segmento",
"Stem 5": "Stem 5",
"Stem 6": "Stem 6",
"Output only single stem": "Saída apenas de uma stem",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "Escreva a stem que deseja, verifique as stems de cada modelo no Tabela de classificação. Ex. Instrumental",
"Leaderboard": "Tabela de classificação",
"List filter": "Filtro de lista",
"Filter and sort the model list by stem": "Filtrar e classificar a lista de modelos por stem",
"Show list!": "Mostrar lista!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "Если вам нравится UVR5 UI, вы можете посмотреть мое репо на [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Попробуйте UVR5 UI на Hugging Face с A100 [здесь](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Выбор модели",
"Select the output format": "Выброр выходного формата",
"Overlap": "Пересечение",
"Amount of overlap between prediction windows": "Величина пересечения между окнами прогнозов",
"Segment size": "Размер сегмента",
"Larger consumes more resources, but may give better results": "Больший размер потребляет больше ресурсов, но может дать лучшие результаты",
"Input audio": "Входной аудиосигнал",
"Separation by link": "Разделение по ссылке",
"Link": "Ссылка",
"Paste the link here": "Вставьте ссылку здесь",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "Вы можете вставить ссылку на видео/аудио с многих сайтов, посмотрите полный список [здесь](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "Скачать!",
"Batch separation": "Пакетное разделение",
"Input path": "Входной путь",
"Place the input path here": "Вставьте путь входного аудио здесь",
"Output path": "Выходной путь",
"Place the output path here": "Вставьте путь выходного аудио здесь",
"Separate!": "Разделить!",
"Output information": "Выходная информация",
"Stem 1": "Трек 1",
"Stem 2": "Трек 2",
"Denoise": "Шумоподавление",
"Enable denoising during separation": "Включить подавление шума при разделении",
"Window size": "Размер окна",
"Agression": "Агрессия",
"Intensity of primary stem extraction": "Интенсивность извлечения первичной дорожки",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Включение функции Test-Time-Augmentation; работает медленно, но улучшает качество",
"High end process": "Высокопроизводительная обработка",
"Mirror the missing frequency range of the output": "Зеркальное отображение недостающего диапазона частот на выходе",
"Shifts": "Сдвиги",
"Number of predictions with random shifts, higher = slower but better quality": "Количество прогнозов со случайными сдвигами, больше = медленнее, но качественнее",
"Stem 3": "Трек 3",
"Stem 4": "Трек 4",
"Themes": "Темы",
"Theme": "Тема",
"Select the theme you want to use. (Requires restarting the App)": "Выберите тему, которую вы хотите использовать. (Требуется перезапуск приложения)",
"Credits": "Благодарность",
"Language": "Язык",
"Advanced settings": "Продвинутая настройка",
"Override model default segment size instead of using the model default value": "Переопределение размера сегмента по умолчанию вместо использования значения по умолчанию для модели",
"Override segment size": "Переопределение размера сегмента",
"Batch size": "Размер сегмента",
"Larger consumes more RAM but may process slightly faster": "Большие размеры используют больше оперативной памяти, но обработка данных может происходить немного быстрее",
"Normalization threshold": "Порог нормализации",
"The threshold for audio normalization": "Порог нормализации звука",
"Amplification threshold": "Порог усиления",
"The threshold for audio amplification": "Порог усиления звука",
"Hop length": "Длина шага",
"Usually called stride in neural networks; only change if you know what you're doing": "В ИИ обычно ��азывается шагом; меняйте его, только если знаете, что делаете",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Балансировка качества и скорости. 1024 = быстро, но качество ниже, 320 = медленнее, но качество выше",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Выявление остаточных артефактов в вокальном потоке; может улучшить разделение для некоторых песен",
"Post process": "Постобработка",
"Post process threshold": "Порог постобработки",
"Threshold for post-processing": "Порог для постобработки",
"Size of segments into which the audio is split. Higher = slower but better quality": "Размер сегментов, на которые разбивается аудио. Больше = медленнее, но качественнее",
"Enable segment-wise processing": "Включить сегментную обработку",
"Segment-wise processing": "Сегментная обработка",
"Stem 5": "Трек 5",
"Stem 6": "Трек 6",
"Output only single stem": "Вывод только одного трека",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "Напишите трек, который вы хотите, проверьте треки каждой модели в таблице лидеров. например. Instrumental",
"Leaderboard": "Таблица лидеров",
"List filter": "Фильтр списка",
"Filter and sort the model list by stem": "Фильтровать и сортировать список моделей по трек",
"Show list!": "Показать список!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "ถ้าคุณชอบ UVR5 UI คุณสามารถให้ดาว repo ของผมได้ที่ [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "ลอง UVR5 UI ผ่าน Hugging Face กับ A100 ได้ [ที่นี่](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "เลือกโมเดล",
"Select the output format": "เลือกรูปแบบของเอาท์พุต",
"Overlap": "ความทับซ้อน",
"Amount of overlap between prediction windows": "ปริมาณความทับซ้อนระหว่างช่วงเวลาของหน้าต่าง",
"Segment size": "ขนาดส่วน",
"Larger consumes more resources, but may give better results": "ยิ่งมีขนาดใหญ่ยิ่งใช้ทรัพยากรมากขึ้น แต่ก็อาจจะให้ผลลัพธ์ที่ดีกว่า",
"Input audio": "อินพุตเสียง",
"Separation by link": "แยกด้วยลิงค์",
"Link": "ลิงค์",
"Paste the link here": "วางลิ้งค์ที่นี้",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "คุณสามารถวางลิงก์ไปยังวิดีโอหรือเสียงจากหลากหลายเว็บไซต์ได้ ตรวจสอบรายการทั้งหมดได้ [ที่นี่](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "ดาวน์โหลด!",
"Batch separation": "การแยกเป็นชุด",
"Input path": "ที่อยู่ของอินพุต",
"Place the input path here": "วางที่อยู่ของอินพุตที่นี่",
"Output path": "ที่อยู่ของเอาท์พุต",
"Place the output path here": "วางที่อยู่ของเอาท์พุตที่นี่",
"Separate!": "เริ่มการแยก!",
"Output information": "ข้อมูลเอาท์พุต",
"Stem 1": "สเต็มที่ 1",
"Stem 2": "สเต็มที่ 2",
"Denoise": "ลดเสียงรบกวน",
"Enable denoising during separation": "เปิดการลดเสียงรบกวนระหว่างการแยก",
"Window size": "ขนาดหน้าต่าง",
"Agression": "ความก้าวร้าว",
"Intensity of primary stem extraction": "ความเข้มข้นของการคัดแยกสเต็มหลัก",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "เปิดการปรับปรุงข้อมูลในช่วงเวลาทดสอบ; ช้าแต่ปรับปรุงคุณภาพได้",
"High end process": "กระบวนการระดับชั้นสูง",
"Mirror the missing frequency range of the output": "สะท้อนช่วงความถี่ที่หายไปของเอาต์พุต",
"Shifts": "การกะระยะ",
"Number of predictions with random shifts, higher = slower but better quality": "จำนวนการทำนายที่มีการกะระยะแบบสุ่ม, สูงมาก = ช้าแต่มีคุณภาพที่ดีกว่า",
"Stem 3": "สเต็มที่ 3",
"Stem 4": "สเต็มที่ 4",
"Themes": "ธีม",
"Theme": "ธีม",
"Select the theme you want to use. (Requires restarting the App)": "เลือกธีมที่คุณต้องการจะใช้ (จำเป็นต้องเริ่มแอปใหม่)",
"Credits": "เครดิตผู้มีส่วนร่วม",
"Language": "ภาษา",
"Advanced settings": "การตั้งค่าขั้นสูง",
"Override model default segment size instead of using the model default value": "แทนที่ขนาดส่วนค่าเริ่มต้นของโมเดลแทนการใช้ค่าเริ่มต้นของโมเดล",
"Override segment size": "ขนาดของส่วนที่จะแทนที่",
"Batch size": "ขนาดชุดข้อมูล",
"Larger consumes more RAM but may process slightly faster": "ส่วนที่ใหญ่ใช้หน่วยความจำมากขึ้น แต่การประมวลผลนั้นค่อนข้างเร็วกว่า",
"Normalization threshold": "เกณฑ์การปรับเสียงสมดุล",
"The threshold for audio normalization": "เกณฑ์การปรับเสียงสมดุลของเสียง",
"Amplification threshold": "เกณฑ์การขยายเสียง",
"The threshold for audio amplification": "เกณฑ์การขยายของเสียง",
"Hop length": "ความยาวการข้าม",
"Usually called stride in neural networks; only change if you know what you're doing": "โดยทั่วไปเรียกว่าก้าวย่างในเครือข่ายประสาท เปลี่ยนแปลงก็ต่อเมื่อคุณรู้ว่าคุณกำลังทำอะไรอยู่",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "ความสมดุลของคุณภาพและความเร็ว. 1024 = เร็วแต่ให้คุณภาพที่ต่ำกว่า, 320 = ช้าแต่ให้คุณภาพที่ดีกว่า",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "ระบุส่วนที่เทียมที่เหลืออยู่ในเอาต์พุตเสียง อาจช่วยให้แยกเพลงบางเพลงไก้ดีขึ้น",
"Post process": "หลังกระบวนการ",
"Post process threshold": "เกณฑ์หลังกระบวนการ",
"Threshold for post-processing": "เกณฑ์สำหรับหลังกระบวนการ",
"Size of segments into which the audio is split. Higher = slower but better quality": "ขนาดของส่วนของเสียงใดเสียงหนึ่งที่แยกออก ค่าที่สูงขึ้น = ช้าแต่ให้คุณภาพที่ดีกว่า",
"Enable segment-wise processing": "เปิดการประมวลผลแบบเป็นส่วนๆ",
"Segment-wise processing": "การประมวลผลแบบเป็นส่วนๆ",
"Stem 5": "สเต็มที่ 5",
"Stem 6": "สเต็มที่ 6",
"Output only single stem": "ผลลัพธ์เฉพาะสเต็มเดียว",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "เขียนสเต็มที่คุณต้องการ, ตรวจสอบสเต็มของแต่ละโมเดลใน ลีดเดอร์บอร์ด ตัวอย่างเช่น Instrumental",
"Leaderboard": "ลีดเดอร์บอร์ด",
"List filter": "ตัวกรองรายการ",
"Filter and sort the model list by stem": "กรองและเรียงลำดับรายการโมเดลตาม สเต็มที่",
"Show list!": "แสดงรายการ!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "UVR5 UI'ı beğendiyseniz GitHub'daki repoma yıldız verebilirsiniz [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "UVR5 UI'ı A100 ile Hugging Face'de deneyin [buradan](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Modeli seçin",
"Select the output format": "Çıktı formatını seçin",
"Overlap": "Örtüşme",
"Amount of overlap between prediction windows": "Tahmin pencereleri arasındaki örtüşme miktarı",
"Segment size": "Segment boyutu",
"Larger consumes more resources, but may give better results": "Daha büyük boyut daha fazla kaynak tüketir ancak daha iyi sonuçlar verebilir",
"Input audio": "Ses girişi",
"Separation by link": "Bağlantı ile ayırma",
"Link": "Bağlantı",
"Paste the link here": "Bağlantıyı buraya yapıştırın",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "Birçok siteden video/ses bağlantısını yapıştırabilirsiniz, tam listeyi [buradan](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md) kontrol edin",
"Download!": "İndir!",
"Batch separation": "Toplu ayırma",
"Input path": "Giriş yolu",
"Place the input path here": "Giriş yolunu buraya yerleştirin",
"Output path": "Çıkış yolu",
"Place the output path here": "Çıkış yolunu buraya yerleştirin",
"Separate!": "Ayır!",
"Output information": "Çıktı bilgisi",
"Stem 1": "Kanal 1",
"Stem 2": "Kanal 2",
"Denoise": "Gürültü giderme",
"Enable denoising during separation": "Ayırma sırasında gürültü gidermeyi etkinleştir",
"Window size": "Pencere boyutu",
"Agression": "Saldırganlık",
"Intensity of primary stem extraction": "Birincil kanal çıkarma yoğunluğu",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Test-Zamanı-Artırımını etkinleştir; yavaş ama kaliteyi artırır",
"High end process": "Yüksek kalite işleme",
"Mirror the missing frequency range of the output": "Eksik frekans aralığını çıktıda yansıt",
"Shifts": "Kaymalar",
"Number of predictions with random shifts, higher = slower but better quality": "Rastgele kaymalarla tahmin sayısı, yüksek = daha yavaş ama daha iyi kalite",
"Stem 3": "Kanal 3",
"Stem 4": "Kanal 4",
"Themes": "Temalar",
"Theme": "Tema",
"Select the theme you want to use. (Requires restarting the App)": "Kullanmak istediğiniz temayı seçin. (Uygulamayı yeniden başlatmayı gerektirir)",
"Credits": "Katkıda Bulunanlar",
"Language": "Dil",
"Advanced settings": "Gelişmiş Ayarlar",
"Override model default segment size instead of using the model default value": "Modelin varsayılan segment boyutunu kullanmak yerine geçersiz kıl",
"Override segment size": "Segment boyutunu geçersiz kıl",
"Batch size": "Toplu iş boyutu",
"Larger consumes more RAM but may process slightly faster": "Daha büyük boyut daha fazla RAM tüketir ancak biraz daha hızlı işleyebilir",
"Normalization threshold": "Normalleştirme eşiği",
"The threshold for audio normalization": "Ses normalleştirme eşiği",
"Amplification threshold": "Yükseltme eşiği",
"The threshold for audio amplification": "Ses yükseltme eşiği",
"Hop length": "Atlama uzunluğu",
"Usually called stride in neural networks; only change if you know what you're doing": "Genellikle sinir ağlarında adım olarak adlandırılır; yalnızca ne yaptığınızı biliyorsanız değiştirin",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Kalite ve hızı dengeleyin. 1024 = hızlı ancak düşük kalite, 320 = yavaş ancak daha iyi kalite",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Vokal çıktısındaki kalan yapaylıkları belirleyin; bazı şarkılar için ayrımı iyileştirebilir",
"Post process": "Son işlem",
"Post process threshold": "Son işlem eşiği",
"Threshold for post-processing": "Son işlem için eşik",
"Size of segments into which the audio is split. Higher = slower but better quality": "Sesin bölündüğü segmentlerin boyutu. Daha yüksek = daha yavaş ancak daha iyi kalite",
"Enable segment-wise processing": "Segment bazında işlemeyi etkinleştir",
"Segment-wise processing": "Segment bazında işleme",
"Stem 5": "Kanal 5",
"Stem 6": "Kanal 6",
"Output only single stem": "Sadece tek kanal çıkışı",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "İstediğiniz kanalı yazın, her modelin gövdelerini Lider Tablosunda kontrol edin. Örn. Instrumental",
"Leaderboard": "Liderlik tablosu",
"List filter": "Liste filtresi",
"Filter and sort the model list by stem": "Model listesini kanala göre filtreleyin ve sıralayın",
"Show list!": "Listeyi göster!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "Якщо вам подобається UVR5 UI, ви можете подивитися моє репо на [GitHub](https://github.com/Eddycrack864/UVR5-UI)",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "Спробуйте UVR5 UI на Hugging Face з A100 [тут](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "Вибір моделі",
"Select the output format": "Вибір вихідного формату",
"Overlap": "Перетин",
"Amount of overlap between prediction windows": "Величина перетину між вікнами прогнозів",
"Segment size": "Розмір сегмента",
"Larger consumes more resources, but may give better results": "Більший розмір споживає більше ресурсів, але може дати кращі результати",
"Input audio": "Вхідний аудіосигнал",
"Separation by link": "Поділ за посиланням",
"Link": "Посилання",
"Paste the link here": "Вставте посилання тут",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "Ви можете вставити посилання на відео/аудіо з багатьох сайтів, подивіться повний список [тут](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "Скачати!",
"Batch separation": "Пакетний поділ",
"Input path": "Вхідний шлях",
"Place the input path here": "Вставте шлях вхідного аудіо тут",
"Output path": "Вихідний шлях",
"Place the output path here": "Вставте шлях вихідного аудіо тут",
"Separate!": "Розділити!",
"Output information": "Вихідна інформація",
"Stem 1": "Трек 1",
"Stem 2": "Трек 2",
"Denoise": "Шумозаглушення",
"Enable denoising during separation": "Увімкнути придушення шуму під час поділу",
"Window size": "Розмір вікна",
"Agression": "Агресія",
"Intensity of primary stem extraction": "Інтенсивність вилучення первинної доріжки",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "Увімкнення функції Test-Time-Augmentation; працює повільно, але покращує якість",
"High end process": "Високопродуктивне оброблення",
"Mirror the missing frequency range of the output": "Дзеркальне відображення відсутнього діапазону частот на виході",
"Shifts": "Здвиги",
"Number of predictions with random shifts, higher = slower but better quality": "Кількість прогнозів із випадковими зсувами, більше = повільніше, але якісніше",
"Stem 3": "Трек 3",
"Stem 4": "Трек 4",
"Themes": "Теми",
"Theme": "Тема",
"Select the theme you want to use. (Requires restarting the App)": "Виберіть тему, яку ви хочете використовувати. (Потрібен перезапуск програми)",
"Credits": "Вдячність",
"Language": "Мова",
"Advanced settings": "Просунута налаштування",
"Override model default segment size instead of using the model default value": "Перевизначення розміру сегмента за замовчуванням замість використання значення за замовчуванням для моделі",
"Override segment size": "Перевизначення розміру сегмента",
"Batch size": "Розмір сегмента",
"Larger consumes more RAM but may process slightly faster": "Великі розміри використовують більше оперативної пам'яті, але обробка даних може відбуватися трохи швидше",
"Normalization threshold": "Поріг нормалізації",
"The threshold for audio normalization": "Поріг нормалізації звуку",
"Amplification threshold": "Поріг підсилення",
"The threshold for audio amplification": "Поріг підсилення звуку",
"Hop length": "Довжина кроку",
"Usually called stride in neural networks; only change if you know what you're doing": "У ШІ зазвичай називається кроком; змінюйте його, тільки якщо знаєте, що робите",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "Балансування якості та швидкості. 1024 = швидко, але якість нижча, 320 = повільніше, але якість вища",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "Виявлення залишкових артефактів у вокальному потоці; може поліпшити поділ для деяких пісень",
"Post process": "Постобробка",
"Post process threshold": "Поріг постоброблення",
"Threshold for post-processing": "Поріг для постоброблення",
"Size of segments into which the audio is split. Higher = slower but better quality": "Розмір сегментів, на які розбивається аудіо. Більше = повільніше, але якісніше",
"Enable segment-wise processing": "Увімкнути сегментне оброблення",
"Segment-wise processing": "Сегментне оброблення",
"Stem 5": "Трек 5",
"Stem 6": "Трек 6",
"Output only single stem": "Вихід тільки одного треку",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "Напишіть трек, який ви хочете, перевірте треки кожної моделі на дошці лідерів. наприклад. Instrumental",
"Leaderboard": "Дошка лідерів",
"List filter": "Фільтр списку",
"Filter and sort the model list by stem": "Фільтрувати та сортувати список моделей за трек",
"Show list!": "Показати список!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{
"If you like UVR5 UI you can star my repo on [GitHub](https://github.com/Eddycrack864/UVR5-UI)": "喜欢 UVR5 UI 的话,可以在 [GitHub](https://github.com/Eddycrack864/UVR5-UI) 上标星我的仓库",
"Try UVR5 UI on Hugging Face with A100 [here](https://huggingface.co/spaces/TheStinger/UVR5_UI)": "在 Huggingface 上尝试 A100 的 UVR5 UI [这里](https://huggingface.co/spaces/TheStinger/UVR5_UI)",
"Select the model": "选择模型",
"Select the output format": "选择输出格式",
"Overlap": "重叠",
"Amount of overlap between prediction windows": "预测窗口之间的重叠量",
"Segment size": "段大小",
"Larger consumes more resources, but may give better results": "更大的模型消耗更多资源,但可能产生更好的结果",
"Input audio": "输入音频",
"Separation by link": "按链接分离",
"Link": "链接",
"Paste the link here": "请在此粘贴链接",
"You can paste the link to the video/audio from many sites, check the complete list [here](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)": "您可以从许多站点粘贴视频/音频的链接,完整列表请参见 [这里](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)",
"Download!": "下载!",
"Batch separation": "批量分离",
"Input path": "输入路径",
"Place the input path here": "在此处放置输入路径",
"Output path": "输出路径",
"Place the output path here": "将输出路径放在这里",
"Separate!": "分离!",
"Output information": "输出信息",
"Stem 1": "干声 1",
"Stem 2": "干声 2",
"Denoise": "去噪",
"Enable denoising during separation": "分离过程中启用降噪",
"Window size": "窗口大小",
"Agression": "攻击性",
"Intensity of primary stem extraction": "初生茎提取强度",
"TTA": "TTA",
"Enable Test-Time-Augmentation; slow but improves quality": "启用测试时间增强;速度较慢但提高质量",
"High end process": "高频处理",
"Mirror the missing frequency range of the output": "镜像输出中缺失的频率范围",
"Shifts": "偏移",
"Number of predictions with random shifts, higher = slower but better quality": "随机偏移预测次数,越高越慢但质量越好",
"Stem 3": "干声 3",
"Stem 4": "干声 4",
"Themes": "主题",
"Theme": "主题",
"Select the theme you want to use. (Requires restarting the App)": "选择您要使用的主题。(需要重新启动应用程序)",
"Credits": "鸣谢",
"Language": "语言",
"Advanced settings": "高级设置",
"Override model default segment size instead of using the model default value": "覆盖模型默认段大小,而不是使用模型默认值",
"Override segment size": "覆盖段大小",
"Batch size": "批大小",
"Larger consumes more RAM but may process slightly faster": "更大的批次消耗更多的内存,但可能处理速度稍快",
"Normalization threshold": "归一化阈值",
"The threshold for audio normalization": "音频归一化的阈值",
"Amplification threshold": "放大量阈值",
"The threshold for audio amplification": "音频放大量阈值",
"Hop length": "跳跃长度",
"Usually called stride in neural networks; only change if you know what you're doing": "通常称为神经网络中的步幅;仅在你知道自己在做什么的情况下更改",
"Balance quality and speed. 1024 = fast but lower, 320 = slower but better quality": "平衡质量和速度。1024 = 快但质量较低,320 = 慢但质量更好",
"Identify leftover artifacts within vocal output; may improve separation for some songs": "识别声乐输出中的残留人工制品;可能改善某些歌曲的分离",
"Post process": "后处理",
"Post process threshold": "后处理阈值",
"Threshold for post-processing": "后处理阈值",
"Size of segments into which the audio is split. Higher = slower but better quality": "音频分割成的片段的大小。越大 = 速度越慢但质量越好",
"Enable segment-wise processing": "启用分段处理",
"Segment-wise processing": "分段处理",
"Stem 5": "干声 5",
"Stem 6": "干声 6",
"Output only single stem": "仅输出单个干声",
"Write the stem you want, check the stems of each model on Leaderboard. e.g. Instrumental": "写下你想要的干声,检查排行榜上每个模型的干声。例如 Instrumental",
"Leaderboard": "排行榜",
"List filter": "列表过滤器",
"Filter and sort the model list by stem": "通过干声筛选和排序模型列表",
"Show list!": "显示列表!"
}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364import ast
import json
from pathlib import Path
from collections import OrderedDict
def extract_i18n_strings(node):
i18n_strings = []
if (
isinstance(node, ast.Call)
and isinstance(node.func, ast.Name)
and node.func.id == "i18n"
):
for arg in node.args:
if isinstance(arg, ast.Str):
i18n_strings.append(arg.s)
for child_node in ast.iter_child_nodes(node):
i18n_strings.extend(extract_i18n_strings(child_node))
return i18n_strings
def process_file(file_path):
with open(file_path, "r", encoding="utf8") as file:
code = file.read()
if "I18nAuto" in code:
tree = ast.parse(code)
i18n_strings = extract_i18n_strings(tree)
print(file_path, len(i18n_strings))
return i18n_strings
return []
py_files = Path(".").rglob("*.py")
code_keys = set()
for py_file in py_files:
strings = process_file(py_file)
code_keys.update(strings)
print()
print("Total unique:", len(code_keys))
standard_file = "languages/en_US.json"
with open(standard_file, "r", encoding="utf-8") as file:
standard_data = json.load(file, object_pairs_hook=OrderedDict)
standard_keys = set(standard_data.keys())
unused_keys = standard_keys - code_keys
missing_keys = code_keys - standard_keys
print("Unused keys:", len(unused_keys))
for unused_key in unused_keys:
print("\t", unused_key)
print("Missing keys:", len(missing_keys))
for missing_key in missing_keys:
print("\t", missing_key)
code_keys_dict = OrderedDict((s, s) for s in code_keys)
with open(standard_file, "w", encoding="utf-8") as file:
json.dump(code_keys_dict, file, ensure_ascii=False, indent=4, sort_keys=True)
file.write("\n")123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119import json
import os
import importlib
import gradio as gr
now_dir = os.getcwd()
folder = os.path.join(now_dir, "assets", "themes")
config_file = os.path.join(now_dir, "assets", "config.json")
import sys
sys.path.append(folder)
def get_class(filename):
with open(filename, "r", encoding="utf8") as file:
for line_number, line in enumerate(file, start=1):
if "class " in line:
found = line.split("class ")[1].split(":")[0].split("(")[0].strip()
return found
break
return None
def get_list():
themes_from_files = [
os.path.splitext(name)[0]
for root, _, files in os.walk(folder, topdown=False)
for name in files
if name.endswith(".py") and root == folder and name != "loadThemes.py"
]
json_file_path = os.path.join(folder, "themes_list.json")
try:
with open(json_file_path, "r", encoding="utf8") as json_file:
themes_from_url = [item["id"] for item in json.load(json_file)]
except FileNotFoundError:
themes_from_url = []
combined_themes = set(themes_from_files + themes_from_url)
return list(combined_themes)
def select_theme(name):
selected_file = name + ".py"
full_path = os.path.join(folder, selected_file)
if not os.path.exists(full_path):
with open(config_file, "r", encoding="utf8") as json_file:
config_data = json.load(json_file)
config_data["theme"]["file"] = None
config_data["theme"]["class"] = name
with open(config_file, "w", encoding="utf8") as json_file:
json.dump(config_data, json_file, indent=2)
print(f"Theme {name} successfully selected, restart the App.")
gr.Info(f"Theme {name} successfully selected, restart the App.")
return
class_found = get_class(full_path)
if class_found:
with open(config_file, "r", encoding="utf8") as json_file:
config_data = json.load(json_file)
config_data["theme"]["file"] = selected_file
config_data["theme"]["class"] = class_found
with open(config_file, "w", encoding="utf8") as json_file:
json.dump(config_data, json_file, indent=2)
print(f"Theme {name} successfully selected, restart the App.")
gr.Info(f"Theme {name} successfully selected, restart the App.")
else:
print(f"Theme {name} was not found.")
def read_json():
try:
with open(config_file, "r", encoding="utf8") as json_file:
data = json.load(json_file)
selected_file = data["theme"]["file"]
class_name = data["theme"]["class"]
if selected_file is not None and class_name:
return class_name
elif selected_file == None and class_name:
return class_name
else:
return "NoCrypt/miku"
except Exception as error:
print(f"An error occurred loading the theme: {error}")
return "NoCrypt/miku"
def load_json():
try:
with open(config_file, "r", encoding="utf8") as json_file:
data = json.load(json_file)
selected_file = data["theme"]["file"]
class_name = data["theme"]["class"]
if selected_file is not None and class_name:
module = importlib.import_module(selected_file[:-3])
obtained_class = getattr(module, class_name)
instance = obtained_class()
print(f"Theme {class_name} successfully loaded.")
return instance
elif selected_file == None and class_name:
return class_name
else:
print("The theme is incorrect.")
return None
except Exception as error:
print(f"An error occurred loading the theme: {error}")
return None123456789101112131415161718192021222324[
{"id": "freddyaboulton/dracula_revamped"},
{"id": "freddyaboulton/bad-theme-space"},
{"id": "gradio/dracula_revamped"},
{"id": "abidlabs/dracula_revamped"},
{"id": "gradio/seafoam"},
{"id": "gradio/monochrome"},
{"id": "gradio/soft"},
{"id": "gradio/default"},
{"id": "dawood/microsoft_windows"},
{"id": "ysharma/steampunk"},
{"id": "ysharma/huggingface"},
{"id": "gstaff/xkcd"},
{"id": "JohnSmith9982/small_and_pretty"},
{"id": "abidlabs/Lime"},
{"id": "bethecloud/storj_theme"},
{"id": "sudeepshouche/minimalist"},
{"id": "knotdgaf/gradiotest"},
{"id": "ParityError/Interstellar"},
{"id": "ParityError/Anime"},
{"id": "Ajaxon6255/Emerald_Isle"},
{"id": "NoCrypt/miku"},
{"id": "Hev832/Applio"}
]1234numpy==1.25.2audio-separator[gpu]==0.17.5scipyyt_dlp1234audio-separator[gpu]==0.28.5scipygradio==5.9.1yt_dlp
README.md+1-1
app.py+1499-682
assets/config.jsonAdded+10
assets/i18n/i18n.pyAdded+52
assets/i18n/languages/en_US.jsonAdded+70
assets/i18n/languages/es_ES.jsonAdded+70
assets/i18n/languages/hi_IN.jsonAdded+70
assets/i18n/languages/id_ID.jsonAdded+70
assets/i18n/languages/it_IT.jsonAdded+70
assets/i18n/languages/ja_JP.jsonAdded+70
assets/i18n/languages/ko_KR.jsonAdded+70
assets/i18n/languages/ms_MY.jsonAdded+70
assets/i18n/languages/pt_BR.jsonAdded+70
assets/i18n/languages/ru_RU.jsonAdded+70
assets/i18n/languages/th_TH.jsonAdded+70
assets/i18n/languages/tr_TR.jsonAdded+70
assets/i18n/languages/uk_UA.jsonAdded+70
assets/i18n/languages/zh_CN.jsonAdded+70
assets/i18n/scan.pyAdded+64
assets/themes/loadThemes.pyAdded+119
assets/themes/themes_list.jsonAdded+24
requirements.txt+3-3