Open ManojDatt opened 6 years ago
First, in config.py change
class TrainConfig: DATA_PATH = 'dataset/mir-1k/Wavfile after that create test folder inside dataset/mir-1k/ and change NUM_EVAL = 1 SECONDS = (input how long your test wav file long in seconds)
It's not working for me yet. Any clue why? This is my cinfig.py file:
''' By Dabi Ahn. andabi412@gmail.com. https://www.github.com/andabi '''
import tensorflow as tf from utils import closest_power_of_two
class ModelConfig: SR = 16000 # Sample Rate L_FRAME = 1024 # default 1024 L_HOP = closest_power_of_two(L_FRAME / 4) SEQ_LEN = 4
N_MELS = 512
F_MIN = 0.0
class TrainConfig: CASE = str(ModelConfig.SEQ_LEN) + 'frames_ikala' CKPT_PATH = 'checkpoints/' + CASE GRAPH_PATH = 'graphs/' + CASE + '/train' DATA_PATH = 'dataset/mir-1k/Wavfile' LR = 0.0001 FINAL_STEP = 100000 CKPT_STEP = 500 NUM_WAVFILE = 1 SECONDS = 8.192 # To get 512,512 in melspecto RE_TRAIN = True session_conf = tf.ConfigProto( device_count={'CPU': 1, 'GPU': 1}, gpu_options=tf.GPUOptions( allow_growth=True, per_process_gpu_memory_fraction=0.25 ), )
class EvalConfig:
# CASE = '4-frames-masking-layer'
CASE = str(ModelConfig.SEQ_LEN) + 'frames_ikala'
CKPT_PATH = 'checkpoints/' + CASE
GRAPH_PATH = 'graphs/' + CASE + '/eval'
#DATA_PATH = 'dataset/eval/kpop'
DATA_PATH = 'dataset/mine'
# DATA_PATH = 'dataset/ikala'
GRIFFIN_LIM = False
GRIFFIN_LIM_ITER = 1000
NUM_EVAL = 1
SECONDS = 60
RE_EVAL = True
EVAL_METRIC = False
WRITE_RESULT = True
RESULT_PATH = 'results/' + CASE
session_conf = tf.ConfigProto(
device_count={'CPU': 1, 'GPU': 1},
gpu_options=tf.GPUOptions(allow_growth=True),
log_device_placement=False
)
Which script need to run after eval.py , to get vocal separated from song ?