icefall icon indicating copy to clipboard operation
icefall copied to clipboard

streaming_decode.py or decode.py under stateless5?

Open Cescfangs opened this issue 1 year ago • 2 comments

Hey guys, I see both streaming_decode.py and decode.py under stateless5 support streaming decoding, what's the difference?

Cescfangs avatar Nov 08 '22 03:11 Cescfangs

In decode.py, it is simulate streaming decoding (i.e. using masking when calculating attention). In streaming_decode.py it is real streaming decoding (i.e decoding chunk by chunk).

So, you can decode a streaming model with either simulate_streaming in decode.py or streaming_decode.py, the decoding resutls should be almost the same.

pkufool avatar Nov 08 '22 03:11 pkufool

Got it, thanks !

Cescfangs avatar Nov 08 '22 03:11 Cescfangs