Files changed (4)
431 unmodified lines432433434435436437438439431 unmodified linestranslations["provide_file"].format(filename=translations["model"]),))client_mode = True # "--client" in sys.argvwith gr.Blocks(title="📱 Vietnamese-RVC GUI BY ANH",431 unmodified lines432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515431 unmodified linestranslations["provide_file"].format(filename=translations["model"]),))def move_files_by_extension(dump_path_str, index_path_str, weights_path_str):"""Recursively moves .index files to index_path_dump_path and.pth files to weights_path_dump_path from dump_path.Args:dump_path_str (str): The source directory path.index_path_str (str): The destination directory path for .index files.weights_path_str (str): The destination directory path for .pth files."""dump_path = Path(dump_path_str)index_path = Path(index_path_str)weights_path = Path(weights_path_str)# Create destination directories if they don't existindex_path.mkdir(parents=True, exist_ok=True)weights_path.mkdir(parents=True, exist_ok=True)# 1. Move .index files# Use rglob for recursive search in all subdirectoriesfor file_path in dump_path.rglob('*.index'):try:destination = index_path / file_path.nameshutil.move(str(file_path), str(destination))print(f"Moved '{file_path.name}' to '{index_path}'")except shutil.Error as e:print(f"Error moving file {file_path}: {e}")except FileNotFoundError as e:print(f"File not found {file_path}: {e}")# 2. Move .pth filesfor file_path in dump_path.rglob('*.pth'):try:destination = weights_path / file_path.nameshutil.move(str(file_path), str(destination))print(f"Moved '{file_path.name}' to '{weights_path}'")except shutil.Error as e:print(f"Error moving file {file_path}: {e}")except FileNotFoundError as e:print(f"File not found {file_path}: {e}")dump_path = os.path.join("assets", "tempdump")index_path_dump_path = os.path.join("assets", "logs")weights_path_dump_path = os.path.join("assets", "weights")uvr_dump_path = os.path.join("main", "main", "assets", "models", "uvr5")#index_path_dump_path = os.path.join(index_path)#index_path_dump_path = os.path.join(index_path)#index_path_dump_path = os.path.join(index_path)repo_id = "lainlives/voice"hf_token = os.environ.get("HF_TOKEN")hf_hub_download(repo_id=repo_id, local_dir=dump_path, token=hf_token subfolder=rvc/voice_models)move_files_by_extension(dump_path, index_path_dump_path, weights_path_dump_path)hf_hub_download(repo_id=repo_id, local_dir=uvr_dump_path, token=hf_token subfolder=audio_separator)#hf_hub_download(repo_id=repo_id, local_dir=dump_path, token=hf_token)#hf_hub_download(repo_id=repo_id, local_dir=dump_path, token=hf_token)#hf_hub_download(repo_id=repo_id, local_dir=dump_path, token=hf_token)client_mode = False # "--client" in sys.argvwith gr.Blocks(title="📱 Vietnamese-RVC GUI BY ANH",
181 unmodified lines182183184185186187188189181 unmodified linesvalue="audios/output.wav",placeholder="audios/output.wav",info=translations["output_path_info"],interactive=True,allow_custom_value=False,)with gr.Column():refresh0 = gr.Button(translations["refresh"])181 unmodified lines182183184185186187188181 unmodified linesvalue="audios/output.wav",placeholder="audios/output.wav",info=translations["output_path_info"],interactive=False,)with gr.Column():refresh0 = gr.Button(translations["refresh"])
12portaudio19-devlibportaudio212345portaudio19-devlibportaudio2htopmicronvtop
123414 unmodified lines19202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364# Platform-specific requirements sectionpip>=23.3wheelomegaconf>=2.0.614 unmodified linesfaiss-cpu==1.7.3; python_version < "3.12"faiss-cpu>=1.7.3; python_version >= "3.12"# Machine learning, NLP and deep learningtransformers>=4.49.0scikit-learneinops>=0.8.0# Pitch and sound processinglibrosa>=0.10.2pydub>=0.25.1praat-parselmouthsoundfile>=0.13.0pedalboard# Data processing and calculationnumpy>=1.25.2,<2.0.0numba>=0.57.0scipy>=1.15.0matplotlib>=3.7.2# Implementation and web frameworkgradio>=5.23.3,<6.0.0requests>=2.32.3aiohttppysrt# Utility sectionyt-dlpedge-tts>=7.2.0ffmpy==0.3.1ffmpeg-python>=0.2.0beautifulsoup4# Tensorboard and ONNXtensorboardonnx>=1.14onnxslimonnx2torch>=1.5.15# Cryptography sectionpycryptodome>=3.9.6,<4.0.0# Realtime and VADsounddevice>=0.5.2webrtcvad-wheels>=2.0.14123414 unmodified lines19202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364# Platform-specificpip>=23.3wheelomegaconf>=2.0.614 unmodified linesfaiss-cpu==1.7.3; python_version < "3.12"faiss-cpu>=1.7.3; python_version >= "3.12"# Machine learningtransformers>=4.49.0scikit-learneinops>=0.8.0# Pitch processinglibrosa>=0.10.2pydub>=0.25.1praat-parselmouthsoundfile>=0.13.0pedalboard# Processingnumpy>=1.25.2,<2.0.0numba>=0.57.0scipy>=1.15.0matplotlib>=3.7.2# Web frameworkgradio>=5.23.3,<6.0.0requests>=2.32.3aiohttppysrt# Stuffyt-dlpedge-tts>=7.2.0ffmpy==0.3.1ffmpeg-python>=0.2.0beautifulsoup4# Tensorboardtensorboardonnx>=1.14onnxslimonnx2torch>=1.5.15# Cryptopycryptodome>=3.9.6,<4.0.0# Realtimesounddevice>=0.5.2webrtcvad-wheels>=2.0.14
main/app/app.py+77-1
main/app/tabs/inference/child/convert.py+1-2
packages.txt+4-1
requirements.txt+10-10