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

Some questions about the parameter 'im2col_step' of Deformable ConvNet V2 in the testing process #1

Open
crocodilegogogo opened this issue Sep 3, 2020 · 4 comments

Comments

@crocodilegogogo
Copy link

I have a question about the parameter 'im2col_step' of Deformable ConvNet V2. We used Deformable Conv in classification tasks. We set the training batchsize the same as im2col_step. During the test process, we put different numbers of test samples in test batch (e.g. test the testing dataset by input one sample per time, or test the testing dataset by inputing ten samples per time), and get different classification results. It seems that how many samples we input to the network each time impacts the final classification results. So why is this happening? Will you kindly give me some advice? What's the relationship between testing batchsize and im2col_step? What's the relationship between training batchsize and im2col_step?

@AyushiSinha
Copy link
Owner

That is weird that the final classification results vary. im2col_step should not make a difference - it simply sets the batch size for the im2col operation.

@crocodilegogogo
Copy link
Author

Thank you for your kind reply. Since the number of test samples may not be integral multiples of the batch size, we cannot simply sets the batch size for the im2col operation. Besides, due to the testing set is huge, we want to accelarate the testing process (need to test per Epoch), thus put more testing samples than the batch size per test. Finally we found this phenomenon.

@AyushiSinha
Copy link
Owner

You may set im2col_step to a size smaller than batch size (maybe just set it to 1). It should be okay to have test size > batch size. Is your bug resolved?

@crocodilegogogo
Copy link
Author

Yep I set im2col_step to 1, and the classification results seem correct. But it's getting obsviously slower...

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

2 participants