Mulcat option#416
Conversation
|
Great this time, thanks ! |
|
@JorisCos do you mind reviewing please? |
JorisCos
left a comment
There was a problem hiding this comment.
Thanks for the PR, this looks really nice. A minor fix on the docs is needed otherwise LGTM
asteroid/masknn/recurrent.py
Outdated
| self.intra_linear = nn.Linear(self.intra_RNN.output_size, in_chan) | ||
| self.intra_norm = norms.get(norm_type)(in_chan) | ||
|
|
||
| # InterRNN block and linear projection layer (uni or bi-directional) |
There was a problem hiding this comment.
This comment should be before self.inter_RNN = DoubleRNN(...)
asteroid/masknn/recurrent.py
Outdated
| self.inter_RNN = SingleRNN( | ||
| rnn_type, in_chan, hid_size, num_layers, dropout=dropout, bidirectional=bidirectional | ||
| ) | ||
| # IntraRNN and linear projection layer (always bi-directional) |
mpariente
left a comment
There was a problem hiding this comment.
Let's think about a way which doesn't copy paste the SingleRNN code in DoubleRNN.
asteroid/masknn/recurrent.py
Outdated
|
|
||
|
|
||
| class DoubleRNN(nn.Module): | ||
| """Module for a RNN block. |
There was a problem hiding this comment.
Need to be more explicit.
|
I guess the best way to do it would be combining them into s single object, adding an option for single/doubleRNN and adding a switch statement into the code? For example, The code would be somewhat more confusing to readers though |
|
Let's keep the code like this for now.
|
|
It looks like when running the jit test, sudormrf always fails the test. Is this something I need to worry about, or is this unrelated to DPRNN? The two lines below would work with torch jit: but this line throws an error: I ended up with: |
mpariente
left a comment
There was a problem hiding this comment.
We are getting much closer, thanks ! What's left
- Add
use_mulcatisget_configso that serialization will work - Add the
use_mulcatparameterize intests/models/models_test.pyto ensure serialization will work. - Fix the jit tests which don't look right to me.
- Add the reference to the original MulCat paper in
MulCatRNN
|
Also, do you want to implement multi-stage loss? That was also in the facebook paper. |
|
Eventually, yes, but in the recipe sounds fine.
What do you mean? |
|
I mean I will use DPRNNBlock but not DPRNN for my separator, since the part starting from Conv2D diverge. |
|
Alright. |
|
Ok, I'll do it ASAP. Btw, how do you write test cases for dataset objects? Can I just write if name == "main" in my recipe? |
|
We don't have tests for datasets.. Which is a large limitation. |
|
I just finished my work with variable speaker wsj0mix dataset in my recipe folder. Should I start a PR yet? |
This reverts commit 865c401.
|
I have no clue why it's not passing the test_save_and_load_dprnn. Do you have any idea? |
|
The loading is failing. We need to test the mulcat version, but still keep the old tests. For that, we can use Regarding the recipe, yes, you can make a PR 😃 Thanks |
|
Because |
|
ok |
This reverts commit d4c4b85.
add to recipe
|
Hi, I'm starting to write the model class. I noticed that in all your models that are in the source code just use make_optimizer, but those in the recipe define make_model_and_optimizer. Do I have to follow this? |
|
No, you don't have to. |
|
how do i write test cases for models in my recipe? |
They aren't tested if they are in the recipe folder.
Sorry about that, I don't receive those e-mails.. Anybody else receives those e-mails? |
|
I
This is ready for merging on my side. |
|
---------- Forwarded message ---------
From: Joseph <notifications@github.com>
Date: Sat, Feb 13, 2021 at 8:11 AM
Subject: [JunzheJosephZhu/asteroid] Run failed: Version consistency -
master (c6ef670)
To: JunzheJosephZhu/asteroid <asteroid@noreply.github.com>
CC: Ci activity <ci_activity@noreply.github.com>
[image: GitHub] [JunzheJosephZhu/asteroid] Version consistency workflow run
Version consistency: Some jobs were not successful
View workflow run
<https://github.com/JunzheJosephZhu/asteroid/actions/runs/562583919>
[image: CI (3.6, 1.6.0)]
*Version consistency* / CI (3.6, 1.6.0)
Cancelled
[image: annotations for Version consistency / CI (3.6, 1.6.0)] 2
<https://github.com/JunzheJosephZhu/asteroid/actions/runs/562583919>
[image: CI (3.6, 1.7.0)]
*Version consistency* / CI (3.6, 1.7.0)
Cancelled
[image: annotations for Version consistency / CI (3.6, 1.7.0)] 2
<https://github.com/JunzheJosephZhu/asteroid/actions/runs/562583919>
[image: CI (3.6, nightly)]
*Version consistency* / CI (3.6, nightly)
Failed in 1 minute and 47 seconds
[image: annotations for Version consistency / CI (3.6, nightly)] 1
<https://github.com/JunzheJosephZhu/asteroid/actions/runs/562583919>
—
You are receiving this because this workflow ran on your branch.
Manage your GitHub Actions notifications
<https://github.com/settings/notifications>
GitHub, Inc. ・88 Colin P Kelly Jr Street
<https://www.google.com/maps/search/88+Colin+P+Kelly+Jr+Street++San+Francisco,+CA+94107?entry=gmail&source=g>
・San Francisco, CA 94107
<https://www.google.com/maps/search/88+Colin+P+Kelly+Jr+Street++San+Francisco,+CA+94107?entry=gmail&source=g>
…--
Joseph Zhu
|
|
Not sure.. |
No description provided.