[modification]
added and condition before streams, existing logic is not chnaged.
This commit is contained in:
1 parent
e33bb1ec25
commit
de5fa652a1
1 file changed
+1
-1
+1
-1
@@ -317,7 +317,7 @@ class FasterWhisperPipeline(Pipeline):
|
||||
batch_size = batch_size or self._batch_size
|
||||
total_segments = len(vad_segments)
|
||||
|
||||
if batch_size > 1:
|
||||
if batch_size > 1 and self.use_batch_context:
|
||||
num_streams = batch_size
|
||||
# Distribute segments into streams
|
||||
# Manual split
|
||||
|
||||
Reference in new issue
Block a user