mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-08 16:00:01 +08:00
修改Faster-Whisper模型默认下载C盘目录的问题
当前的版本在Windows下测试,如果whisper模型不存在,会在C:\Users\用户名\.cache\huggingface\hub下载模型,占用C盘空间
This commit is contained in:
parent
17aff21aee
commit
f1f78bdcc2
@ -47,7 +47,7 @@ def execute_asr(input_folder, output_folder, model_size, language,precision):
|
|||||||
print("loading faster whisper model:",model_size,model_path)
|
print("loading faster whisper model:",model_size,model_path)
|
||||||
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
||||||
try:
|
try:
|
||||||
model = WhisperModel(model_path, device=device, compute_type=precision)
|
model = WhisperModel(model_path, device=device, compute_type=precision,download_root="./tools/asr/models",local_files_only=False)
|
||||||
except:
|
except:
|
||||||
return print(traceback.format_exc())
|
return print(traceback.format_exc())
|
||||||
output = []
|
output = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user