Skip to content

Commit

Permalink
update inference_loop.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benmalef committed Oct 23, 2024
1 parent 730b2e8 commit f35013c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion GANDLF/data/patch_miner/opm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@ def patch_artifact_check(
bool: Whether the patch is valid or not.
"""
# patch_size = config["patch_size"]
img= cv2.cvtColor(img,cv2.COLOR_BGRA2BGR)
patch_hsv = cv2.cvtColor(img, cv2.COLOR_RGB2HSV)
count_white_pixels = np.sum(np.logical_and.reduce(img > intensity_thresh, axis=2))
percent_pixels = count_white_pixels / (patch_size[0] * patch_size[1])
Expand Down

0 comments on commit f35013c

Please sign in to comment.