Skip to content

Instantly share code, notes, and snippets.

@yuyyuyu
Created March 8, 2020 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuyyuyu/2e39bdd4c0c86a4605664a4dceebd8e7 to your computer and use it in GitHub Desktop.
Save yuyyuyu/2e39bdd4c0c86a4605664a4dceebd8e7 to your computer and use it in GitHub Desktop.
import os
class Config:
def __init__(self,mode='conv',nfilt=26,nfeat=13,nfft=2048,rate=44100):
self.mode=mode
self.nfilt=nfilt
self.nfeat=nfeat
self.nfft=nfft
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