Commit b41749b1 authored by Sulfyderz's avatar Sulfyderz
Browse files

[Error Update]:Correcting the cutBigSegmentLowEnergy method in diar_tools.py..

parent 098aa0e2
......@@ -1581,7 +1581,7 @@ def cutBigSegmentLowEnergy(diar,cepstrum,maxSegSize,securityMarginSize,winSize=1
# Computes rolling mean and std in the window of size win, gets numpy array
# Mean and std have NAN at the beginning and the end of the output array
df = pd.DataFrame(cepstrum)
r = df.rolling(window=int(win/2), center=False)
r = df.rolling(window=int(winSize/2), center=False)
mean = r.mean().values
for i in diar:
if i.duration()>maxSegSize:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment