Spaces:
Runtime error
Runtime error
mattricesound
commited on
Commit
•
7ce90f2
1
Parent(s):
5e881e2
Fix TCN
Browse files- cfg/model/dptnet.yaml +0 -3
- cfg/model/tcn.yaml +2 -2
- remfx/tcn.py +1 -4
- shell_vars.sh +1 -1
cfg/model/dptnet.yaml
CHANGED
@@ -10,13 +10,10 @@ model:
|
|
10 |
network:
|
11 |
_target_: remfx.models.DPTNetModel
|
12 |
n_src: 1
|
13 |
-
in_chan: 1
|
14 |
-
out_chan: 1
|
15 |
bn_chan: 128
|
16 |
hid_size: 128
|
17 |
chunk_size: 100
|
18 |
n_repeats: 6
|
19 |
-
win_len: 2
|
20 |
fb_name: "free"
|
21 |
kernel_size: 16
|
22 |
n_filters: 1
|
|
|
10 |
network:
|
11 |
_target_: remfx.models.DPTNetModel
|
12 |
n_src: 1
|
|
|
|
|
13 |
bn_chan: 128
|
14 |
hid_size: 128
|
15 |
chunk_size: 100
|
16 |
n_repeats: 6
|
|
|
17 |
fb_name: "free"
|
18 |
kernel_size: 16
|
19 |
n_filters: 1
|
cfg/model/tcn.yaml
CHANGED
@@ -11,10 +11,10 @@ model:
|
|
11 |
_target_: remfx.models.TCNModel
|
12 |
ninputs: 1
|
13 |
noutputs: 1
|
14 |
-
nblocks:
|
15 |
channel_growth: 0
|
16 |
channel_width: 32
|
17 |
-
kernel_size:
|
18 |
stack_size: 10
|
19 |
dilation_growth: 10
|
20 |
condition: False
|
|
|
11 |
_target_: remfx.models.TCNModel
|
12 |
ninputs: 1
|
13 |
noutputs: 1
|
14 |
+
nblocks: 20
|
15 |
channel_growth: 0
|
16 |
channel_width: 32
|
17 |
+
kernel_size: 7
|
18 |
stack_size: 10
|
19 |
dilation_growth: 10
|
20 |
condition: False
|
remfx/tcn.py
CHANGED
@@ -128,10 +128,7 @@ class TCN(nn.Module):
|
|
128 |
x_in = x
|
129 |
for _, block in enumerate(self.process_blocks):
|
130 |
x = block(x)
|
131 |
-
|
132 |
-
x_in = causal_crop(x_in, x.shape[-1])
|
133 |
-
gain_ln = self.output(x)
|
134 |
-
y_hat = torch.tanh(gain_ln * x_in)
|
135 |
return y_hat
|
136 |
|
137 |
def compute_receptive_field(self):
|
|
|
128 |
x_in = x
|
129 |
for _, block in enumerate(self.process_blocks):
|
130 |
x = block(x)
|
131 |
+
y_hat = torch.tanh(self.output(x))
|
|
|
|
|
|
|
132 |
return y_hat
|
133 |
|
134 |
def compute_receptive_field(self):
|
shell_vars.sh
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
export DATASET_ROOT="./data/"
|
2 |
export WANDB_PROJECT="RemFX"
|
3 |
export WANDB_ENTITY="mattricesound"
|
|
|
1 |
+
export DATASET_ROOT="./data/remfx-data"
|
2 |
export WANDB_PROJECT="RemFX"
|
3 |
export WANDB_ENTITY="mattricesound"
|