Skip to content

Commit 2800318

Browse files
authored
Fix not returning the video with added noise
There's an option to add the noise to the original frames. However, after adding gaussian noise, the function returns the original frames.
1 parent 47a860c commit 2800318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/tutorial12/tutorial-12-cdmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def get_video_dmd(
121121
if noise:
122122
vid += np.random.normal(0, noise_amt, vid.shape)
123123
vid = vid.clip(0, 1)
124-
return np.vstack(imgs).T, shape
124+
return vid, shape
125125

126126

127127
def get_video(object: str = "frog") -> np.ndarray:

0 commit comments

Comments
 (0)