ViTDet
ViTDet copied to clipboard
input must be contiguous
I never face this problem when using mmlab. Where should I add the .contiguous() function?

If anyone can help me ? QAQ
According to the error information, it should be fine by adding contiguous in Line 103 in single_level_roi_extractor.py, e.g.,
roi_feats_t = self.roi_layers[i](feats[i].contiguous(), rois_)
However, since there have been some modifications from our repo to your codebase, it is really hard for us to distinguish the reasons of the errors and the solutions.