Skip to content

Add support for custom HOME_DIR #438

@wsntxxn

Description

@wsntxxn

Nowadays we often mount a filesystem on clusters so that cache directories for downloading and saving models are better set on mounted filesystems. Therefore I prefer customizing WESPEAKER_HOME by something like this:

modifying https://github.com/wenet-e2e/wespeaker/blob/master/wespeaker/cli/hub.py#L106

model_dir = os.path.join(Path.home(), ".wespeaker", lang)

to

model_dir = os.path.join(os.environ.get("WESPEAKER_HOME", Path.home()), ".wespeaker", lang))

and other places with reference to the home directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions