Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
fix SpeechRecognitionOutputTransform if local (#1362)
Browse files Browse the repository at this point in the history
Co-authored-by: Ethan Harris <[email protected]>
  • Loading branch information
flozi00 and ethanwharris authored Jun 29, 2022
1 parent 345c95c commit ee512a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

- Fixed naming of optimizer and scheduler registries which did not allow manual optimization. ([#1342](https://github.com/PyTorchLightning/lightning-flash/pull/1342))

- Fixed a bug where the `processor_backbone` argument to `SpeechRecognition` was not used for decoding outputs ([#1362](https://github.com/PyTorchLightning/lightning-flash/pull/1362))

## [0.7.4] - 2022-04-27

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion flash/audio/speech_recognition/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def __init__(
optimizer=optimizer,
lr_scheduler=lr_scheduler,
learning_rate=learning_rate,
output_transform=SpeechRecognitionOutputTransform(backbone),
output_transform=SpeechRecognitionOutputTransform(backbone)
if processor_backbone is None
else SpeechRecognitionOutputTransform(processor_backbone),
)

self.save_hyperparameters()
Expand Down

0 comments on commit ee512a2

Please sign in to comment.