Open BornSaint opened 1 week ago
tried the existent pth in logs dir for small pth model i got:
An error occurred extracting the model: 'dict' object has no attribute 'half'
for G_steps.pth i got:
An error occurred extracting the model: 'collections.OrderedDict' object has no attribute 'half'
The --pth_path argument expects the path to your trained model's .pth file. These files are PyTorch model weights that are saved during or after training. They are typically located in:
For example, if you trained a model called "my_voice", you might find files like: logs/my_voice/G_32000.pth logs/my_voice/G_latest.pth logs/my_voice/D_32000.pth The correct file to use would be the Generator (G) model file, not the Discriminator (D) file.
The errors you're seeing suggest that:
Here's how you should use the command:
python core.py model_extract --pth_path "logs/my_voice/G_32000.pth" --model_name "my_voice" --sample_rate 40000 --pitch_guidance True --rvc_version v2 --epoch 32000
To fix your issues:
If you want to automatically find and extract models from the logs directory, that would require modifying the code - it's not currently a built-in feature.
Project Version
3.2.3
Platform and OS Version
Linux x64
Affected Devices
PC
Existing Issues
No response
What happened?
I don't know what i should insert in --pth_path, it shouldn't ask --model_name and try to find and extract from logs dir?
Steps to reproduce
...
Expected behavior
extract
Attachments
No response
Screenshots or Videos
No response
Additional Information
No response