YuanGongND / cav-mae

Code and Pretrained Models for ICLR 2023 Paper "Contrastive Audio-Visual Masked Autoencoder".
BSD 2-Clause "Simplified" License
223 stars 22 forks source link

BOM Considerations When Extracting Your Video frames & Audio #25

Open fujitte opened 9 months ago

fujitte commented 9 months ago

when I tried loading my own data by using src/preprocess/extract_{audio/video_fram}.py, I encountered some problem such that (the path in my csv file): No such file or directory is displayed despite the fact that the path actually exists and it's correctly written in the csv file.

This was due to BOM, and solved by inserting encoding="utf-8-sig" as an argment of np.loadtxt in the files.

I write this here because the error message does not directly show the cause of the problem, which may confuse the user.

YuanGongND commented 9 months ago

thanks so much for reporting this. this would help other users of this repo.

Btw, which operating system are you using? Is that Windows? (all exps in this repo are in ubuntu).

-Yuan

fujitte commented 9 months ago

Thanks for your reply.

I am using Ubuntu 20.04.6 LTS.