Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Voice Privacy Challenge 2024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sotheara Leang
Voice Privacy Challenge 2024
Commits
73ba38bd
Commit
73ba38bd
authored
1 year ago
by
pchampio
Browse files
Options
Downloads
Patches
Plain Diff
nac model test
parent
0ddff606
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
anonymization/modules/nac/anonymizer.py
+4
-2
4 additions, 2 deletions
anonymization/modules/nac/anonymizer.py
anonymization/pipelines/nac/install.sh
+1
-1
1 addition, 1 deletion
anonymization/pipelines/nac/install.sh
configs/anon_nac.yaml
+1
-1
1 addition, 1 deletion
configs/anon_nac.yaml
with
6 additions
and
4 deletions
anonymization/modules/nac/anonymizer.py
+
4
−
2
View file @
73ba38bd
...
...
@@ -19,7 +19,9 @@ class Anonymizer(torch.nn.Module):
super
().
__init__
()
if
checkpoint_dir
is
None
:
checkpoint_dir
=
os
.
path
.
expanduser
(
'
~/.local/share/tts/tts_models--multilingual--multi-dataset--bark
'
)
checkpoint_dir
=
'
exp/nac_models
'
if
not
os
.
path
.
exists
(
checkpoint_dir
):
os
.
makedirs
(
checkpoint_dir
)
# 1. initialize Bark
config
=
BarkConfig
()
# don't change the custom config for the love of god
...
...
@@ -77,4 +79,4 @@ class Anonymizer(torch.nn.Module):
audio_arr
,
_
,
_
=
self
.
model
.
semantic_to_waveform
(
semantic_tokens
,
history_prompt
=
history_prompt
,
temp
=
coarse_temperature
)
return
audio_arr
\ No newline at end of file
return
audio_arr
This diff is collapsed.
Click to expand it.
anonymization/pipelines/nac/install.sh
+
1
−
1
View file @
73ba38bd
...
...
@@ -16,7 +16,7 @@ if [ ! -d exp/nac_mappings ]; then
echo
"Download pre-computed speaker mappings for the NAC pipeline"
unzip_location
=
"exp/nac_mappings"
zip_file
=
"./anonymization/modules/nac/speaker_mappings.zip"
curl
-q
-L
-o
$zip_file
https://github.com/
Voice-Privacy-Challenge/Voice-Privacy-Challenge-2024
/releases/download/
nac_mappings.zip
/nac_speaker_mappings.zip
curl
-q
-L
-o
$zip_file
https://github.com/
m-pana/nac-requirements
/releases/download/
1.0
/nac_speaker_mappings.zip
unzip
$zip_file
-d
$unzip_location
rm
$zip_file
fi
...
...
This diff is collapsed.
Click to expand it.
configs/anon_nac.yaml
+
1
−
1
View file @
73ba38bd
...
...
@@ -21,7 +21,7 @@ datasets:
modules
:
model
:
checkpoint_dir
:
~/.local/share/tts/tts_models--multilingual--multi-dataset--bark
checkpoint_dir
:
exp/nac_models
voice_dir
:
exp/nac_mappings/suno_voices/v2
speaker_mappings_root
:
exp/nac_mappings/speaker_mappings
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment