Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a question in deepinsar.py #1

Open
git97shunxin opened this issue Oct 20, 2020 · 3 comments
Open

a question in deepinsar.py #1

git97shunxin opened this issue Oct 20, 2020 · 3 comments

Comments

@git97shunxin
Copy link

git97shunxin commented Oct 20, 2020

Excuse me,In line 134 of the program, should "clean_real" and "real" be replaced with "clean_imag" and "imag" respectively?

Lucklyric added a commit that referenced this issue Oct 20, 2020
Fix the bug according to issue #1
@Lucklyric
Copy link
Owner

Hi @git97shunxin , I really appreciate your head up. The bug has been fixed.
Thank you!

@git97shunxin
Copy link
Author

Hi @git97shunxin , I really appreciate your head up. The bug has been fixed.
Thank you!

Hi,is there still a problem in the loss function?The calculation method in the loss function does not seem to match the formula(9) in the paper.I would appreciate it if you could check this question.

@Lucklyric
Copy link
Owner

Hi @git97shunxin ,

self.ae_r = self.batch_noisy_r[slice_index] - self.build_ae(
                self.features, is_train=True, reuse=reuse, name="dae_r", depth=self.config.fe_depth, ef_dim=self.config.fe_dim)
self.ae_i = self.batch_noisy_i[slice_index] - self.build_ae(
                self.features, is_train=True, reuse=reuse, name="dae_i", depth=self.config.fe_depth, ef_dim=self.config.fe_dim)
            
self.ae_loss_r = (1 / 2.0) * tf.reduce_mean(tf.reduce_mean(tf.squared_difference(self.ae_r, self.batch_clean_r[slice_index]), axis=[1, 2, 3]))
self.ae_loss_i = (1 / 2.0) * tf.reduce_mean(tf.reduce_mean(tf.squared_difference(self.ae_i, self.batch_clean_i[slice_index]), axis=[1, 2, 3]))

self.batch_noisy_r : noisy real channel, self.batch_noisy_i: noisy imag channel
sef.build_ae(...)'s outputs are estimated residuals for both channels.
The loss of each channel is calculated as L2 of ((noisy - est_resdiual), clean) for each channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants