I'm using the RoiAlign from your xform forlder. But it seems like this layer cause my feature's values to explode to extremely large numbers after training for a while.
Hence, I Implemented a simple CropAlign Operation based on F.grid_sample in Pytorch. And with a simple replacement of this one line feature_rois = roialignOp(feature_var, rois_var) in my code, it works fine and never explode again.
So this confuse me a lot. Have anyone meet the same problem with me ?
Follows are my basic CropAlign. Which I have checked the forward is comparable with RoiAlign in this repo. And since it is based on F.grid_sample in Pytorch, the backward is no need to worry. I put a comparison demo of these two Align layer in here.
Since the whole training code is complex, and also because this problem can be solve with a single line replacement, so I just put the core code here, to demonstrate the problem.
Thank you for filing this issue and I'll go check it out.
And is it possible for you to provide the training code(or any sample code) that will explode the feature values ?
I'm using the RoiAlign from your xform forlder. But it seems like this layer cause my feature's values to explode to extremely large numbers after training for a while.
Hence, I Implemented a simple CropAlign Operation based on F.grid_sample in Pytorch. And with a simple replacement of this one line
feature_rois = roialignOp(feature_var, rois_var)
in my code, it works fine and never explode again.So this confuse me a lot. Have anyone meet the same problem with me ?
Follows are my basic CropAlign. Which I have checked the forward is comparable with RoiAlign in this repo. And since it is based on F.grid_sample in Pytorch, the backward is no need to worry. I put a comparison demo of these two Align layer in here.
Since the whole training code is complex, and also because this problem can be solve with a single line replacement, so I just put the core code here, to demonstrate the problem.
System information