Skip to content

Commit

Permalink
default to codebook fps 75 more fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Paarth Neekhara <[email protected]>
  • Loading branch information
paarthneekhara committed Dec 14, 2023
1 parent 4e366f2 commit 05c16d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def load_data(self, dataset):

if doc["answer_type"] in ["SPEECH", "AUDIOCODEC"]:
assert "answer_duration" in doc, f"answer_duration key not in document {doc}"
approx_answer_len = doc["answer_duration"] * self.codebook_fps
approx_answer_len = doc["answer_duration"] * (self.codebook_fps + 1)
if self.seq_pattern == "delay_parallel":
# In delay parallel, there is padding so add 8 frames
approx_answer_len = approx_answer_len + 8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ def build_virtual_prompt_dataset(
cross_attention_epsilon=self.cfg.data.get('cross_attention_epsilon', 0.0),
lm_vocab_size=self.lm_vocab_size,
num_speech_codebooks=self.num_speech_codebooks,
codebook_fps=self.cfg.data.get('codebook_fps', 76),
codebook_fps=self.cfg.data.get('codebook_fps', 75),
)

rank = parallel_state.get_data_parallel_rank()
Expand Down

0 comments on commit 05c16d3

Please sign in to comment.