Closed zdj97 closed 1 year ago
Hi! batch should be a tuple of 4 elements: the waveform (x), the filename (f), the label (y), and the index (i). The index is added as long as you don't call the function _get_full_trainingset with _addindex=False.
However, I have recently added a file _fname_toindex.pkl that contains a python dict for converting the filename to the respective index position in the numpy array that stores the predictions. As long as you have the latest version of the code in this repo, this new version should be used automatically.
OK, Thanks! I will update the code.
when i run ex_audioset.py, there is a problem:
in line 111 : x,f,y,i=batch
problem: not enough values to unpack(expected4, got3)
I think the value i dose not have a value and I want to know how to use the teacher preds.
Thanks!