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

12th tutorial - compressed DMD - function doesn't return noisy video after adding noise #516

Open
karlic-luka opened this issue Apr 5, 2024 · 0 comments
Labels

Comments

@karlic-luka
Copy link
Contributor

Describe the bug
In the 12th tutorial - compressed DMD - there's an option to add the noise to the original video.
However, the function returns a video without noise (even if you added it).

Original method:

def get_video_dmd(
    object: str = "frog", noise: bool = False, noise_amt: float = 0.01
) -> Tuple[np.ndarray, Tuple[int, int]]:
...
 vid = np.vstack(imgs).T
    if noise:
        vid += np.random.normal(0, noise_amt, vid.shape)
        vid = vid.clip(0, 1)
    return np.vstack(imgs).T, shape

Return statement gives np.vstack(imgs).T, while it should be only vid

@karlic-luka karlic-luka added the bug label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant