Skip to content

Instantly share code, notes, and snippets.

@epietrowicz
Created October 2, 2019 15:58
Show Gist options
  • Save epietrowicz/2e9954be3dcbed9f253f0abc6aab17ab to your computer and use it in GitHub Desktop.
Save epietrowicz/2e9954be3dcbed9f253f0abc6aab17ab to your computer and use it in GitHub Desktop.
cfg
import os
class Config:
def __init__(self, mode='conv', nfilt=26, nfeat=13, nfft=512, rate=16000):
self.mode = mode
self.nfilt = nfilt
self.nfft = nfft
self.nfeat = nfeat
self.rate = rate
self.step = int(rate/10)
self.model_path = os.path.join('models', mode + '.model')
self.p_path = os.path.join('pickles', mode + '.p')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment