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

[Optional] Refactor diffusion.py for if not self.diffusion_config.no_use_residual: #14

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tolgacangoz
Copy link
Contributor

@tolgacangoz tolgacangoz commented Sep 23, 2024

This PR is optional because I don't know if it is correct.

The pull request proposes refactoring the diffusion.py file when self.diffusion_config.no_use_residual=False for nested models.

@MultiPath @Shuangfei @luke-carlson

@tolgacangoz tolgacangoz changed the title Refactor diffusion.py and fix typo in cc12m_256x256.yaml Refactor diffusion.py for if not self.diffusion_config.no_use_residual: Sep 23, 2024
ml_mdm/diffusion.py Outdated Show resolved Hide resolved
if len(x_t) == 3:
x_t, x_t_middle, x_t_low = x_t
pred, pred_middle, pred_low = p_t
pred_x0_previous, _ = self.sampler.get_x0_eps_from_pred(x_t_middle, pred_middle, times)
Copy link
Contributor Author

@tolgacangoz tolgacangoz Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be wrong: Is using times correct here? This gives nan to me. When I change it with g_t[0][0, 0, 0, 0], it gives a good result at the 40. step, but it worsens towards the 50. step if 50 is the final.

@tolgacangoz tolgacangoz marked this pull request as ready for review September 27, 2024 14:56
@tolgacangoz tolgacangoz changed the title Refactor diffusion.py for if not self.diffusion_config.no_use_residual: [Optional] Refactor diffusion.py for if not self.diffusion_config.no_use_residual: Oct 11, 2024
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

Successfully merging this pull request may close these issues.

1 participant