Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么改变pooling size 的尺寸? #55

Open
shihan19911126 opened this issue Sep 1, 2018 · 4 comments
Open

怎么改变pooling size 的尺寸? #55

shihan19911126 opened this issue Sep 1, 2018 · 4 comments

Comments

@shihan19911126
Copy link

R2CNN中pooling size是使用的3×11,11×3,7×7的,我想改变这几个参数,在哪个函数里?看了源码,还是没有发现修改pooling size的地方 @ @yangxue0827

@yangxue0827
Copy link
Owner

我只使用了7×7,如果你需要可以自己加进去。 @shihan19911126

@shihan19911126
Copy link
Author

请问在哪里添加ROI pooling不同尺度?是在build_faster-rcnn1.py里吗? @yangxue0827

@shihan19911126
Copy link
Author

我看源码: level_i_cropped_rois = tf.image.crop_and_resize(self.feature_pyramid['P%d' % i],
boxes=tf.transpose(tf.stack([normalize_ymin, normalize_xmin,
normalize_ymax, normalize_xmax])),
box_ind=tf.zeros(shape=[tf.shape(level_i_proposals)[0], ],
dtype=tf.int32),
crop_size=[self.roi_size, self.roi_size]
)
level_i_rois = slim.max_pool2d(level_i_cropped_rois,
[self.roi_pool_kernel_size, self.roi_pool_kernel_size],
stride=self.roi_pool_kernel_size)
这里crop_size=14,roi_pool_kernel_size=2,也就是说池化之后是7*7的,而不是pooling kernal size=7,是这样理解吗?
还有就是如果想要添加多尺度的特征映射比如3×11,11×3,crop_size和roi_pool_kernel_size是否也需要改变? @yangxue0827

@MXLHELLO
Copy link

我看源码: level_i_cropped_rois = tf.image.crop_and_resize(self.feature_pyramid['P%d' % i],
boxes=tf.transpose(tf.stack([normalize_ymin, normalize_xmin,
normalize_ymax, normalize_xmax])),
box_ind=tf.zeros(shape=[tf.shape(level_i_proposals)[0], ],
dtype=tf.int32),
crop_size=[self.roi_size, self.roi_size]
)
level_i_rois = slim.max_pool2d(level_i_cropped_rois,
[self.roi_pool_kernel_size, self.roi_pool_kernel_size],
stride=self.roi_pool_kernel_size)
这里crop_size=14,roi_pool_kernel_size=2,也就是说池化之后是7*7的,而不是pooling kernal size=7,是这样理解吗?
还有就是如果想要添加多尺度的特征映射比如3×11,11×3,crop_size和roi_pool_kernel_size是否也需要改变? @yangxue0827

请问你现在解决了吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants