-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fine Tuning the emotion2vec model #39
Comments
We plan to support fine-tuning but no specific ETA. If you mean training a downstream model with features from emotion2vec+ large, you can just extract the features and train the model. |
Thank you four your answer. What class should I instantiate to train the model emontion2vec+large ? |
Hi, I have tried to use the same process as you have done with iemocap but with Emodb. I got very bad results : Average WA: 34.2156862745098%; UA: 28.42471764346764%; F1: 29.36723608865055% . I have extracted features like this: python extract_features.py --data . --model /home/stage2024/app/codes/models/emotion2vec/upstream --split file_paths --checkpoint /home/stage2024/app/codes/models/emotion2vec_base/emotion2vec_base.pt --save-dir . --layer 11 Can you have a look on my code please ? I have done a cross validatin 80%,10%,10% as recommanded in the paper : import torch Assuming these imports exist based on your provided codefrom data import load_ssl_features #logger = logging.getLogger(name) def extract_features_and_labels(indices,feats,sizes,offsets,labels):
def create_data_loaders(dataset, train_indices, test_indices,val_indices,batch_size):
@hydra.main(config_path='config', config_name='default.yaml') def train_data(cfg: DictConfig):
}
if name == "main": |
Maybe using emotion2vec_base is a better way for feature representation, rather than the emotion2vec_plus series. |
How can I fine tune the emotion2vec+large model on another dataset without using the process that you have used for iemocap?
I have tried to use four features and your bash script train.sh but I got this error:
File "C:\Users\doki_engbu\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 122, in spawn_main
exitcode = _main(fd, parent_sentinel)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\doki_engbu\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 132, in _main
self = reduction.pickle.load(from_parent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_pickle.UnpicklingError: pickle data was truncated
.
The text was updated successfully, but these errors were encountered: