Online speaker diarization as a block #92
Merged
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.
This PR addresses issues #83 and #84.
Changelog
OnlineSpeakerDiarization
is now independent from RxPY and can be used as a block (cc @hbredin)from diart import OnlineSpeakerDiarization, PipelineConfig
AudioLoader
cannot split files into audio chunks anymoreDelayedAggregation
of the stream duration, then it would concatenate the last non-aggregated outputEmbeddingNormalization
was squeezing the outputOnlineSpeakerDiarization
does not split the stream into chunks anymore, nor it resamples chunks dynamicallyRealTimeInference
, which still uses RxPY as it is a higher level APIRealTimeInference
can now do batched inference and includes new parametersBenchmark
reusesRealTimeInference
internally (huge win here)regularize_audio_stream()
renamed torearrange_audio_stream()
, as the notion of regularity is not very clear herediart.pipelines
does not exist anymorelength
property anymorePrecalculatedFeaturesAudioSource
AudioSource
block size is set to the step sizeOnlineSpeakerDiarization.reset()
to reset internal state (centroids and buffers)AudioSource.close()
to correctly handle termination from external causesdo
anddo_action
diart.operators.profile
with a statefuldiart.utils.Chronometer
diart.operators.progress
inRealTimeInference
RealTimeInference
now handles all the complexity of RxRAM usage during inference is considerably reduced (~30%)
Runtime doesn't seem to be impacted