Open M0NSTERCOCO opened 1 year ago
Hi. ptflops is designed to support 2d images as test input, so input shape (1,)
seems to be not quite correct. Which input shape is consumed by your model? Whatever it is, you could use input_constructor parameter to create an input tensor of any shape: https://github.com/sovrasov/flops-counter.pytorch/issues/14. You can ignore the resolution parameter and hardcode the required shape in prepare_input()
When I use this function to compute FLOPs in OpenPCdet framework, it didn't work well.
Can I use this function this way?