LightGlue Params #48
-
How to determine the parameter quantity of each layer for LightGlue? @fabio-sim |
Beta Was this translation helpful? Give feedback.
Answered by
fabio-sim
Nov 2, 2023
Replies: 1 comment 1 reply
-
Hi @DiZhang980, thank you for your interest in LightGlue-ONNX. Assuming you mean each transformer layer, you can add this print statement: print(f"Layer {i+1}: {sum(p.numel() for p in self.transformers[i].parameters())} parameters") to the following loop: LightGlue-ONNX/lightglue_onnx/lightglue.py Lines 328 to 330 in e14a259 I get the following output:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fabio-sim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @DiZhang980, thank you for your interest in LightGlue-ONNX.
Assuming you mean each transformer layer, you can add this print statement:
to the following loop:
LightGlue-ONNX/lightglue_onnx/lightglue.py
Lines 328 to 330 in e14a259
I get the following output: