mirror of
https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-11-05 00:27:30 +00:00
[GH-ISSUE #437] IndexError and UnpicklingError during model training with pretrained weights #227
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#227
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 @Setmaster on GitHub (Jun 5, 2023).
Original GitHub issue: https://github.com/RVC-Project/Retrieval-based-Voice-Conversion-WebUI/issues/437
When trying to train I encountered two errors: an
IndexErrorrelated to the list index being out of range and an_pickle.UnpicklingErrorregarding an invalid load key.@fjibj commented on GitHub (Jun 21, 2023):
me too.
@brunolm commented on GitHub (Jul 8, 2023):
Got same error when trying to separate voice/instrument
related?

Note: no errors downloading the 7z file and extracting everything instead
@mattdisk commented on GitHub (Jul 10, 2023):
That is because the pre-trained model is saved as LFS (Large File Storage) on HuggingFace.
If you only use "git clone" or "curl", it will only give you an html file rather than the real document.
You can easily realize that by looking at the file size. Normally the model takes around 50MB ~200MB. However, the html file is only several hundred KB.
That is why it shows something like "_pickle.UnpicklingError: invalid load key, '<'." This "<" is from the html file.
The solution is to use "git lfs".
I think this mistake is very common if someone is a beginner, and we should mention it in the readme document.
@EvilFireLee commented on GitHub (Dec 27, 2023):
I encountered this issue today. In my situation, I know it has nothing to do with HTML or FLS because I just finished training my other model. As it turns out, you cannot name your experiment with a name like XXXXXV3. Somehow, the RVC thinks you are attempting to find a Version3 pretrained model that doesn't exist yet. So, my takeaway is not to name your experiment with anything related to numbers and common coding instructions.
@augustohsales commented on GitHub (Apr 20, 2024):
I resolved this error by following this tutorial https://www.youtube.com/watch?v=nXpBlC6OBw4&t=1119s
The error occurs because you must have some virtual environment with the name env in anaconda. This causes the env subfolder to not be created in Retrieval-based-Voice-Conversion-WebUI. Replace the command "python - m venv env" with python - m venv [your_name] then type your_name\Scripts\activate before executing the other commands:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 our cu118 and
ip install -r requirements.txt and enjoy