muzairkhattak / multimodal-prompt-learning

[CVPR 2023] Official repository of paper titled "MaPLe: Multi-modal Prompt Learning".
https://muzairkhattak.github.io/multimodal-prompt-learning/
MIT License
629 stars 45 forks source link

How to calculate the model's params,Learnable param? #80

Open IHikari opened 4 weeks ago

IHikari commented 4 weeks ago

Dear author,could you share your method for calculating the total parameters, parameters, and FPS of MaPLe?

muzairkhattak commented 2 weeks ago

Hi @IHikari,

Thank you for showing interest in MaPLe! Sorry for the delayed response.

For FPS, you can create a time counter around the inference code (around these lines in the Dassl Library) and measure the time per batch.

For total parameters, you can use the starter code as shown here.

I hope that is helpful. Kind regards!