arcan3 commited on
Commit
0dfadbb
β€’
1 Parent(s): 35916c5

adding rust and the .ini file

Browse files
.gitattributes CHANGED
@@ -4,3 +4,4 @@
4
  *.ckpt* filter=lfs diff=lfs merge=lfs -text
5
  *.pl filter=lfs diff=lfs merge=lfs -text
6
  *.so filter=lfs diff=lfs merge=lfs -text
 
 
4
  *.ckpt* filter=lfs diff=lfs merge=lfs -text
5
  *.pl filter=lfs diff=lfs merge=lfs -text
6
  *.so filter=lfs diff=lfs merge=lfs -text
7
+ *.ini filter=lfs diff=lfs merge=lfs -text
.gitignore CHANGED
@@ -129,7 +129,7 @@ venv/
129
  ENV/
130
  env.bak/
131
  venv.bak/
132
- *.ini
133
 
134
  # Spyder project settings
135
  .spyderproject
 
129
  ENV/
130
  env.bak/
131
  venv.bak/
132
+ # *.ini
133
 
134
  # Spyder project settings
135
  .spyderproject
model_weights/libdf/__init__.py DELETED
@@ -1,3 +0,0 @@
1
- from .libdf import *
2
-
3
- __doc__ = libdf.__doc__
 
 
 
 
model_weights/libdf/__init__.pyi DELETED
@@ -1,57 +0,0 @@
1
- from typing import List, Optional, Union
2
-
3
- from numpy import ndarray
4
-
5
- class DF:
6
- def __init__(
7
- self,
8
- sr: int,
9
- fft_size: int,
10
- hop_size: int,
11
- nb_bands: int,
12
- min_nb_erb_freqs: Optional[int] = 1,
13
- ):
14
- """DeepFilter state used for analysis and synthesis.
15
-
16
- Args:
17
- sr (int): Sampling rate.
18
- fft_size (int): Window length used for the Fast Fourier transform.
19
- hop_size (int): Hop size between two analysis windows. Also called frame size.
20
- nb_bands (int): Number of ERB bands.
21
- min_nb_erb_freqs (int): Minimum number of frequency bands per ERB band. Defaults to 1.
22
- """
23
- ...
24
- def analysis(self, input: ndarray) -> ndarray:
25
- """Analysis of a time-domain signal.
26
-
27
- Args:
28
- input (ndarray): 2D real-valued array of shape [C, T].
29
- Output:
30
- output (ndarray): 3D complex-valued array of shape [C, T', F], where F is the `fft_size`,
31
- and T' the original time T divided by `hop_size`.
32
- """
33
- ...
34
- def synthesis(self, input: ndarray) -> ndarray:
35
- """Synthesis of a frequency-domain signal.
36
-
37
- Args:
38
- input (ndarray): 3D complex-valued array of shape [C, T, F].
39
- Output:
40
- output (ndarray): 2D real-valued array of shape [C, T].
41
- """
42
- ...
43
- def erb_widths(self) -> ndarray: ...
44
- def fft_window(self) -> ndarray: ...
45
- def sr(self) -> int: ...
46
- def fft_size(self) -> int: ...
47
- def hop_size(self) -> int: ...
48
- def nb_erb(self) -> int: ...
49
- def reset(self) -> None: ...
50
-
51
- def erb(
52
- input: ndarray, erb_fb: Union[ndarray, List[int]], db: Optional[bool] = None
53
- ) -> ndarray: ...
54
- def erb_inv(input: ndarray, erb_fb: Union[ndarray, List[int]]) -> ndarray: ...
55
- def erb_norm(erb: ndarray, alpha: float, state: Optional[ndarray] = None) -> ndarray: ...
56
- def unit_norm(spec: ndarray, alpha: float, state: Optional[ndarray] = None) -> ndarray: ...
57
- def unit_norm_init(num_freq_bins: int) -> ndarray: ...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
model_weights/libdf/py.typed DELETED
File without changes
model_weights/{libdf/libdf.cpython-311-x86_64-linux-gnu.so β†’ voice_enhance/config.ini} RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cf89a4ccba41b6730decef9c652ed9020c48976d3bd66944688da341e82d5629
3
- size 1329664
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7593bc752512a37379ab5d3273ecfbefa2ac42fbc2be5061ac381a3a6afe4ed5
3
+ size 1823
packages.txt CHANGED
@@ -1 +1,2 @@
1
  ffmpeg
 
 
1
  ffmpeg
2
+ rustc