Skip to content

Commit

Permalink
mask broadcasting
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardorittner committed Jun 29, 2024
1 parent f69cb43 commit ef1e7ec
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions run_dwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,21 @@ def run_dwt(
)
exit(1)

mask_id = mask_files[i].split("-")[0]

if mask_id != id:
print("[ERROR]: Mask id ({mask_id}) and image id ({id}) must be the same.")
exit(1)

print(mask)

mask = np.expand_dims(mask, np.argmin(result.shape))

print(mask.shape)

print(result)
result = result * mask
print(result)
expected = expected * mask

if "ssim" in metrics:
Expand Down

0 comments on commit ef1e7ec

Please sign in to comment.