-
Notifications
You must be signed in to change notification settings - Fork 1
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
DHVC complexity and number of parameters #4
Comments
Thank you for your question. The code tested in the paper is consistent with the current code. Our test is conducted using 'from ptflops import get_model_complexity_info', so is it a problem with the thop library? |
I tested it using ptflops, but I still get 447 kMAC/pix and 118M parameters. |
Thank you for your question. We apologize for any possible ambiguity in the code. Let's clarify that as shown in Figure.2 (b) of the paper, |
Ok, so do I understand correct, that
And I interpreted "latent residual variables" as |
Yes, there is no problem with your understanding. There is indeed some ambiguity in the use of some notions. According to Figure 2 (b) in DHVC-1.0, we believe that |
Thank you for publishing your work!
I was calculating the complexity in kMAC/pix and the number of parameters and can not reproduce the results in your paper.
I used PyTorch-OpCounter and the DHVC model generated by the function dhvc_base() in dhvc2.py.
The paper states that it is calculated for a 1080p video (thus: frame = torch.rand([1, 3, 1088, 1920]), due to padding).
My results lead to 2236 kMAC/pix and 118M parameters, while the paper states 433 kMAC/pix and 112M parameters.
So, while the number of parameters is at least close to the results in the paper, the gap in kMAC/pix is quite significant.
How have you calculated your results? Are there any changes between the model in dhvc_base() and the one in the paper? Or am I making any errors in the calculation?
Update:
I found out, that the MAC calculation is not always fully consistent. Repeating the full profiling process seams to help. I sometimes got also 894 kMAC/pix and finally most often 447 kMAC/pix. However, in order to work I had to reload the DHVC model using
model = dhvc_base()
.I don't know whether this behaviour is related to the DHVC source code, the thop library or any specifics regarding my system.
However, I still don't get the exact same results in terms of MACS and number of parameters, so I am still curious whether the source code is identical to the model in the paper.
The text was updated successfully, but these errors were encountered: