Skip to content

Commit

Permalink
fix conflict in ravdess pre-processing
Browse files Browse the repository at this point in the history
  • Loading branch information
bagustris committed Oct 22, 2024
1 parent 3ceb852 commit 92fba84
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions data/ravdess/process_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""


Expand All @@ -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

Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion nkululeko/test_pretrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ def compute_metrics(p: transformers.EvalPrediction):
)

class Trainer(transformers.Trainer):

def compute_loss(
self,
model,
Expand Down

0 comments on commit 92fba84

Please sign in to comment.