Update README.md
Browse files
README.md
CHANGED
@@ -12,7 +12,7 @@ We uploaded a pre-trained model trained on the spatialized DNS challenge dataset
|
|
12 |
|
13 |
## Using pre-trained model
|
14 |
Download `deftan-II.py` and `max.pt` to `your\path\`.
|
15 |
-
|
16 |
|
17 |
```
|
18 |
import torch
|
@@ -24,7 +24,7 @@ state_dict = {k.replace("module.", ""): v for k, v in state_dict.items()}
|
|
24 |
DeFTAN2model.load_state_dict(state_dict)
|
25 |
```
|
26 |
|
27 |
-
You can now use the trained parameter to enhance speech.
|
28 |
|
29 |
---
|
30 |
license: mit
|
|
|
12 |
|
13 |
## Using pre-trained model
|
14 |
Download `deftan-II.py` and `max.pt` to `your\path\`.
|
15 |
+
You may import the DeFTAN-II class and load the `state_dict` using the code below.
|
16 |
|
17 |
```
|
18 |
import torch
|
|
|
24 |
DeFTAN2model.load_state_dict(state_dict)
|
25 |
```
|
26 |
|
27 |
+
You can now use the DeFTAN-II with pre-trained parameter to enhance speech.
|
28 |
|
29 |
---
|
30 |
license: mit
|