the input size of Flops is 256x256? #50
Comments
We calculate FLOPs with the corresponding training crop size: if it is 512x512 in the Table it means we calculate FLOPs with an image of size 512x512. The augmentation in the config uses You can measure the FLOPs by feeding some dummy image of size 512x512 instead of using ADE20K images. |
Yes, I tried. When I calculate FLOPs with an image of size 256x256 , it can match the FLOPs reported in your paper. 512x512 can't. May you check it again, please? |
I'm sure the input size is 512x512, here is my output:
The FLOPs is 81.1G (compared to 79G in the paper), the slight increase in FLOPs is probably due to update in the |
I have committed the script for calculating FLOPs. Please use the following command: |
https://github.com/facebookresearch/detectron2/blob/main/tools/analyze_model.py
Hi Bowen. I calculate the flop and params with the scirpt, but the result is not the same with your paper.
The maskformer_swin_small_bs16_160k.yaml is 63M Params and 111G Flops. In your paper is 63M Params and 79G Flops. Is there any problems with my calculation? When the input shape resize to 256x256 it is the similar as your paper.
python3 analyze_model.py --config-file ./configs/ade20k-150/swin/maskformer_swin_small_bs16_160k.yaml --tasks flop
Augmentations used in inference: [ResizeShortestEdge(short_edge_length=(512, 512), max_size=2048, sample_style='choice')]
[11/15 13:41:29 detectron2]: Flops table computed from only one input sample:
The text was updated successfully, but these errors were encountered: