Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ketos ketos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • public_projects
  • ketosketos
  • Merge requests
  • !185

Merged
Created Sep 18, 2020 by Oliver Kirsebom@kirsebomOwner

Audio frame loader faster execution

  • Overview 3
  • Commits 4
  • Pipelines 2
  • Changes 6

This merge request adds

  • minor bug fixes in the base_audio and spectrogram modules (most notably, I fixed a bug that was causing all spectrograms computed with the from_wav method to be slightly misaligned if offset was specified to 0)

  • a batch_size argument for the AudioFrameLoader class

The AudioFrameLoader loads waveforms with duration frame_length + step_size * (batch_size - 1) and computes the spectrogram. If batch_size > 1, it then splits the computed spectrogram into segments with the specified frame length and step size. The advantage of this approach is that the spectrogram is not computed twice in the overlap region, except at the end of every batch. If, for example, the step_size is half of the frame_length, using a batch size of 8 can reduce the computational time by 30% on my machine.

Note that this branch was branched out from the detection_utils branch.

Should be ready to merge!

Edited Sep 18, 2020 by Oliver Kirsebom
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: audio_frame_loader_batches