Skip to content
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

Save every 100 batches. #186

Closed
wants to merge 2 commits into from
Closed

Save every 100 batches. #186

wants to merge 2 commits into from

Conversation

siddalmia
Copy link

No description provided.

@fmetze
Copy link
Contributor

fmetze commented Jun 19, 2018

Would it be possible to open the ark/ scp files in "append mode" (not sure if it is). I think it is not ideal to have potentially many small files laying around when we don't parallelize the output, but we only save on memory.

@ramonsanabria
Copy link

ramonsanabria commented Jun 19, 2018 via email

@siddalmia
Copy link
Author

https://github.com/siddalmia/eesen/blob/bb96c589bb626f8babe4a5109f17a970037b6bc9/tf/ctc-am/utils/fileutils/kaldi.py#L166

Hmm, The writeark seems to be working in append mode.. It might actually be possible. Let me check

I think this would append, along with srvk/eesen#187
@siddalmia
Copy link
Author

ok, @fmetze could you check this, along with #187 ? It should do the append.

@ramonsanabria
Copy link

ramonsanabria commented Jun 19, 2018 via email

@fmetze
Copy link
Contributor

fmetze commented Jun 19, 2018

I don't have a test setup ready. I think it would be best to make it an option, and if that has been enabled, write out the file in multiple batches, appending to the big file.

@siddalmia siddalmia closed this Jun 21, 2018
@siddalmia siddalmia deleted the patch-4 branch June 21, 2018 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants