Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeAnt AI: Made Changes to the file #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
changed files
  • Loading branch information
Chhinna committed Jan 22, 2024
commit 169937a5f612c0396fb8a00858f2b89dda957901
8 changes: 4 additions & 4 deletions analytics/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# NOTE (Sam): move to Tacotron2 model and remove from Uberduck repo.
def _load_tacotron_uninitialized(overrides=None):
overrides = overrides or {}
defaults = dict(**TACOTRON2_DEFAULTS.values())
defaults = {**TACOTRON2_DEFAULTS.values()}
defaults.update(overrides)
hparams = HParams(**defaults)
return Tacotron2(hparams)
Expand Down Expand Up @@ -75,7 +75,7 @@ def sample_inference_tf_spectrogram():
def lj_trainer(lj_speech_tacotron2_file):
# NOTE (Sam): It may be nicer to specify trainer here and test-specific parameters (e.g. data) in test itself.
config = TACOTRON2_TRAINER_DEFAULTS.values()
params = dict(
params = {
warm_start_name=lj_speech_tacotron2_file.name,
training_audiopaths_and_text=os.path.join(
os.path.dirname(__file__), "fixtures/ljtest/list_small.txt"
Expand All @@ -93,10 +93,10 @@ def lj_trainer(lj_speech_tacotron2_file):
# NOTE (Sam): this effects the reduction in loss in the gradient descent,
# so we need a separate test of validation and logging code.
is_validate=False,
)
}
config.update(params)
hparams = HParams(**config)

trainer = Tacotron2Trainer(hparams, rank=0, world_size=1)

return trainer
return trainer
Loading