ViTDet icon indicating copy to clipboard operation
ViTDet copied to clipboard

input must be contiguous

Open yitianlian opened this issue 3 years ago • 2 comments

I never face this problem when using mmlab. Where should I add the .contiguous() function? image

yitianlian avatar May 28 '22 11:05 yitianlian

If anyone can help me ? QAQ

yitianlian avatar May 31 '22 09:05 yitianlian

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.

Annbless avatar May 31 '22 10:05 Annbless