Skip to content

Commit

Permalink
minor train logging cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
benfoley committed Dec 6, 2021
1 parent 36fdfaf commit 5b8048d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion elpis/engines/hft/objects/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,6 @@ def prepare_speech(self):
dur_ms = stop_ms - start_ms
speech_array, sample_rate = torchaudio.load(filepath=path, frame_offset=start_frame, num_frames=num_frames)
# Check that frames exceeds number of characters, wav file is not all zeros, and duration between min, max
print('text length', len(text))
if int(audio_metadata.num_frames) >= len(text) \
and speech_array.count_nonzero() \
and float(self.settings['min_duration_s']) < dur_ms/1000 < float(self.settings['max_duration_s']):
Expand Down
1 change: 1 addition & 0 deletions elpis/gui/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ code {
}
.compiled-log > div {
padding-bottom: 1.2em;
white-space: break-spaces;
}

.accordion {
Expand Down

0 comments on commit 5b8048d

Please sign in to comment.