# Parameter configs for nnfp, inspired by https://github.com/stdio2016/pfann # # Copyright 2021 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.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. default_params = { "dim": 128, "h": 1024, "u": 32, "fuller": True, "activation": "relu", "sample_rate": 8000, "window_length": 1024, "hop_length": 256, "n_mels": 256, "f_min": 300, "f_max": 4000, "segment_size": 1, "hop_size": 1, "frame_shift_mul": 1, "naf_mode": False, "mel_log": "log", "spec_norm": "l2" } hop25_params = default_params.copy() hop25_params.update(hop_size=0.25) distill_params = default_params.copy() distill_params.update(h=1024)