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

Error in prune_LDM for CelebaHQ Dataset #10

Open
Satyab23 opened this issue May 8, 2024 · 1 comment
Open

Error in prune_LDM for CelebaHQ Dataset #10

Satyab23 opened this issue May 8, 2024 · 1 comment

Comments

@Satyab23
Copy link

Satyab23 commented May 8, 2024

Dear Authors,
Thank you for sharing the amazing and inspiring pruning work!

As mentioned in celebahq-ldm-vq-4.yaml line59, CelebaHQ is unconditional stage_config
While running the pruning, I am getting the following error:

Pruning ...
Traceback (most recent call last):
File "prune_ldm_celeba.py", line 75, in
uc = model.get_learned_conditioning(
File "/raid/akshay/satyabrat/DiffPruneLDM/Diff-Pruning/ldm_exp/ldm/models/diffusion/ddpm.py", line 561, in get_learned_conditioning
c = self.cond_stage_model(c)
TypeError: 'NoneType' object is not callable

Command used to run:
CUDA_VISIBLE_DEVICES=1 python prune_ldm.py --sparsity 0.3 --pruner random

Could you please share your code and config for CelebaHQ Dataset as reported in the paper.

@Satyab23
Copy link
Author

Dear @VainF ,

Did you get the chance to look into it. Kindly look into it.

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

1 participant