skytnt commited on
Commit
bae0b06
β€’
1 Parent(s): c2546a5
app.py CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  import numpy as np
2
  import torch
3
  from torch import no_grad, LongTensor
 
1
+ import os
2
+
3
+ os.system('cd monotonic_align && python setup.py build_ext --inplace && cd ..')
4
+
5
  import numpy as np
6
  import torch
7
  from torch import no_grad, LongTensor
monotonic_align/__init__.py CHANGED
@@ -1,7 +1,6 @@
1
  import numpy as np
2
  import torch
3
- from ctypes import cdll
4
- maximum_path_c = cdll.LoadLibrary('./monotonic_align/core.dll')
5
 
6
 
7
  def maximum_path(neg_cent, mask):
 
1
  import numpy as np
2
  import torch
3
+ from .monotonic_align.core import maximum_path_c
 
4
 
5
 
6
  def maximum_path(neg_cent, mask):
monotonic_align/build/temp.linux-x86_64-3.7/core.o DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:07fb98441110e755daf37fc4174ecdd627b7375ffad753037428f12b66dcb45f
3
- size 1747240
 
 
 
 
monotonic_align/core.c DELETED
The diff for this file is too large to render. See raw diff
 
monotonic_align/core.dll DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5411d1ec93998065bd2ffd5a39a0d06b25385deb020e30edea1b9125def7cb1
3
- size 58880
 
 
 
 
monotonic_align/monotonic_align/core.cpython-37m-x86_64-linux-gnu.so DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ced7c27b10321e2e32b1e2ae446d399bc8fb85ea072a1f9dd16d2a95c1a192b1
3
- size 723240
 
 
 
 
requirements.txt CHANGED
@@ -1,3 +1,4 @@
 
1
  librosa
2
  matplotlib
3
  numpy
 
1
+ Cython
2
  librosa
3
  matplotlib
4
  numpy