Clean up imports
parent
9463b0babf
commit
76a36ac712
|
@ -1,12 +1,9 @@
|
|||
# Python 3
|
||||
from os import makedirs
|
||||
from typing import Tuple, List, Any
|
||||
|
||||
import numpy as np
|
||||
from os import makedirs
|
||||
from os.path import isfile, join, dirname
|
||||
|
||||
import wavio
|
||||
|
||||
from typing import Tuple, List, Any
|
||||
from precise.params import ListenerParams
|
||||
|
||||
|
||||
|
@ -143,6 +140,7 @@ def load_gen_data(prefix: str) -> Tuple[np.array, np.array]:
|
|||
|
||||
def write_gen_data(prefix: str):
|
||||
"""Copies fragments from keyword/ to not-keyword/generated/keyword/"""
|
||||
import wavio
|
||||
fd = join(prefix, 'not-keyword', 'generated')
|
||||
|
||||
kws, _ = find_wavs(prefix)
|
||||
|
|
|
@ -8,10 +8,7 @@ sys.path += ['.'] # noqa
|
|||
|
||||
import argparse
|
||||
from glob import glob
|
||||
from os import makedirs
|
||||
from os.path import join, basename, splitext
|
||||
|
||||
import wavio
|
||||
from os.path import basename, splitext
|
||||
|
||||
from precise.common import *
|
||||
|
||||
|
|
Loading…
Reference in New Issue