Support resumable scoring#3
Draft
ftshijt wants to merge 1 commit into
Draft
Conversation
cac95ac to
c490875
Compare
c490875 to
96215e1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds resume support for utterance-level scoring so interrupted runs can continue from an existing JSONL output file instead of starting over.
Details
--resumeflag to the standard and chunked scorer entrypoints.MetricSuite.__len__so legacy chunked scoring code can safely check loaded metric counts.Validation
conda run -n versa-dev python -m pytest test/test_pipeline/test_base_metrics_pipeline.py::test_score_utterances_resume_skips_completed_keys -qconda run -n versa-dev python -m pytest test/test_pipeline/test_base_metrics_pipeline.py::test_score_utterances_resume_skips_completed_keys test/test_pipeline/test_base_metrics_pipeline.py::test_stoi_and_signal_pipeline_with_registry -qconda run -n versa-dev python -m versa.bin.scorer --pred test/test_samples/test2.scp --gt test/test_samples/test1.scp --score_config egs/separate_metrics/snr_related.yaml --output_file /private/tmp/versa-resume-cli.jsonl --io soundfile --resumetwice; output stayed at 1 rowconda run -n versa-dev python -m versa.bin.scorer_chunk --pred test/test_samples/test2.scp --gt test/test_samples/test1.scp --score_config egs/separate_metrics/snr_related.yaml --output_file /private/tmp/versa-resume-chunk.jsonl --io soundfile --enable_chunking --chunk_duration 0.5 --hop_duration 0.5 --resumetwice; output stayed at 2 rowspython3 -m py_compile versa/definition.py versa/scorer_shared.py versa/bin/scorer.py versa/bin/scorer_chunk.py test/test_pipeline/test_base_metrics_pipeline.pygit diff --check