Skip to content

Commit

Permalink
finish
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Jun 10, 2014
1 parent 73e223a commit 032a423
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/Presentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ READER=mupdf

all: rebuild

rebuild output/$(TARGET).pdf: *.tex *.bib output
rebuild output/$(TARGET).pdf: *.tex *.bib output
cd output && rm -f *.tex *.bib && ln -fs ../*.tex ../*.bib ../img .
pgrep -a $(TEX) || cd output && $(TEX) $(TARGET).tex && $(BIBTEX) $(TARGET) #&& $(TEX) $(TARGET).tex

Expand Down
3 changes: 1 addition & 2 deletions src/gui/interface.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: interface.py
# Date: Tue Jun 10 15:41:11 2014 +0800
# Date: Tue Jun 10 17:05:42 2014 +0800
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>

from collections import defaultdict
Expand Down Expand Up @@ -62,7 +62,6 @@ def predict(self, fs, signal, reject=False):
from gmmset import GMMSetPyGMM
if GMMSet is not GMMSetPyGMM:
reject = False
print "Length of signal to predict:", len(signal)
try:
feat = mix_feature((fs, signal))
except Exception as e:
Expand Down
5 changes: 3 additions & 2 deletions src/speaker-recognition.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: speaker-recognition.py
# Date: Tue Jun 10 17:01:18 2014 +0800
# Date: Tue Jun 10 17:08:13 2014 +0800
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>

import argparse
Expand Down Expand Up @@ -71,7 +71,8 @@ def task_predict(input_files, input_model):
m = ModelInterface.load(input_model)
for f in glob.glob(input_files):
fs, signal = wavfile.read(f)
print m.predict(fs, signal)
label = m.predict(fs, signal)
print f, '->', label

if __name__ == '__main__':
global args
Expand Down

0 comments on commit 032a423

Please sign in to comment.