lyuwenyu / RT-DETR

[CVPR 2024] Official RT-DETR (RTDETR paddle pytorch), Real-Time DEtection TRansformer, DETRs Beat YOLOs on Real-time Object Detection. 🔥 🔥 🔥
Apache License 2.0
2.31k stars 258 forks source link

the number of model parameters obtained from the thop library is smaller than n_parameters #326

Open 20231211 opened 4 months ago

20231211 commented 4 months ago

I want to get FLOPs for my model, using the profile of the thop library, but the number of model parameters obtained from the thop library is smaller than n_parameters, why is that?

lyuwenyu commented 4 months ago

FLOPs the number ofmodel parameters 这俩没啥关系吧?

20231211 commented 3 months ago

@lyuwenyu 是flops,params=profile(self.model,inputs=(img,))获得的params小于代码中的n_parameters,不太明白这是为什么