UCSD-E4E / acoustic-multiclass-training

Data processing and training pipeline for classifying bird species by sound
GNU General Public License v3.0
9 stars 2 forks source link

Sliding pyha chunks hotfix #150

Closed benjamin-cates closed 1 year ago

benjamin-cates commented 1 year ago

Ok so sliding chunking was discarding annotations less than 0.45 because 0.45 + (0.4 margin) + (0.4 margin) < 1.25 which is less than half of chunk_length * (1-overlap) = 2.5 so it was getting discarded by the round function. This hotfix fixes that by diverting the chunking method to just center on short annotations when only_slide=True.