Skip to content

Support OpenUtau yaml dictionary in diffsinger workflow #167

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion basics/base_binarizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def process(self):
spk_map_fn = self.binary_data_dir / 'spk_map.json'
with open(spk_map_fn, 'w', encoding='utf-8') as f:
json.dump(self.spk_map, f)
shutil.copy(locate_dictionary(), self.binary_data_dir / 'dictionary.txt')
dictionary_path = locate_dictionary()
shutil.copy(dictionary_path, self.binary_data_dir / ('dictionary'+dictionary_path.suffix))
self.check_coverage()

# Process valid set and train set
Expand Down
2 changes: 1 addition & 1 deletion configs/acoustic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ augmentation_args:
raw_data_dir: 'data/opencpop/raw'
binary_data_dir: 'data/opencpop/binary'
binarizer_cls: preprocessing.acoustic_binarizer.AcousticBinarizer
dictionary: dictionaries/opencpop-extension.txt
dictionary: dictionaries/opencpop-extension.yaml
num_pad_tokens: 1
spec_min: [-5]
spec_max: [0]
Expand Down
2 changes: 1 addition & 1 deletion configs/templates/config_acoustic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test_prefixes:
- wav3
- wav4
- wav5
dictionary: dictionaries/opencpop-extension.txt
dictionary: dictionaries/opencpop-extension.yaml
binary_data_dir: data/xxx/binary
binarization_args:
num_workers: 0
Expand Down
2 changes: 1 addition & 1 deletion configs/templates/config_variance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ test_prefixes:
- wav3
- wav4
- wav5
dictionary: dictionaries/opencpop-extension.txt
dictionary: dictionaries/opencpop-extension.yaml
binary_data_dir: data/xxx/binary
binarization_args:
num_workers: 0
Expand Down
2 changes: 1 addition & 1 deletion configs/variance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ binarization_args:
raw_data_dir: 'data/opencpop_variance/raw'
binary_data_dir: 'data/opencpop_variance/binary'
binarizer_cls: preprocessing.variance_binarizer.VarianceBinarizer
dictionary: dictionaries/opencpop-extension.txt
dictionary: dictionaries/opencpop-extension.yaml
num_pad_tokens: 1

use_spk_id: false
Expand Down
1 change: 1 addition & 0 deletions dictionaries/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.py
*.txt
*.yaml
!opencpop*
Loading