Skip to content

Commit

Permalink
fix bug in selection
Browse files Browse the repository at this point in the history
  • Loading branch information
hkchengrex committed Dec 23, 2020
1 parent c354d93 commit 3479415
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util/de_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import numpy as np

def get_random_structure(size):
choice = np.random.randint(4)
# The provided model is trained with
# choice = np.random.randint(4)
# instead, which is a bug that we fixed here
choice = np.random.randint(1, 5)

if choice == 1:
return cv2.getStructuringElement(cv2.MORPH_RECT, (size, size))
Expand Down

0 comments on commit 3479415

Please sign in to comment.