-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
There is a problem in the folder E:\Downloads\TTS_Arabic\tts-arabic-pytorch\venv\Lib\site-packages\tts_arabic\models. Every time the model runs, it downloads the same file repeatedly. The solution is to comment out line 32 as follows:
def get_model_path(package_path: Optional[Path] = None,
name: str = "fastpitch"
) -> str:
file_entry = files_dict[name]
if package_path is None:
package_path = Path(file).parent.parent
model_path = package_path.joinpath(file_entry['file'])
if not model_path.parent.exists():
model_path.parent.mkdir(parents=True)
#if not model_path.exists() or (model_path.lstat().st_mtime < file_entry.get('timestamp', 0)):
if not model_path.exists():
gdown.download(file_entry['url'], output=model_path.as_posix(), fuzzy=True)
return model_path.as_posix()
ImadSaddik
Metadata
Metadata
Assignees
Labels
No labels