Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finetuning for emotion analysis but nan output #9

Open
Changezi001 opened this issue Feb 22, 2023 · 3 comments
Open

Finetuning for emotion analysis but nan output #9

Changezi001 opened this issue Feb 22, 2023 · 3 comments

Comments

@Changezi001
Copy link

Hi,

I have downloaded the CMU-MOSEI dataset, and I am fine-tuning TVLT for emotion analysis on the MOSEI dataset. Although I could not obtain the labels_emotion folder in the downloaded zip file, I have compiled my own emotion label file using the [timestamp file] (http://immortal.multicomp.cs.cmu.edu/timestamped_links/) from CMU, but when I use the [fine-tuning script](url) to fine-tune it on CMU-MOSEI, the model outputs nan values after some iterations. Could you shed some light on what could be wrong?

@zinengtang
Copy link
Owner

Could you explain how did you convert the values to the labels?

@Changezi001
Copy link
Author

Changezi001 commented Feb 24, 2023

I just took the mosei.csv file and removed columns 1:5. But, before removing col 1:5, I changed column 0, i.e., id column, to FileName column by: column_0 + '_' + column_2

@Changezi001
Copy link
Author

And in moseiemo_dataset.py, line number 78, I changed it to emolist = np.array(self.labels[self.labels['FileName']==self.keys[index]].iloc[0, 1:] > 0.0), and that gives me boolean labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants