Skip to content
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

KeyError: 'hop_size' #99

Open
ghost opened this issue Jun 2, 2023 · 3 comments
Open

KeyError: 'hop_size' #99

ghost opened this issue Jun 2, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 2, 2023

Please help, it seems the hparams variable is not accessible from multiprocessing:

raceback (most recent call last):
File "", line 1, in
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 183, in
class MidiSingingBinarizer(SingingBinarizer):
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 242, in MidiSingingBinarizer
def get_align(ph_durs, mel, phone_encoded, res, hop_size=hparams['hop_size'], audio_sample_rate=hparams['audio_sample_rate']):
KeyError: 'hop_size'
Traceback (most recent call last):
File "", line 1, in
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 126, in _main
Traceback (most recent call last):
File "", line 1, in
self = reduction.pickle.load(from_parent)
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 116, in spawn_main
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 183, in
exitcode = _main(fd, parent_sentinel)
class MidiSingingBinarizer(SingingBinarizer):
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 126, in _main
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 242, in MidiSingingBinarizer
self = reduction.pickle.load(from_parent)
def get_align(ph_durs, mel, phone_encoded, res, hop_size=hparams['hop_size'], audio_sample_rate=hparams['audio_sample_rate']):
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 183, in
KeyError: 'hop_size'
class MidiSingingBinarizer(SingingBinarizer):
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 242, in MidiSingingBinarizer
def get_align(ph_durs, mel, phone_encoded, res, hop_size=hparams['hop_size'], audio_sample_rate=hparams['audio_sample_rate']):
KeyError: 'hop_size'
Traceback (most recent call last):
File "", line 1, in
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 183, in
class MidiSingingBinarizer(SingingBinarizer):
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 242, in MidiSingingBinarizer
def get_align(ph_durs, mel, phone_encoded, res, hop_size=hparams['hop_size'], audio_sample_rate=hparams['audio_sample_rate']):
KeyError: 'hop_size'
Traceback (most recent call last):
File "", line 1, in
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 183, in
class MidiSingingBinarizer(SingingBinarizer):
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 242, in MidiSingingBinarizer
def get_align(ph_durs, mel, phone_encoded, res, hop_size=hparams['hop_size'], audio_sample_rate=hparams['audio_sample_rate']):
KeyError: 'hop_size'
Traceback (most recent call last):
File "", line 1, in
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "D:\Anaconda3\envs\svs\lib\multiprocessing\spawn.py", line 126, in _main
self = reduction.pickle.load(from_parent)
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 183, in
class MidiSingingBinarizer(SingingBinarizer):
File "D:\QIU\model_code\DiffSinger-master_new\DiffSinger-master\data_gen\singing\binarize.py", line 242, in MidiSingingBinarizer
def get_align(ph_durs, mel, phone_encoded, res, hop_size=hparams['hop_size'], audio_sample_rate=hparams['audio_sample_rate']):
KeyError: 'hop_size'

@HelimLee
Copy link

Perhaps you have misentered the path to your data corpus?

@li-henan
Copy link

dear friend,
I meet the same error “KeyError: 'hop_size'”, could I ask how to change the data dir?Is the error there?

usr/configs/popcs_ds_beta6.yaml
raw_data_dir: 'data/raw/popcs'
processed_data_dir: 'data/processed/popcs'
binary_data_dir: 'data/binary/popcs-pmf0'

@ghost
Copy link
Author

ghost commented Sep 25, 2023

Dear friend,
I tried to change the data dir, but the problem didn't work out. Running this code on a linux system does not present this problem. You can try running it on a linux system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants