From 92fba8495c5bd038039379ad708cde36812ed391 Mon Sep 17 00:00:00 2001 From: Bagus Tris Atmaja Date: Tue, 22 Oct 2024 17:15:44 +0900 Subject: [PATCH] fix conflict in ravdess pre-processing --- data/ravdess/process_database.py | 12 ------------ nkululeko/test_pretrain.py | 1 - 2 files changed, 13 deletions(-) diff --git a/data/ravdess/process_database.py b/data/ravdess/process_database.py index 4a02e7b..161e587 100644 --- a/data/ravdess/process_database.py +++ b/data/ravdess/process_database.py @@ -9,14 +9,9 @@ adapted from https://www.kaggle.com/code/shivamburnwal/speech-emotion-recognition -<<<<<<< HEAD -Usage: `python3 process_database.py /data/ravdess_speech/` - -======= Usage: `python3 process_database.py -d /data/ravdess_speech OR `python3 process_database.py /data/ravdess_speech` ->>>>>>> e639b1104ec3f50b3944440119f2416aea6e31ac """ @@ -25,12 +20,6 @@ import pandas as pd -<<<<<<< HEAD - -# ravdess source directory as argument -# source_dir = './' -source_dir = sys.argv[1] -======= import argparse from pathlib import Path, PurePath @@ -40,7 +29,6 @@ parser.add_argument('-d', '--dir', type=str, default='./', help='path to RAVDESS speech directory') args = parser.parse_args() source_dir = str(Path(args.dir)) ->>>>>>> e639b1104ec3f50b3944440119f2416aea6e31ac database_name = 'ravdess' # check if directory (e.g., Actor_01) exists diff --git a/nkululeko/test_pretrain.py b/nkululeko/test_pretrain.py index 6578eb5..8193994 100644 --- a/nkululeko/test_pretrain.py +++ b/nkululeko/test_pretrain.py @@ -216,7 +216,6 @@ def compute_metrics(p: transformers.EvalPrediction): ) class Trainer(transformers.Trainer): - def compute_loss( self, model,