BEVFormer
                                
                                
                                
                                    BEVFormer copied to clipboard
                            
                            
                            
                        Calculate FLOPs
It's a really great study. Could you share your code to calculate the FLOPs. I try to use get_model_complexity_info() to calculate, however, the shape is not right.
You should provide a dummy_metas for forward_dummy in https://github.com/zhiqi-li/BEVFormer/blob/master/projects/mmdet3d_plugin/bevformer/detectors/bevformer.py#L140. Then you can use get_flops of mmdet3d to obtain the FLOPs
Thanks for your replay!
Thanks for your replay!
Hello, thank for your work, but i want to know what the input_shape is, or which command do you run? can you show it for me? thx