Skip to content

Benchmark DALI decoding for pytorch and tensorflow #11

Open

Description

@faroit

I totally missed that DALI added audio decoding ops. As far as I can see, the ops seems to be based on sndfile and do not support GPU decoding. I wonder if this would still improve single threaded ETL speed on pytorch or tensorflow.

pinging DALI devs @mzient @szalpal as they might have benchmarked the op against tfio or torchaudio which are also sndfile based.

Activity

  1. szalpal commented on May 13, 2020

    @szalpal

    Hi @faroit ,

    DALI's AudioDecoder is in fact based on sndfile. Currently there are no specific plans for supporting GPU decoding. We also don't have any measurements specifically for AudioDecoder operation yet - we rather focus on end-to-end pipeline speedups, which ofc depend on what operations you put inside the pipeline.

    To answer Your question, I would expect that for single sample, DALI's decoding would be roughly as fast as torchaudio. There is an advantage tough, that when using DALI you can decode in batches, using multiple CPU threads for given batch, making your decoding operation num_threads times faster in the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions