• Nicolas Patry's avatar
    Improve error messaging for ASR pipeline. (#19570) · 463226e2
    Nicolas Patry authored
    * Improve error messaging for ASR pipeline.
    
    - Raise error early (in `_sanitize`) so users don't waste time trying to
      run queries with invalid params.
    
    - Fix the error was after using `config.inputs_to_logits_ratio` so our
      check was masked by the failing property does not exist.
    
    - Added some manual check on s2t for the error message.
      No non ctc model seems to be used by the default runner (they are all
      skipped).
    
    * Removing pdb.
    
    * Stop the early error it doesn't really work :(.
    463226e2
test_pipelines_automatic_speech_recognition.py 36.9 KB