fastaudio / fastai_audio

[DEPRECATED] 🔊️ Audio with fastaiv1
MIT License
160 stars 49 forks source link

ipy_audio returns incorrect time #36

Closed kevinbird15 closed 5 years ago

kevinbird15 commented 5 years ago

On the first load, ipy_audio returns the incorrect time. If you re-run the cell, it looks correct. I haven't had any luck tracking this error down, but it's definitely consistent on my end at least.

To reproduce:

  1. Load an Audio file as an AudioItem
  2. run audio_item.ipy_audio observe the output
  3. rerun audio_item.ipy_audio in the next cell and the time will be correct

image

mogwai commented 5 years ago

What browser is this on?

kevinbird15 commented 5 years ago

Chrome, I can get version later. Is this not a fastai_audio problem but a problem with how the audio html tags work?

rbracco commented 5 years ago

I tried and am unable to replicate. My attempt was using the Getting Started notebook, and after splitting/labeling here:

audios = AudioList.from_folder(data_folder, config=config).split_by_rand_pct(.2, seed=4).label_from_re(label_pattern)

running

audios.train.x[0] multiple times. I found no differences and haven't seen this problem before. Am I properly replicating?

kevinbird15 commented 5 years ago

Looks correct to me. It must be something with my specific environment.

kevinbird15 commented 5 years ago

Actually this is on firefox. I forgot I had transitioned.

mogwai commented 5 years ago

Yes this is an issue with firefox. Use chrome to avoid this