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

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Jan 5, 2022
1 parent 65a37b2 commit b9077cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions flash/audio/speech_recognition/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def from_timit(
"""Downloads and loads the timit data set."""
download_data("https://pl-flash-data.s3.amazonaws.com/timit_data.zip", "./data")
return SpeechRecognitionData.from_json(
input_fields="file",
target_fields="text",
"file",
"text",
train_file="data/timit/train.json",
test_file="data/timit/test.json",
val_split=val_split,
Expand Down
1 change: 1 addition & 0 deletions flash/audio/speech_recognition/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ def from_datasets(
objects.
The Dataset objects should be one of the following:
* A PyTorch Dataset where the ``__getitem__`` returns a tuple: ``(file_path or , target)``
* A PyTorch Dataset where the ``__getitem__`` returns a dict: ``{"input": file_path, "target": target}``
Expand Down
4 changes: 2 additions & 2 deletions flash_examples/speech_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
download_data("https://pl-flash-data.s3.amazonaws.com/timit_data.zip", "./data")

datamodule = SpeechRecognitionData.from_json(
input_fields="file",
target_fields="text",
"file",
"text",
train_file="data/timit/train.json",
test_file="data/timit/test.json",
batch_size=4,
Expand Down

0 comments on commit b9077cc

Please sign in to comment.