Skip to content
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

LDM Pruning code #7

Open
JinyangMarkLiu opened this issue Feb 22, 2024 · 1 comment
Open

LDM Pruning code #7

JinyangMarkLiu opened this issue Feb 22, 2024 · 1 comment

Comments

@JinyangMarkLiu
Copy link

JinyangMarkLiu commented Feb 22, 2024

Hi, thank you for sharing the amazing and inspiring pruning work! We have a question related to the pruning code for LDM.We are confused why in the prune_ldm.py line 120 the sampled latent is further encoded with the encoder and then feed into the model for calculating the loss at time t. Shouldn't it just be the sampled latent without encoding? Thanks!

@VainF
Copy link
Owner

VainF commented Feb 23, 2024

Hello @JinyangMarkLiu, we used ImageNet images for pruning. I don't remember why this script generated samples for importance estimation. I guess I modified the original code for exploration. Let me check the code version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants