Skip to content

Source data_dir from DATA_DIR env var instead of hard-coding path#49

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/switch-default-paths-preset
Draft

Source data_dir from DATA_DIR env var instead of hard-coding path#49
Copilot wants to merge 2 commits intomainfrom
copilot/switch-default-paths-preset

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 15, 2026

tts.yaml hard-codes data_dir to a machine-specific path, breaking runs on any other environment.

  • Move data_dir into config/paths/default.yaml using ${oc.env:DATA_DIR}, consistent with the existing root_dir pattern
  • Remove the hard-coded paths.data_dir override from config/tts.yaml

Users set the data directory via environment:

export DATA_DIR=/path/to/data

Or CLI override:

uv run python ./train.py paths.data_dir=/path/to/data

OmegaConf raises a clear InterpolationKeyError if DATA_DIR is unset.

Copilot AI changed the title [WIP] Update paths preset to use environment variable Source data_dir from DATA_DIR env var instead of hard-coding path Apr 15, 2026
Copilot AI requested a review from slowmoyang April 15, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Choose paths based on environment variable

2 participants