mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-11-05 00:27:30 +00:00
[GH-ISSUE #2855] ## CHAPTER 5: CRITICAL FILE SYSTEM AND BLUEPRINT RE-ARCHITECTURING #2053
Labels
No labels
AMD/Intel
bug
bug
bug
colab
dependencies
documentation
duplicate
enhancement
following up
good first issue
help wanted
invalid
question
stale
stale
stale
todo list
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
RVC-Project/Retrieval-based-Voice-Conversion-WebUI#2053
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @LebedevIV on GitHub (Sep 10, 2026).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/2855
Feature 13: Replacing Positional
sys.argvwith RobustargparseFlags in Dataset ToolsCurrently, standalone CLI modules like
train/dataset/extract_f0.pyandextract_hubert_feature.pyrely on raw positional command-line arguments viasys.argv. Any slight deviation in the wrapper pipeline call logic or an attempt by a user to run the script directly via a shell causes fatal argument shifts. For instance, passing an unexpected extraction string causes the script to interpret a directory path as a hardware backend, resulting in a silent crash or a misleadingValueError: Unsupported F0 extraction mode.Refactor all dataset processing entry points to utilize Python's native
argparselibrary. Forcing explicit, named flags (e.g.,--backend cuda,--input_dir ./logs/project) instead of brittle array indices will secure the interface from argument corruption across different OS shells and Python 3.12 subprocess configurations.Bug 14: Fragile Directory Initialization and Safe Storage Isolation
The pitch extraction core (
extract_f0.py) assumes that its target directories (2a_f0,2b-f0nsf,3_feature768) already exist as physical folders on the drive. If a user shifts to a new custom experiment name (e.g., creating a separate model configuration profile), the pipeline immediately crashes withFileNotFoundErrororNotADirectoryError (WinError 267). This happens because the framework fails to execute a recursive folder layout check and occasionally creates flat, broken meta-strings instead of actual physical directory nodes on Windows environments.Implement an immutable, top-level initialization pass using
os.makedirs(..., exist_ok=True)inside all feature extraction entry points. Before attempting to open loggers or stream tensor data, the framework must explicitly declare and force-verify that the required nested project folder branches physically exist as genuine directory objects.Feature 15: Dynamic Validation-Driven
filelist.txtGeneration (Anti-Crash Mapping)The current dataset preprocessing utility (
train/preprocess.pyviaaudio-slicer) can occasionally skip indices or name sliced chunks non-sequentially based on the source voice profile's underlying envelope and silences (e.g., rendering files starting directly from0_10.npywhile omitting0_1.npy). RVC's blueprint compiler generates thefilelist.txttraining map "blindly," assuming a perfect arithmetic index sequence. When the PyTorchDataLoaderworker processes step one, it attempts to load missing baseline tensors, resulting in an unrecoverableFileNotFoundErrorthat halts training.Rework the blueprint compiling script to perform a dynamic, validation-driven directory scan. Instead of guessing file rows mathematically, the script should physically read the contents of the
3_feature768and2a_f0folders on the SSD and map rows intofilelist.txtonly if all three required AI components (WAV, HuBERT features, and F0 pitch maps) are verified to coexist simultaneously on the drive. This failsafe mechanism will make the training engine completely bulletproof against irregular dataset slicing behaviors.