AVCAffe icon indicating copy to clipboard operation
AVCAffe copied to clipboard

AttributeError in dataloader

Open bsyh opened this issue 11 months ago • 1 comments

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.

bsyh avatar Jul 26 '23 09:07 bsyh