Why can model_pred simply subtract noise to fit targets=x0? #6622
Replies: 3 comments 1 reply
-
I don't fully understand the question. How would you get the target sample otherwise? |
Beta Was this translation helpful? Give feedback.
-
@zhangqizky @sayakpaul I don't really understand it either. Based on these two lines:
we have
which means that
It looks like most schedulers don't support |
Beta Was this translation helpful? Give feedback.
-
您的邮件已收到,我会尽快回复,谢谢。张琦
|
Beta Was this translation helpful? Give feedback.
-
https://github.com/huggingface/diffusers/blob/main/examples/text_to_image/train_text_to_image_sdxl.py#L1079
here, when prediction_type=="sample", means UNet predict x0, and the targets also set to x0, but why the model_pred need to subtract noise? I don't much undstand here... Could anybody help to explain?
Beta Was this translation helpful? Give feedback.
All reactions