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

Why self-conditioning? #94

Open
Silverster98 opened this issue Sep 24, 2022 · 2 comments
Open

Why self-conditioning? #94

Silverster98 opened this issue Sep 24, 2022 · 2 comments

Comments

@Silverster98
Copy link

Are there some works or explanations demonstrating the effectiveness of self-conditioning implementation? Or it is just an empirical trick?

# if doing self-conditioning, 50% of the time, predict x_start from current set of times
# and condition with unet with that
# this technique will slow down training by 25%, but seems to lower FID significantly
x_self_cond = None
if self.self_condition and random() < 0.5:
with torch.no_grad():
x_self_cond = self.model_predictions(x, t).pred_x_start
x_self_cond.detach_()
# predict and take gradient step
model_out = self.model(x, t, x_self_cond)

@yiyixuxu
Copy link

see paper here https://arxiv.org/abs/2208.04202

@tuttyfrutyee
Copy link

This (self-conditioning) does not work for me btw (train loss insists on not decreasing), but the data I work with might be too noisy compared to natural images.

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

3 participants