-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load ark directly in KaldiReader #862
load ark directly in KaldiReader #862
Conversation
@@ -582,8 +582,6 @@ class FeatureSet(Serializable, AlgorithmMixin): | |||
|
|||
def __init__(self, features: List[Features] = None) -> None: | |||
self.features = ifnone(features, []) | |||
if isinstance(self.features, list): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remove this sort since it causes errors when creating cutset using lhotse cut simple
with features, supervisions, and recordings imported from kaldi
.
self.storage = kaldi_native_io.RandomAccessFloatMatrixReader( | ||
f"scp:{self.storage_path}" | ||
) | ||
if storage_path.endswith(".scp"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for backward compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! @jtrmal these changes are probably covered by the tests you wrote, right?
sorry for late response -- yes, most of it was already covered by tests.
y.
…On Tue, Oct 25, 2022 at 11:25 PM Piotr Żelasko ***@***.***> wrote:
Merged #862 <#862> into
master.
—
Reply to this email directly, view it on GitHub
<#862 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYXZOZNDC55TL3E2DMJ3WFCQBBANCNFSM6AAAAAAROEPP3E>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
No description provided.