-
Notifications
You must be signed in to change notification settings - Fork 38
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
Question about Macs of DeepCache #37
Comments
Another concern has been raised: count_ops_and_params function does not work when deepcache helper is applied to UNet. The counted flops is 0 in this situation. |
Hi, I'm currently trying to calculate the MACs, and Params as well using the flops.py in the source code. |
I simply follow the provided guidance and do not encounter complex errors. You can share your log here to discuss the problem. |
Update: helper.set_params( Then, I got an average DeepCache (SDv1.5) MACs: 151.0G |
@haoweiz23 It works Thank you for the response! |
Can you please tell me how to use the flops.py file to calculate the MACs value after applying deepache in stable diffusion and why I am reporting this error AttributeError: 'StableDiffusionPipeline' object has no attribute 'apply', thanks! |
|
Hello, I would like to ask when the use of deepcache MACs become 0, how do you solve this problem ah! |
Hi, I tested the MACs of DeepCache with an interval of 5 following your guidance and obtained an average of 156.0782 G MACs, which is not consistent with Table 3 in your paper, where it's stated as 130.45 G.
To elaborate further, in each denoising step, if deep cache is not utilized, the parameters and MACs are as follows:
#Params: 859.5210 M
#MACs: 484.3895 G
if DeepCache is used,
#Params: 859.5210 M
#MACs: 76.0022 G
Could you please provide more details on how to reproduce the results?
The text was updated successfully, but these errors were encountered: