medicaldetectiontoolkit icon indicating copy to clipboard operation
medicaldetectiontoolkit copied to clipboard

Anchors not centered in generate_anchors_3D?

Open hubtub2 opened this issue 5 years ago • 2 comments

I think there is a bug in generate_anchors_3D. The anchors were note centered relativ to the feature map, but shifted to the left.

I fixed this by adding " feature_stride_xy/2":

shifts_y = np.arange(0, shape[0], anchor_stride) * feature_stride_xy + feature_stride_xy/2 shifts_x = np.arange(0, shape[1], anchor_stride) * feature_stride_xy + feature_stride_xy/2 shifts_z = np.arange(0, shape[2], anchor_stride) * (feature_stride_z) + feature_stride_z/2

hubtub2 avatar Aug 19 '19 07:08 hubtub2

yes ,i think so

zengjianyou avatar Dec 17 '20 11:12 zengjianyou

@hubtub2 I got a lot of 3d anchors, but the actual gt overlap of the anchor is very little .why ?

zengjianyou avatar Dec 17 '20 12:12 zengjianyou