You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In microscopy, images often contain large background areas. During training, this will cause the network to spend substantial amount of time learning "nothing". Being able to exclude background regions would be a useful feature that many users would probably enjoy.
Potential solutions
Solution 1: CSBDeep-style
There is no reason not to copy what has been developed before in CSBDeep:
# parameters:# threshold# percentilefromscipy.ndimageimportmaximum_filterdef_filter(datas, patch_size, dtype=np.float32):
image=datas[0]
ifdtypeisnotNone:
image=image.astype(dtype)
# make max filter patch_size smaller to avoid only few non-bg pixel close to image borderpatch_size= [(p//2ifp>1elsep) forpinpatch_size]
filtered=maximum_filter(image, patch_size, mode='constant')
returnfiltered>threshold*np.percentile(image,percentile)
return_filter
Problem
In microscopy, images often contain large background areas. During training, this will cause the network to spend substantial amount of time learning "nothing". Being able to exclude background regions would be a useful feature that many users would probably enjoy.
Potential solutions
Solution 1: CSBDeep-style
There is no reason not to copy what has been developed before in CSBDeep:
Source
Solution 2: use
mean
andstd
Exclude patches whose mean is
N
standard deviation away from the dataset mean.Relevant other issues
#292
The text was updated successfully, but these errors were encountered: