Home

Awesome

A simple toolkit for counting the FLOPs/MACs, Parameters and FPS of the model.

$ python main.py --help
usage: main.py [-h] [--method-names METHOD_NAMES [METHOD_NAMES ...]]
               [--mode {ops_params,fps,gpu_mem} [{ops_params,fps,gpu_mem} ...]]

A simple toolkit for counting the FLOPs/MACs, Parameters, FPS and GPU Memory of the model.

optional arguments:
  -h, --help            show this help message and exit
  --method-names METHOD_NAMES [METHOD_NAMES ...]
                        The names of the methods you want to evaluate.
  --mode {ops_params,fps,gpu_mem} [{ops_params,fps,gpu_mem} ...]

NOTE:

Usage

pip install fvcore

In methods folder, I have provided some recent methods, i.e. CoNet, DANet, HDFNet, JL-DCF, and UC-Net, as the examples.

More functional improvements and suggestions are welcome.

An example:

python main.py --method-names zoomnet ugtr c2fnet ujsc pfnet mgl_r slsr sinet

Change Log

@misc{MethodsCmp,
	author       = {Youwei Pang},
	title        = {MethodsCmp: A Simple Toolkit for Counting the FLOPs/MACs, Parameters and FPS of Pytorch-based Methods},
	howpublished = {\url{https://github.com/lartpang/MethodsCmp}},
	year         = {2021}
}