Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify the default input size when running get_flops.py? #12317

Open
4A2008 opened this issue Feb 22, 2025 · 0 comments
Open

How to modify the default input size when running get_flops.py? #12317

4A2008 opened this issue Feb 22, 2025 · 0 comments

Comments

@4A2008
Copy link

4A2008 commented Feb 22, 2025

The official document seems to be ineffective:
python tools/analysis_tools/get_flops.py ${CONFIG_FILE} [--shape ${INPUT_SHAPE}]

python tools/analysis_tools/get_flops.py /data/ctc/mmdetection/configs/YGdataset/mask-rcnn_r50-caffe_fpn_ms-poly-1x_YGdataset.py --shape 1024 1024
usage: get_flops.py [-h] [--num-images NUM_IMAGES] [--cfg-options CFG_OPTIONS [CFG_OPTIONS ...]] config
get_flops.py: error: unrecognized arguments: --shape 1024 1024

Image

Use size divisor set input shape from (1024, 1024) to (800, 800)

Compute type: dataloader: load a picture from the dataset
Input shape: (800, 800)
Flops: 0.183T
Params: 43.987M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant