mirror of
https://github.com/Deepshift/DeepCreamPy.git
synced 2024-11-29 05:10:43 +00:00
better threshold value for mask
This commit is contained in:
parent
fe86070b74
commit
c0ccc57ea8
2
train.py
2
train.py
@ -137,7 +137,7 @@ def get_points():
|
|||||||
#rotate random amount between 0 and 90 degrees
|
#rotate random amount between 0 and 90 degrees
|
||||||
m = scipy.ndimage.rotate(m, np.random.random()*90, reshape = False)
|
m = scipy.ndimage.rotate(m, np.random.random()*90, reshape = False)
|
||||||
#set all elements greater than 0 to 1
|
#set all elements greater than 0 to 1
|
||||||
m[m > 0] = 1
|
m[m > 0.5] = 1
|
||||||
|
|
||||||
mask.append(m)
|
mask.append(m)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user