Skip to content

Commit a577689

Browse files
committed
fix minor bugs
1 parent 674fcb9 commit a577689

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

modules/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def bilateral_filter(array, spatial_weights, intensity_weights_lut, right_shift=
157157
padded_array = pad(array, pads=(filter_height // 2, filter_width // 2))
158158
shifted_arrays = shift_array(padded_array, window_size=(filter_height, filter_width))
159159

160-
bf_array = np.empty_like(array)
161-
weights = np.empty_like(array)
160+
bf_array = np.zeros_like(array)
161+
weights = np.zeros_like(array)
162162

163163
for i, shifted_array in enumerate(shifted_arrays):
164164
intensity_diff = (shifted_array - array) ** 2

pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Pipeline:
2323

2424
def __init__(self, cfg):
2525
"""
26-
:param cfg: Config object, camera configuration
26+
:param cfg: yacs.Config object, configurations about camera specs and module parameters
2727
"""
2828
self.cfg = cfg
2929

0 commit comments

Comments
 (0)