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

Problems in week_10_vqe_noise_reduction/homework.ipynb #28

Open
zshrav opened this issue Apr 27, 2024 · 2 comments
Open

Problems in week_10_vqe_noise_reduction/homework.ipynb #28

zshrav opened this issue Apr 27, 2024 · 2 comments

Comments

@zshrav
Copy link

zshrav commented Apr 27, 2024

Known problems:

SNR definition:

"Given a ground truth signal ... and its estimate ..., we define noise as ... . Slightly abusing notation we get: "
In the math expression the numerator and the denominator should be swapped.

from vqe.data.mixing import RandomMixtureSampler

Just remove this line. It is an artifact of testing, which I forgot to remove.

class RandomMixtureSampler, method __call__:

        # input_signal and mic_signal should be multiplied by the same factor to match each other
        mult_signal = normalize_to_rms(
            signal_target, self.normalization_rms_db
        )

This snippet is wrong. Instead, it is supposed to calculate the multiplication factor here (that's why the variable is called mult_signal)

@zshrav
Copy link
Author

zshrav commented Apr 27, 2024

Some more problems:

"num out channels: 64 the final output layers" in the model desctiption:

It's a misprint. We mean that each 2D convolutional layer should have 64 output channels, except for the final output layers which by design have 1 output channel as they estimate the real or imaginary component of the complex spectrum: 2 final layers total as there are 2 decoders.

class RandomMixtureSampler, method __call__:

        noise_rms_db = self.sample_noise_rms_db()
        mult_noise = normalize_to_rms(noise, noise_rms_db)
        noise *=  # your code

Instead it should be:

        noise_rms_db = self.sample_noise_rms_db()
        noise = normalize_to_rms(noise, noise_rms_db)

@zshrav
Copy link
Author

zshrav commented Apr 27, 2024

run_epoch:

model.train(training) should be inserted

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

1 participant