Skip to content

Downloads problem #3

@SherifAdel2

Description

@SherifAdel2

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions