micmarty / Instronizer

Proof-of-concept instrument recoginition system using Deep Neural Networks. For more details, don't hesitate to check out the readme file!
http://martyniak.tech/recent_projects.html
6 stars 3 forks source link

Wrong number of calculated blocks displayed (command-line, cosmetic bug) #1

Open micmarty opened 6 years ago

micmarty commented 6 years ago

Problem description / How to reproduce the bug

  1. Launch preprocessor.py with input and output paths as parameters (e.g. on IRMAS train dataset)
  2. Each file (3s) should produce 6 blocks (assuming one block is 1s with 0.5 overlap) but the displayed result in console is 11

Proposed fix

Modify function blocks_num in preprocessor.py and section responsible for loading audio into block object inside transform_to_spectrograms