Closed HamDan1999 closed 1 year ago
model.summary()
.!pip install keras-cv-attention-models
from keras_cv_attention_models import model_surgery
model_surgery.get_flops({your_loaded_model})
%timeit
in ipython
:
%timeit model(tf.random.uniform([{max_batch_size_on_your_device}, 112, 112, 3]))
or write a timer by yourself. I don't have a ready one on hand either...
Thanks a lot! Much appreciated.
Hey,
My current research is inspired by your work thanks a lot.
I have a question, do you have the scripts for getting the model's size (in MB), FLOPs, and inference time? In addition, do you have MegaFace dataset evaluation script for Tensorflow models?
Thanks a lot for your beautiful work.