asif-hanif / palm

[EMNLP 2024] Official code repository of paper titled "PALM: Few-Shot Prompt Learning for Audio Language Models" accepted in EMNLP 2024 conference.
https://asif-hanif.github.io/palm/
MIT License
17 stars 0 forks source link

Missing CSV files #1

Closed Eebbu closed 5 days ago

Eebbu commented 6 days ago

Hi, I noticed no train/test CSV file when I ran the experiments.

Running METHOD=palm on DATASET=UrbanSound8K Running Fold-1 with SEED=0 cp: cannot stat 'palm/scripts/Audio-Datasets/UrbanSound8K/csv_files/train_1.csv': No such file or directory cp: cannot stat 'palm/scripts/Audio-Datasets/UrbanSound8K/csv_files/test_1.csv': No such file or directory python: can't open file 'main.py': [Errno 2] No such file or directory

asif-hanif commented 6 days ago

Hi @Eebbu Thank you for interest in our work.

Can you share the shell script you are trying to run?

I am assuming that you have already downloaded the dataset by following the instructions.

Make sure that you are in the palm directory after cloning the repo and setting up the python environment. Once everything is setup, you are supposed to run following command (for METHOD='palm' and DATASET='UrbanSound8K')

bash scripts/urban_sound.sh palm

Eebbu commented 5 days ago

Hi, thank you for the quick response. I tried running the bash scripts/urban_sound.sh palm and downloaded the UrbanSound8K dataset following the instruction. I might have misunderstood the instructions. Do I need to download all the datasets? Also, do I need to create the CSV file mentioned here myself?

asif-hanif commented 5 days ago

You do not need to download all datasets. If you want to run experiments on UrbanSound8K, you need to download this dataset only. Secondly, csv files already exist in the downloaded dataset. Thirdly, path of the dataset needs to be specified in the shell script. If you can share snapshots of errors and the shell script, it will be easier for me to pinpoint the underlying issue.

Eebbu commented 5 days ago

It was a mistake on my part; I didn’t successfully download the CSV file. The problem is now solved. Thank you!

asif-hanif commented 3 days ago

I've added main.py to the repository, which was previously omitted by mistake. Please re-clone the repo and verify if everything works. Feel free to reach out if you encounter any issues.