pritamqu / AVCAffe

[AAAI 2023] AVCAffe: A Large Scale Audio-Visual Dataset of Cognitive Load and Affect for Remote Work
https://www.pritamsarkar.com/
Other
17 stars 1 forks source link

AttributeError in dataloader #7

Open bsyh opened 1 year ago

bsyh commented 1 year ago

Hi, I face AttributeError running this line of code. Though the error is handled, the data loader seems not to read data properly on my laptop.

https://github.com/pritamqu/AVCAffe/blob/dc2702b2e30c34b29bed796829c251c1988e0772/codes/dataloader/backend/av_wrappers.py#L119

audio_resampler.resample(frame) returns a list of one audio frame that doesn't provide to_ndarray() method. Changing the line to np_snd = audio_resampler.resample(frame)[0].to_ndarray() solves the issue on me laptop. I am unsure if someone faces the same issue, but I report here for reference.

pritamqu commented 1 year ago

I do not recall getting this error, often version changes may cause this as well! Thanks for sharing... I will test this and push the changes if the error persists.