Encounter exception when running tools/compute_mean_std.py
Created by: pkuyym
Traceback (most recent call last):
File "tools/compute_mean_std.py", line 64, in <module>
main()
File "tools/compute_mean_std.py", line 59, in main
num_samples=args.num_samples)
File "/home/disk1/yangyaming/workspace/paddle/ds2/mandarin_unicom/default_conf/tools/../data_utils/normalizer.py", line 46, in __init__
self._compute_mean_std(manifest_path, featurize_func, num_samples)
File "/home/disk1/yangyaming/workspace/paddle/ds2/mandarin_unicom/default_conf/tools/../data_utils/normalizer.py", line 84, in _compute_mean_std
AudioSegment.from_file(instance["audio_filepath"])))
File "tools/compute_mean_std.py", line 53, in augment_and_featurize
return audio_featurizer.featurize(audio_segment)
File "/home/disk1/yangyaming/workspace/paddle/ds2/mandarin_unicom/default_conf/tools/../data_utils/featurizer/audio_featurizer.py", line 79, in featurize
allow_upsampling)):
NameError: global name 'allow_upsampling' is not defined
Look like a typo problem.