Skip to content

Commit 594256d

Browse files
committed
fix: pre-commit lint formatting
1 parent ce7130d commit 594256d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tools/analysis_tools/get_flops_grounding.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Copyright (c) OpenMMLab. All rights reserved.
2-
"""Get FLOPs for GroundingDINO models.
2+
"""Get FLOPs for GroundingDINO/GroundingCLIP models.
33
44
This script is specifically designed for models that require text inputs,
5-
such as GroundingDINO and other vision-language models.
5+
such as GroundingDINO, GroundingCLIP, and other vision-language models.
66
77
Gradient Checkpointing (with_cp) Compatibility:
88
This script uses fvcore's FlopCountAnalysis for accurate backbone
@@ -438,7 +438,7 @@ def main():
438438

439439
split_line = '=' * 60
440440
logger.info(split_line)
441-
logger.info('GroundingDINO FLOPs Analysis')
441+
logger.info('GroundingDINO/GroundingCLIP FLOPs Analysis')
442442
logger.info(split_line)
443443
logger.info(f'Config: {args.config}')
444444
logger.info(f'Input shape: ({h}, {w})')

0 commit comments

Comments
 (0)