-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_gender.sh
38 lines (25 loc) · 1.98 KB
/
run_gender.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
: '
Copyright (c) 2023 Samsung Electronics Co., Ltd.
Author(s):
Edward Fish ([email protected]; [email protected])
Umberto Michieli ([email protected])
Mete Ozay ([email protected])
Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License, (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at https://creativecommons.org/licenses/by-nc-sa/4.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
For conditions of distribution and use, see the accompanying LICENSE.md file.
'
# This script replicates our results on the gender personalization case (see Table 3 of the main paper).
# MALE-MALE case
export CUDA_VISIBLE_DEVICES=0
python3 main.py --model wav2vec-base --bs 1 --tune_samples 100 --experiment reproduce --data libri --tune_gender male --test_gender male --sensitivity_method median --calibration_method cosine --target 75 &
# export CUDA_VISIBLE_DEVICES=1
# python3 main.py --model wav2vec-base --bs 1 --tune_samples 100 --experiment reproduce --data libri --tune_gender male --test_gender male --sensitivity_method median --calibration_method hessian --target 75 &
# FEMALE-FEMALE case
export CUDA_VISIBLE_DEVICES=2
python3 main.py --model wav2vec-base --bs 1 --tune_samples 100 --experiment reproduce --data libri --tune_gender female --test_gender female --sensitivity_method median --calibration_method cosine --target 75 &
# export CUDA_VISIBLE_DEVICES=3
# python3 main.py --model wav2vec-base --bs 1 --tune_samples 100 --tune_sample_len 10000 --experiment reproduce --data libri --tune_gender female --test_gender female --sensitivity_method median --calibration_method hessian --target 75 &