-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update weight and parameter counts in documentation #85
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+binary_densenet45 summary--------------------+ | Total params 13.9 M | | Trainable params 13.8 M | | Non-trainable params 49.7 k | | Model size 7.35 MiB | | Model size (8-bit FP weights) 2.94 MiB | | Float-32 Equivalent 52.98 MiB | | Compression Ratio of Memory 0.14 | | Number of MACs 6.67 B | | Ratio of MACs that are binarized 0.9634 | +---------------------------------------------+
+binary_densenet37_dilated summary------------+ | Total params 8.7 M | | Trainable params 8.67 M | | Non-trainable params 31.9 k | | Model size 5.13 MiB | | Model size (8-bit FP weights) 1.96 MiB | | Float-32 Equivalent 33.20 MiB | | Compression Ratio of Memory 0.15 | | Number of MACs 8.23 B | | Ratio of MACs that are binarized 0.9450 | +---------------------------------------------+
+binary_densenet37 summary--------------------+ | Total params 8.7 M | | Trainable params 8.67 M | | Non-trainable params 31.9 k | | Model size 5.13 MiB | | Model size (8-bit FP weights) 1.96 MiB | | Float-32 Equivalent 33.20 MiB | | Compression Ratio of Memory 0.15 | | Number of MACs 4.71 B | | Ratio of MACs that are binarized 0.9576 | +---------------------------------------------+
+binary_densenet28 summary--------------------+ | Total params 5.13 M | | Trainable params 5.11 M | | Non-trainable params 19 k | | Model size 4.04 MiB | | Model size (8-bit FP weights) 1.39 MiB | | Float-32 Equivalent 19.58 MiB | | Compression Ratio of Memory 0.21 | | Number of MACs 3.79 B | | Ratio of MACs that are binarized 0.9466 | +---------------------------------------------+
+binary_resnet_e_18 summary-------------------+ | Total params 11.7 M | | Trainable params 11.7 M | | Non-trainable params 9.73 k | | Model size 4.00 MiB | | Model size (8-bit FP weights) 1.98 MiB | | Float-32 Equivalent 44.59 MiB | | Compression Ratio of Memory 0.09 | | Number of MACs 1.81 B | | Ratio of MACs that are binarized 0.9240 | +---------------------------------------------+
+birealnet18 summary--------------------------+ | Total params 11.7 M | | Trainable params 11.7 M | | Non-trainable params 9.6 k | | Model size 4.00 MiB | | Model size (8-bit FP weights) 1.98 MiB | | Float-32 Equivalent 44.59 MiB | | Compression Ratio of Memory 0.09 | | Number of MACs 1.81 B | | Ratio of MACs that are binarized 0.9240 | +---------------------------------------------+
+dorefanet summary------------------------------+ | Total params 62.4 M | | Trainable params 62.4 M | | Non-trainable params 18.9 k | | Model size 22.80 MiB | | Model size (8-bit FP weights) 10.91 MiB | | Float-32 Equivalent 238.02 MiB | | Compression Ratio of Memory 0.10 | | Number of MACs 3.05 B | | Ratio of MACs that are ternarized 0.9590 | +-----------------------------------------------+
+xnornet summary-------------------------------+ | Total params 62.4 M | | Trainable params 62.4 M | | Non-trainable params 19.3 k | | Model size 22.77 MiB | | Model size (8-bit FP weights) 10.90 MiB | | Float-32 Equivalent 237.99 MiB | | Compression Ratio of Memory 0.10 | | Number of MACs 1.14 B | | Ratio of MACs that are binarized 0.9005 | +----------------------------------------------+
+binary_alexnet summary------------------------+ | Total params 61.8 M | | Trainable params 61.8 M | | Non-trainable params 20.9 k | | Model size 7.45 MiB | | Model size (8-bit FP weights) 7.39 MiB | | Float-32 Equivalent 235.93 MiB | | Compression Ratio of Memory 0.03 | | Number of MACs 841 M | | Ratio of MACs that are binarized 0.9134 | +----------------------------------------------+
+quicknet summary-----------------------------+ | Total params 10.5 M | | Trainable params 10.5 M | | Non-trainable params 7.3 k | | Model size 3.18 MiB | | Model size (8-bit FP weights) 1.69 MiB | | Float-32 Equivalent 40.10 MiB | | Compression Ratio of Memory 0.08 | | Number of MACs 1.25 B | | Ratio of MACs that are binarized 0.9960 | +---------------------------------------------+
+quicknet_large summary-----------------------+ | Total params 11.8 M | | Trainable params 11.8 M | | Non-trainable params 9.6 k | | Model size 4.49 MiB | | Model size (8-bit FP weights) 2.10 MiB | | Float-32 Equivalent 45.09 MiB | | Compression Ratio of Memory 0.10 | | Number of MACs 1.7 B | | Ratio of MACs that are binarized 0.9856 | +---------------------------------------------+
lgeiger
approved these changes
Apr 22, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks reasonable since we now properly account for the batchnorms. I think we also need to update the docstrings in zoo as well.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
How I got these numbers:
See each commit for the corresponding model's summary.
QuickNetXL
already had the correct numbers.Closes #71.